You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Rohit Gupta <ro...@in-rev.com> on 2011/07/21 11:29:23 UTC
Frange Function Query
Hi,
I have the following query in which I am using !frange function twice and the
query is not returning any results. However if i use a single !frange function
then the results come for the same query.
Is it now possible to execute two franges in a single query?
q="woolmark"&fq={!frange l=33787806 u=33787918}id&fq={!frange
l=40817415}id&fq=createdOnGMTDate:[2011-07-01T14%3A30%3A00Z+TO+2011-07-21T14%3A30%3A00Z]
Regards,
Rohit
Re: Frange Function Query
Posted by Erick Erickson <er...@gmail.com>.
I'm no expert on frange, but fq clauses are intersections. So if your
two frange queries have no terms in common, you won't get anything.
You can think of it as an implied AND between all the fq clauses you specify...
Best
Erick
On Thu, Jul 21, 2011 at 5:29 AM, Rohit Gupta <ro...@in-rev.com> wrote:
> Hi,
>
> I have the following query in which I am using !frange function twice and the
> query is not returning any results. However if i use a single !frange function
> then the results come for the same query.
>
> Is it now possible to execute two franges in a single query?
>
> q="woolmark"&fq={!frange l=33787806 u=33787918}id&fq={!frange
> l=40817415}id&fq=createdOnGMTDate:[2011-07-01T14%3A30%3A00Z+TO+2011-07-21T14%3A30%3A00Z]
>
>
> Regards,
> Rohit