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 J Mohamed Zahoor <za...@indix.com> on 2013/04/18 14:37:04 UTC
stats.facet not working for timestamp field
Hi
I am using SOlr 4.1 with 6 shards.
i want to find out some "price" stats for all the days in my index.
I ended up using stats component like "stats=true&stats.field=price&stats.facet=timestamp".
but it throws up error like
<str name="msg">Invalid Date String:' #1;#0;#0;#0;'[my(#0;'</str>
My Question is : is timestamp supported as "stats.facet" ?
./zahoor
Re: stats.facet not working for timestamp field
Posted by J Mohamed Zahoor <za...@indix.com>.
It is a date field.
<field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>
./zahoor
On 19-Apr-2013, at 5:02 PM, Erick Erickson <er...@gmail.com> wrote:
> I'm guessing that your timestamp is a tdate, which stores "extra"
> information in the index for fast range searches. What happens if you
> try to facet on just a "date" field?
>
> Best
> Erick
>
> On Thu, Apr 18, 2013 at 8:37 AM, J Mohamed Zahoor <za...@indix.com> wrote:
>> Hi
>>
>> I am using SOlr 4.1 with 6 shards.
>>
>> i want to find out some "price" stats for all the days in my index.
>> I ended up using stats component like "stats=true&stats.field=price&stats.facet=timestamp".
>>
>>
>>
>> but it throws up error like
>>
>> <str name="msg">Invalid Date String:' #1;#0;#0;#0;'[my(#0;'</str>
>>
>>
>>
>> My Question is : is timestamp supported as "stats.facet" ?
>>
>> ./zahoor
>>
>>
Re: stats.facet not working for timestamp field
Posted by Erick Erickson <er...@gmail.com>.
I'm guessing that your timestamp is a tdate, which stores "extra"
information in the index for fast range searches. What happens if you
try to facet on just a "date" field?
Best
Erick
On Thu, Apr 18, 2013 at 8:37 AM, J Mohamed Zahoor <za...@indix.com> wrote:
> Hi
>
> I am using SOlr 4.1 with 6 shards.
>
> i want to find out some "price" stats for all the days in my index.
> I ended up using stats component like "stats=true&stats.field=price&stats.facet=timestamp".
>
>
>
> but it throws up error like
>
> <str name="msg">Invalid Date String:' #1;#0;#0;#0;'[my(#0;'</str>
>
>
>
> My Question is : is timestamp supported as "stats.facet" ?
>
> ./zahoor
>
>