Class MaxScoreQParser

    • Constructor Detail

      • MaxScoreQParser

        public MaxScoreQParser​(String qstr,
                               org.apache.solr.common.params.SolrParams localParams,
                               org.apache.solr.common.params.SolrParams params,
                               SolrQueryRequest req)
    • Method Detail

      • parse

        public parse()
                                             throws SyntaxError
        Parses the query exactly like the Lucene parser does, but delegates all SHOULD clauses to DisjunctionMaxQuery with meaning only the clause with the max score will contribute to the overall score, unless the tie parameter is specified.
        The max() is only calculated from the SHOULD clauses. Any MUST clauses will be passed through as separate BooleanClauses and thus always contribute to the score.
        parse in class LuceneQParser
        the resulting Query
        SyntaxError - if parsing fails
        See Also: