On 4/4/2014 3:13 PM, Mikhail Khludnev wrote:
I suppose SolrIndexSearcher.buildTopDocsCollector() doesn't create a
Collector which calls score() in this case. Hence, it shouldn't waste CPU.
Just my impression.
Haven't you tried to check it supplying some weird formula, which throws
exception?

I didn't think of that. That's a good idea -- as long as there's not independent code that checks the function in addition to the code that actually runs it.

With the following parameters added to an edismax query that otherwise works, I get an exception. It works if I change the "e" to 5.

&sort=registered_date asc&boost=sum(5,"e")

I will take Alvaro's suggestion and add "boost=1" to queries that use a sort parameter. It's probably a good idea to file that Jira.

Thanks,
Shawn

Reply via email to