lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Sefferman <is...@iseff.com>
Subject Re: Querying for documents with a certain number of values?
Date Mon, 10 Aug 2009 04:13:08 GMT
Sorry, poorly worded. I want to find all the documents which have any
value, but N-M of those values.

Example:
Document 1: foo:[a, b, c]
Document 2: foo:[]
Document 3: foo:[a, b, c, d, e, f]
Document 4: foo:[a, b, c, d, e]

Is there a way to find all documents with, say 3-5 values for foo (in
this case, returning Document 1 and Document 4?

Ian

--
Ian Sefferman | (406) IAN-1337
http://www.iseff.com



On Sun, Aug 9, 2009 at 9:06 PM, Avlesh Singh<avlesh@gmail.com> wrote:
>>
>> Is there a way to find all the documents in the index that have, say, 1-5
>> (or, generally, N-M for some values of N and M) values for "foo"?
>>
> Sorry, but I did not understand. Do you want to find documents which have
> all of these values: N, N+1, N+2 ..., M in the field "foo"?
>
> Cheers
> Avlesh
>
> On Mon, Aug 10, 2009 at 8:07 AM, Ian Sefferman <iseff@iseff.com> wrote:
>
>> Hi,
>> I have an index that contains a multiValued field, "foo".
>>
>> Is there a way to find all the documents in the index that have, say,
>> 1-5 (or, generally, N-M for some values of N and M) values for "foo"?
>>
>> Thanks,
>> Ian
>>
>> --
>> Ian Sefferman | (406) IAN-1337
>> http://www.iseff.com
>>
>

Mime
View raw message