Fwd: R bindings for Xapian: API modifications

Amanda Jayanetti
Mon, 02 May 2016 19:48:42 -0000

>
> >Is there a reason you're using a stored CSV rather than doing it
from
> >a data frame directly? That would avoid having to read from a foreign
> >format, write to CSV and then read again in order to index it.


No. The input data structure to xapian_index() will indeed be a data frame.
Even a stored CSV can be conveniently converted to a data frame. There are
few further modifications to xapian_index() function that are not indicated
in the example and I will provide a complete draft of the function after
reviewing those further.

>Also, do R users expect to use numeric indexing into their data, or
> >name indexing? Or would it be better to support both?


Is there a specific way of implementing numeric indexing with Xapian? In R
numeric indexing can be used to extract content of a data frame (and other
R data structures). Since xapian_search() will return a data frame, its
elements can be conveniently extracted using various functions in R.

Best regards,
Amanda
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.xapian.org/pipermail/xapian-devel/attachments/20160503/80533fa9/attachment.html>