[Xapian-discuss] Does Xapian support value in [value1, value2, value3...]?

Bruno Rezende brunovianarezende at gmail.com
Wed Jul 27 15:06:27 BST 2011


Hi,

On Wed, Jul 27, 2011 at 11:01 AM, Olly Betts <olly at survex.com> wrote:
> 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.
>

what would be the difference if one did:

(value=value1 OR value=value2 OR ...)

?

-- 
Bruno



More information about the Xapian-discuss mailing list