David Smiley created SOLR-14800:
-----------------------------------

             Summary: Filter default score should be the provided boost, not 
zero
                 Key: SOLR-14800
                 URL: https://issues.apache.org/jira/browse/SOLR-14800
             Project: Solr
          Issue Type: Sub-task
          Components: search
            Reporter: David Smiley


I see some inconsistency in what some "constant scoring queries" return for a 
score.  Lucene's ConstantScoreQuery yields 1 but it can be boosted (e.g. 
multiplied by whatever).  SolrConstantScoreQuery (which wraps a Filter) does 
the same.  Filter itself (which was modified to BE a Query years ago) yields 0 
(not boostable), and so if it's used as a Query (vs only used as a supplier of 
DocIdSet), it's always 0.  Nearly all ConstantScoreQuery usages use the 
provided boost (often indirectly via score() which is initialized to the 
boost), and do not hard-code 0.  I think we should standardize on this approach.

Note: ToParentBlockJoinQuery (and Child equivalent) use 0 (by code inspection) 
but this seems to be an anomaly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to