summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2022-07-09 11:33:58 +0530
committerArun Isaac <arunisaac@systemreboot.net>2022-07-09 16:41:02 +0530
commit94ceb9d5a66ecc67088874855771141240b76bc4 (patch)
treec44b0c3ef26c8d712bf19242f977d63d949ad8ec
parent2f5578be4545af1dd530bfc7a1ef235620ba9519 (diff)
downloadtissue-94ceb9d5a66ecc67088874855771141240b76bc4.tar.gz
tissue-94ceb9d5a66ecc67088874855771141240b76bc4.tar.lz
tissue-94ceb9d5a66ecc67088874855771141240b76bc4.zip
document: Prefix ID term with document type.
We need to prefix the ID term in order to distinguish between future document types (such as the commit document type) that may not be based off a file. * tissue/document.scm (document-id-term): Prefix ID term with "file." indicating the document type.
-rw-r--r--tissue/document.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tissue/document.scm b/tissue/document.scm
index b12ccbb..983a1f2 100644
--- a/tissue/document.scm
+++ b/tissue/document.scm
@@ -164,7 +164,7 @@ and further text, increase-termpos! must be called before indexing."
(define-method (document-id-term (document <file-document>))
"Return the ID term for DOCUMENT."
- (string-append "Q" (file-document-path document)))
+ (string-append "Qfile." (file-document-path document)))
(define-method (document-text (document <file-document>))
"Return the full text of DOCUMENT."