David Smiley created SOLR-10836:
-----------------------------------

             Summary: TextLogisticRegressionQParserPlugin needn't call 
MultiFields; use SolrIndexSearcher's cached instance
                 Key: SOLR-10836
                 URL: https://issues.apache.org/jira/browse/SOLR-10836
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: David Smiley
            Priority: Minor


org.apache.solr.search.TextLogisticRegressionQParserPlugin.TextLogisticRegressionCollector#finish
 contains this line of code:
{code:java}
Terms terms = 
MultiFields.getFields(searcher.getIndexReader()).terms(trainingParams.feature);
{code}
Instead I think it should be this:
{code:java}
Terms terms = 
((SolrIndexSearcher)searcher).getSlowAtomicReader().terms(trainingParams.feature);
{code}

MultiFields can take some time to build and Solr (via SlowAtomicReader) has 
already done this work.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to