lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven White <swhite4...@gmail.com>
Subject Re: Question about multiple fq parameters
Date Wed, 08 Jun 2016 20:46:16 GMT
Thanks Mikhail.

In that case, how do I force an OR for fq on DateA and DateB?  And to make
things more interesting, I will have other fq in my query on different
field such as ISBN, or the same field as DateA or DateB that will need to
be AND'ed with the query.

Steve

On Wed, Jun 8, 2016 at 4:31 PM, Mikhail Khludnev <mkhludnev@griddynamics.com
> wrote:

> C'mon Steve, filters fq=& are always intersected.
>
> On Wed, Jun 8, 2016 at 11:28 PM, Steven White <swhite4141@gmail.com>
> wrote:
>
> > Hi everyone,
> >
> > I cannot make sense of this so I hope someone here can shed some light.
> >
> > The following gives me 0 hits (expected):
> >
> >
>  ?q=*&q.op=OR&fq={!field+f=DateA+op=Intersects}[2020-01-01+TO+2030-01-01]
> >
> > The following gives me hits (expected):
> >
> >
>  ?q=*&q.op=OR&fq={!field+f=DateB+op=Intersects}[2000-01-01+TO+2020-01-01]
> >
> > But the following (combine the above two) gives me 0 hits (unexpected):
> >
> >
> >
> ?&q=*&q.op=OR&fq={!field+f=DateB+op=Intersects}[2000-01-01+TO+2020-01-01]&fq={!field+f=DateA+op=Intersects}[2020-01-01+TO+2030-01-01]
> >
> > What am I missing?
> >
> > Thanks.
> >
> > Steve
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> <http://www.griddynamics.com>
> <mkhludnev@griddynamics.com>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message