summaryrefslogtreecommitdiff
path: root/xapian
AgeCommit message (Expand)Author
2021-09-07xapian: make-document: Accept bytevectors.•••* xapian/xapian.scm (make-document): Support setting document values and body from bytevectors. Signed-off-by: Arun Isaac <arunisaac@systemreboot.net> Bob131
2021-09-07xapian: Introduce document-slot-ref-bytes.•••* xapian/xapian.scm (document-slot-ref-bytes): New function. Signed-off-by: Arun Isaac <arunisaac@systemreboot.net> Bob131
2021-09-07xapian: Reimplement document-bytes.•••The current implementation of document-bytes involves converting the document data string into a list of characters, mapping over the result with char->integer and passing the list of integers to u8-list->integer. This is quite an expensive operation (relative to what the user might expect), and may not reliably return a result if the document data couldn't be decoded as a UTF-8 string in the first place. Now that we have SWIG wrappers that return bytevectors directly, we can redefine document-bytes as an alias of Document-get-data-bytes. * xapian/xapian.scm (document-bytes): Redefine function in terms of Document-get-data-bytes. Signed-off-by: Arun Isaac <arunisaac@systemreboot.net> Bob131
2021-09-06xapian: Support in-memory databases.•••* xapian/xapian.scm (call-with-in-memory-database): New public function. Arun Isaac
2020-10-17xapian: Introduce document-bytes.•••* xapian/xapian.scm (document-bytes): New function. Arun Isaac
2020-10-14xapian: Wrap MSet-snippet.•••* xapian/xapian.scm (get-flag, mset-snippet): New functions. Arun Isaac
2020-03-07xapian: Rename document-ref to document-slot-ref.•••* xapian/xapian.scm (document-ref): Rename to document-slot-ref. v0.1.0Arun Isaac
2020-03-06xapian: Wrap document values.•••* xapian/xapian.scm (make-document): Support setting document values. (document-ref): New function. Arun Isaac
2020-03-05xapian: Wrap Enquire-get-mset using keyword arguments.•••* xapian/xapian.scm (enquire-mset): Introduce offset and maximum-items keyword arguments. * examples/search.scm (search): Pass pagesize as keyword argument to enquire-mset. Remove argument offset. Arun Isaac
2020-03-05xapian: Wrap Database-get-doccount.•••* xapian/xapian.scm (database-document-count): New function. Arun Isaac
2020-02-18xapian: Remove generated scheme stub.•••xapian/wrap.scm is generated by swig. We need not commit it to the git repository. * xapian/wrap.scm: Delete file. Arun Isaac
2020-02-15First commit.Arun Isaac