Re: Sorting on a computed value

2015-01-26 Thread Mikhail Khludnev
I'm sorry for spoiling, but it's a fabulous FakeScorer pattern in Lucene. e.g. look at https://github.com/apache/lucene-solr/blob/trunk/lucene/grouping/src/java/org/apache/lucene/search/grouping/BlockGroupingCollector.java#L355 when your delegating collector is provided by scorer via setScorer(), i

Re: Sorting on a computed value

2015-01-26 Thread tedsolr
That's an interesting link Shawn. Especially since it mentions the possibility of sorting on pseudo-fields. My delegating collector computes the customs stats and stores them in the request context. I have a doc transformer that then grabs the stats for each doc and inserts the data in the output.

Re: Sorting on a computed value

2015-01-26 Thread Shawn Heisey
On 1/25/2015 4:13 PM, tedsolr wrote: > I'll bet some super user has figured this out. How can I perform a sort on a > single computed field? I have a QParserPlugin that is collapsing docs based > on data from multiple fields. I am summing the values from one numerical > field 'X'. I was going to us