Shawn, I suppose "e" yields syntax error. Therefore, this case doesn't prove anything yet. Haven't you tried sqrt(-1) or log(-1) ?
On Sat, Apr 5, 2014 at 1:47 AM, Shawn Heisey <s...@elyograg.org> wrote: > 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 > > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>