Fwd: R bindings for Xapian: API modifications

Amanda Jayanetti <[email protected]>
Newsgroups gmane.comp.search.xapian.devel
Message-ID <CAEUYEpGp--7qtyzkUV93_VrPq0gWo3xMMt9mgH4qfraPr04o0w@mail.gmail.com>
>
> >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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.