[Xapian-discuss] Does Xapian support value in [value1, value2, value3...]?
Olly Betts
olly at survex.com
Wed Jul 27 15:01:27 BST 2011
On Wed, Jul 27, 2011 at 09:08:56PM +0800, Bruce Zhang wrote:
> I wonder if Xapian support the operations like value in [value1, value2,
> value3...]?
>
> from Xapian document, for query, the supported operations are index,
> boolean...
> but we have requirements to query see if a value is in a list of values.
>
> it is already supported or we need to add ourselves?
http://xapian.org/docs/apidoc/html/classXapian_1_1ValueSetMatchDecider.html
Being a MatchDecider, this can only be applied as a top level filter.
If you want the check as a subquery of something more complex, you'll
need to roll your own PostingSource subclass.
Cheers,
Olly
More information about the Xapian-discuss
mailing list