lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avlesh Singh <avl...@gmail.com>
Subject Re: Querying for documents with a certain number of values?
Date Mon, 10 Aug 2009 04:24:20 GMT
Hmmm ... then David is right. You would probably want to index the length of
this field too.

Cheers
Avlesh

On Mon, Aug 10, 2009 at 9:43 AM, Ian Sefferman <iseff@iseff.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message