Re: sorting on date field in facet query

2011-07-08 Thread Dmitry Kan
.n3.nabble.com/sorting-on-date-field-in-facet-query-tp2956540p2961612.html Sent from the Solr - User mailing list archive at Nabble.com. -- Regards, Dmitry Kan

Re: sorting on date field in facet query

2011-05-19 Thread Dmitry Kan
Hi Erick, It is about ordering the facet information. The result set is empty via rows=0. Here is the logics and example: Each doc has string field someStr and a date field associated with it, and same doc id has same value of the date field. Question: is it possible to sort the facet values

Re: sorting on date field in facet query

2011-05-19 Thread Erick Erickson
The only two ways to influence facet order is by count and alphabetically. facet.sort=index will sort by alpha, the default is facet.sort=count All that said, I still don't quite understand what you're asking for. Facets are simply a count of the documents that have unique values for, in your

Re: sorting on date field in facet query

2011-05-19 Thread Stefan Matheis
Dmitry, how should that work? Take a this short sample-data: id | date T-AS_1386229 | 1995-12-31T23:59:59Z T-AS_1386181 | 1996-12-31T23:59:59Z T-AS_1386229 | 1997-12-31T23:59:59Z So, you'll have two facets for the ids .. but how should they be sorted? One (of the two) is the first and the other

Re: sorting on date field in facet query

2011-05-19 Thread Dmitry Kan
Hi, Thanks for the questions, guys, and sorry for the confusion. I should start with a broader picture of what we are trying to achieve. The only problem is that I cannot speak about specifics of the task we are solving the way we do. We currently sort the facets on the client side, having the

Re: sorting on date field in facet query

2011-05-19 Thread Erick Erickson
Oh, isn't that ducky. The facet.sort parameter only sorts ascending as far as I can tell. Which is exactly the reverse of what you want. Would it work to cleverly encode the facet field to do what you want just by a lexical sort? Something like use a very large constant, subtract the date for

Re: sorting on date field in facet query

2011-05-19 Thread Dmitry Kan
Thanks Erick, this sounds solid to me! It of course will require the repost of the entire index (pretty big one, sharded), but that's not an issue as we periodically do that anyway. Thanks and regards, Dmitry On Thu, May 19, 2011 at 5:08 PM, Erick Erickson erickerick...@gmail.comwrote: Oh,

Re: sorting on date field in facet query

2011-05-19 Thread kenf_nc
the facet count? Just wondering. -- View this message in context: http://lucene.472066.n3.nabble.com/sorting-on-date-field-in-facet-query-tp2956540p2961612.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: sorting on date field in facet query

2011-05-19 Thread Dmitry Kan
in context: http://lucene.472066.n3.nabble.com/sorting-on-date-field-in-facet-query-tp2956540p2961612.html Sent from the Solr - User mailing list archive at Nabble.com. -- Regards, Dmitry Kan

Re: sorting on date field in facet query

2011-05-19 Thread Erick Erickson
wondering. -- View this message in context: http://lucene.472066.n3.nabble.com/sorting-on-date-field-in-facet-query-tp2956540p2961612.html Sent from the Solr - User mailing list archive at Nabble.com.

sorting on date field in facet query

2011-05-18 Thread Dmitry Kan
Hello list, Is it possible to sort on date field in a facet query in SOLR 3.1? -- Regards, Dmitry Kan

Re: sorting on date field in facet query

2011-05-18 Thread Erick Erickson
Can you provide an example of what you are trying to do? Are you referring to ordering the result set or the facet information? Best Erick On Wed, May 18, 2011 at 7:21 AM, Dmitry Kan dmitry@gmail.com wrote: Hello list, Is it possible to sort on date field in a facet query in SOLR 3.1?