Hello Shawn, 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?
On Sat, Apr 5, 2014 at 12:02 AM, Shawn Heisey <s...@elyograg.org> wrote: > On 4/4/2014 1:48 PM, Alvaro Cabrerizo wrote: > >> If you dont want to waste your cpu time, then comment the boost parameter >> in the query parser defined in your solrconfig.xml. If you cant do that, >> then you can overwrite it sending the boost parameter for example using >> the >> constant function (e.g. http://..../...&boost=1&sort=your_sort). The >> parameter boost will be overwritten if it is not defined as an invariant. >> > > Thank you for responding. I know how I can override the behavior, what I > want to find out is whether or not it's necessary to do so -- if it's not > necessary because Solr skips it, then everything is good. If it is > necessary, I can open an issue in Jira asking for Solr to get smarter. > That way everyone benefits and they don't have to do anything except > upgrade Solr. > > Thanks, > Shawn > > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>