<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guile-xapian/xapian, branch v0.2.1</title>
<subtitle>Guile bindings for Xapian</subtitle>
<id>http://git.systemreboot.net/guile-xapian/atom?h=v0.2.1</id>
<link rel='self' href='http://git.systemreboot.net/guile-xapian/atom?h=v0.2.1'/>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/'/>
<updated>2022-06-06T18:30:01+00:00</updated>
<entry>
<title>xapian: Accept bytevector slot values with document-slot-set!.</title>
<updated>2022-06-06T18:30:01+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2022-06-06T18:24:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/commit/?id=77a9d0c99030f438f1025a08072ad185947b6066'/>
<id>urn:sha1:77a9d0c99030f438f1025a08072ad185947b6066</id>
<content type='text'>
* 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.
</content>
</entry>
<entry>
<title>xapian: Accept bytevector data with document-set-data!.</title>
<updated>2022-06-06T18:29:52+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2022-06-06T18:23:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/commit/?id=f3967897b0531bc73c72d936a77f24a6b94a2fac'/>
<id>urn:sha1:f3967897b0531bc73c72d936a77f24a6b94a2fac</id>
<content type='text'>
* xapian/xapian.scm (make-document): Call document-set-data!
regardless of data type.
(document-set-data!): Accept bytevector data.
(document-set-bytes!): Deprecate.
</content>
</entry>
<entry>
<title>xapian: Introduce document setters.</title>
<updated>2021-09-06T19:53:59+00:00</updated>
<author>
<name>Bob131</name>
</author>
<published>2021-09-01T22:50:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/commit/?id=007890b634cd782ed09bae1368df561815c27d9f'/>
<id>urn:sha1:007890b634cd782ed09bae1368df561815c27d9f</id>
<content type='text'>
* xapian/xapian.scm (document-set-data!, document-set-bytes!,
document-slot-set!, document-slot-set-bytes!): New functions.

Signed-off-by: Arun Isaac &lt;arunisaac@systemreboot.net&gt;
</content>
</entry>
<entry>
<title>xapian: make-document: Accept bytevectors.</title>
<updated>2021-09-06T19:53:59+00:00</updated>
<author>
<name>Bob131</name>
</author>
<published>2021-09-01T21:48:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/commit/?id=110bca15a7d89955805589cd3451ab52f9a52748'/>
<id>urn:sha1:110bca15a7d89955805589cd3451ab52f9a52748</id>
<content type='text'>
* xapian/xapian.scm (make-document): Support setting document values
and body from bytevectors.

Signed-off-by: Arun Isaac &lt;arunisaac@systemreboot.net&gt;
</content>
</entry>
<entry>
<title>xapian: Introduce document-slot-ref-bytes.</title>
<updated>2021-09-06T19:53:59+00:00</updated>
<author>
<name>Bob131</name>
</author>
<published>2021-09-01T21:44:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/commit/?id=ec334fae367af039b83b824e29460b059b0c12af'/>
<id>urn:sha1:ec334fae367af039b83b824e29460b059b0c12af</id>
<content type='text'>
* xapian/xapian.scm (document-slot-ref-bytes): New function.

Signed-off-by: Arun Isaac &lt;arunisaac@systemreboot.net&gt;
</content>
</entry>
<entry>
<title>xapian: Reimplement document-bytes.</title>
<updated>2021-09-06T19:53:59+00:00</updated>
<author>
<name>Bob131</name>
</author>
<published>2021-09-01T21:33:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/commit/?id=dc0e4ab5aeb76a0ec2d37267b49fd2348ef7c420'/>
<id>urn:sha1:dc0e4ab5aeb76a0ec2d37267b49fd2348ef7c420</id>
<content type='text'>
The current implementation of document-bytes involves converting the
document data string into a list of characters, mapping over the
result with char-&gt;integer and passing the list of integers to
u8-list-&gt;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 &lt;arunisaac@systemreboot.net&gt;
</content>
</entry>
<entry>
<title>xapian: Support in-memory databases.</title>
<updated>2021-09-05T18:41:15+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-09-05T18:41:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/commit/?id=22c8e5d33d17f54496d5e44c98a024c46155eb5b'/>
<id>urn:sha1:22c8e5d33d17f54496d5e44c98a024c46155eb5b</id>
<content type='text'>
* xapian/xapian.scm (call-with-in-memory-database): New public
function.
</content>
</entry>
<entry>
<title>xapian: Introduce document-bytes.</title>
<updated>2020-10-17T05:38:01+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2020-10-17T05:36:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/commit/?id=f11f45ebeb1131c3a6af8dde374463fa63c0249b'/>
<id>urn:sha1:f11f45ebeb1131c3a6af8dde374463fa63c0249b</id>
<content type='text'>
* xapian/xapian.scm (document-bytes): New function.
</content>
</entry>
<entry>
<title>xapian: Wrap MSet-snippet.</title>
<updated>2020-10-14T10:45:39+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2020-10-14T10:06:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/commit/?id=408557714585873a88ecf21ee36de7bce9b3f34d'/>
<id>urn:sha1:408557714585873a88ecf21ee36de7bce9b3f34d</id>
<content type='text'>
* xapian/xapian.scm (get-flag, mset-snippet): New functions.
</content>
</entry>
<entry>
<title>xapian: Rename document-ref to document-slot-ref.</title>
<updated>2020-03-07T05:46:04+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2020-03-07T05:46:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/guile-xapian/commit/?id=612317c1335fc5b9fe64eb09e3dc2bb508d100c6'/>
<id>urn:sha1:612317c1335fc5b9fe64eb09e3dc2bb508d100c6</id>
<content type='text'>
* xapian/xapian.scm (document-ref): Rename to document-slot-ref.
</content>
</entry>
</feed>
