diff options
author | Arun Isaac | 2022-07-09 15:45:59 +0530 |
---|---|---|
committer | Arun Isaac | 2022-07-09 16:41:02 +0530 |
commit | 693d4c492c760794df7186058f95e12f91cfc2be (patch) | |
tree | 27c60b868e2d119c2c33ed6163986cf85af081f6 /bin | |
parent | fcbd627e9a4fe936485bcb080669d72b5b60324d (diff) | |
download | tissue-693d4c492c760794df7186058f95e12f91cfc2be.tar.gz tissue-693d4c492c760794df7186058f95e12f91cfc2be.tar.lz tissue-693d4c492c760794df7186058f95e12f91cfc2be.zip |
bin: Move indexing document type into document-term-generator.
* bin/tissue (index): Move indexing document type into
document-term-generator generic function.
* tissue/document.scm (document-term-generator): Index document type.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/tissue | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -307,11 +307,9 @@ To get usage information for one of these sub-commands, run (call-with-writable-database db-path (lambda (db) (for-each (lambda (document) - (let ((term-generator (document-term-generator document))) - (index-text! term-generator (document-type document) #:prefix "XT") - (replace-document! db - (document-id-term document) - (TermGenerator-get-document term-generator)))) + (replace-document! db + (document-id-term document) + (TermGenerator-get-document (document-term-generator document)))) (tissue-configuration-indexed-documents (load-config))) (WritableDatabase-set-metadata db "commit" (oid->string (reference-name->oid |