Class KnnQParser


  • public class KnnQParser
    extends QParser
    • Constructor Detail

      • KnnQParser

        public KnnQParser​(String qstr,
                          org.apache.solr.common.params.SolrParams localParams,
                          org.apache.solr.common.params.SolrParams params,
                          SolrQueryRequest req)
        Constructor for the QParser
        Parameters:
        qstr - The part of the query string specific to this parser
        localParams - The set of parameters that are specific to this QParser. See https://solr.apache.org/guide/solr/latest/query-guide/local-params.html
        params - The rest of the SolrParams
        req - The original SolrQueryRequest.
    • Method Detail

      • parse

        public org.apache.lucene.search.Query parse()
                                             throws SyntaxError
        Description copied from class: QParser
        Create and return the Query object represented by qstr. Null MAY be returned to signify there was no input (e.g. no query string) to parse.
        Specified by:
        parse in class QParser
        Throws:
        SyntaxError
        See Also:
        QParser.getQuery()