Hi,
If my data includes:
doc1: date_f: 2014-05-01T00:00:00Z
doc2: date_f: 2014-05-02T00:00:00Z
doc2: date_f: 2014-06-01T00:00:00Z
doc2: date_f: 2014-07-01T00:00:00Z
then I can facet on month(date_f) and get
05(2)
06(1)
07(1)
or facet on year(date_f) and get
2014(4)
Is it supported?
--
Thx Jeon. That worked. Now both the fields are returned in the response.
Its a bit inefficient but works neverthless.
Suchi
On Sat, Nov 15, 2014 at 10:44 PM, Jeon Woosung jeonwoos...@gmail.com
wrote:
I guess that I caused by shard which return renamed field.
following code is source code of
On 11/15/2014 10:12 PM, Anurag Sharma wrote:
Thanks a lot Shawn for the detailed explanation. The wiki is also very
helpful. Any recommended client like pidgin, adium etc. especially for
windows.
The last time I used IRC from a Windows machine (which was a long time
ago), I used mIRC. These
Look at the range faceting stuff. It lets you
specify a start date, end date and gap. And
you can get results for multiple instances
on the same field.
So you could specify one set of parameters
for date_f where the gap was +1MONTH
and another on date_f was +1YEAR.
See:
Thank you Evan and Oleg.
This is exactly what I had implemented (Option 2).
My issue is
Evan Pease wrote
Then, in your Solr query, you can simply add:
facet=true
facet.field=category
You should see a facet that contains each level of the taxonomy with
counts.
As you mentioned, we get
Would this approach be an answer?
https://lucidworks.com/blog/easy-hierarchical-faceting-and-display-with-solr-and-jquery-and-a-tiny-bit-of-python/
Regards,
Alex.
Personal: http://www.outerthoughts.com/ and @arafalov
Solr resources and newsletter: http://www.solr-start.com/ and @solrstart
Solr
I mean for: https://wiki.apache.org/solr/FrontPage
My username is XavierMorera
Regards,
Xavier
--
*Xavier Morera*
Entrepreneur | Author Trainer | Consultant | Developer Scrum Master
*www.xaviermorera.com http://www.xaviermorera.com/*
office: (305) 600-4919
cel: +506 8849-8866