Age | Commit message (Collapse) | Author |
|
* xapian/xapian.scm (mset-sxml-snippet): Reorder arguments passed to
mset-snippet.
|
|
* xapian/xapian.scm (index-text!): Add positions? argument.
|
|
* xapian/xapian.scm (index-text!): Explicitly specify default prefix.
|
|
* xapian/xapian.scm (index-text!): Add docstring.
|
|
* xapian/xapian.scm: Import (srfi srfi-1).
(query-combine): New function.
(query-and, query-or, query-filter): New public functions.
|
|
* xapian/xapian.scm: Import (htmlprag).
(mset-sxml-snippet): New public function.
|
|
* xapian/xapian.scm (mset-snippet): Add docstring.
|
|
* xapian/xapian.scm (make-document): Call document-slot-set!
regardless of slot value type.
(document-slot-set!): Accept bytevector slot values.
(document-slot-set-bytes!): Deprecate.
|
|
* xapian/xapian.scm (make-document): Call document-set-data!
regardless of data type.
(document-set-data!): Accept bytevector data.
(document-set-bytes!): Deprecate.
|
|
* xapian/xapian.scm (document-set-data!, document-set-bytes!,
document-slot-set!, document-slot-set-bytes!): New functions.
Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
|
|
* xapian/xapian.scm (make-document): Support setting document values
and body from bytevectors.
Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
|
|
* xapian/xapian.scm (document-slot-ref-bytes): New function.
Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
|
|
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>
|
|
* xapian/xapian.scm (call-with-in-memory-database): New public
function.
|
|
* xapian/xapian.scm (document-bytes): New function.
|
|
* xapian/xapian.scm (get-flag, mset-snippet): New functions.
|
|
* xapian/xapian.scm (document-ref): Rename to document-slot-ref.
|
|
* xapian/xapian.scm (make-document): Support setting document values.
(document-ref): New function.
|
|
* 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.
|
|
* xapian/xapian.scm (database-document-count): New function.
|
|
|