We are using edismax; the keywords can be in any of the 'qf' fields
specified. Assume 'qf' to be a single fieldA, then the following doesn't
seem to make sense.

q=keyword1 OR keyword2
facet=true
facet.pivot=fieldA,date_field

The purpose is to display the count of the matches of keyword1 & keyword2
in fieldA over a range of dates.

Seems like this isn't possible.


On Sun, Jun 23, 2013 at 8:09 PM, Jack Krupansky <j...@basetechnology.com>wrote:

> If your keywords are the value in some other field, then, yes, you can use
> facet pivots:
>
> facet.pivot=keyword_field,**date_field
>
> (See the example in the book! Or on the wiki.)
>
>
> -- Jack Krupansky
>
> -----Original Message----- From: Sourajit Basak
> Sent: Sunday, June 23, 2013 10:29 AM
> To: solr-user@lucene.apache.org
> Subject: Re: edismax: date range facet with queries containing OR clause
>
>
> Is there a way to write this query using pivots. Will try out and post
> here.
> Appreciate if someone points to a way.
>
>
>
>
> On Sun, Jun 23, 2013 at 7:53 PM, Sourajit Basak <sourajit.ba...@gmail.com>
> **wrote:
>
>  Thats exactly how we are doing now. However, we need to offer the search
>> over slow networks, hence was wondering if there's a way to reduce server
>> round-trips.
>>
>>
>> On Sun, Jun 23, 2013 at 7:14 PM, Jack Krupansky <j...@basetechnology.com>
>> **wrote:
>>
>>  Just do separate faceted query requests:
>>>
>>> q= keyword1
>>> facet.range=date_field_name
>>> ...
>>> facet=true
>>>
>>> q= keyword2
>>> facet.range=date_field_name
>>> ...
>>> facet=true
>>>
>>> Where the "..." means fill in the additional facet.range.xxx parameters
>>> (start, end, gap, etc.)
>>>
>>> -- Jack Krupansky
>>>
>>> -----Original Message----- From: Sourajit Basak
>>> Sent: Sunday, June 23, 2013 8:52 AM
>>> To: solr-user@lucene.apache.org
>>> Subject: edismax: date range facet with queries containing OR clause
>>>
>>>
>>> When we have a user query like keyword1 OR keyword2, we can find the
>>> count
>>> of each keyword using the following params.
>>>
>>> q= keyword1 OR keyword2
>>> facet.query=keyword1
>>> facet.query=keyword2
>>> facet=true
>>>
>>> How do we do a date range facet that will return results for each keyword
>>> faceted by date range ?
>>>
>>>
>>
>>
>

Reply via email to