Class QueryParserWrapper

  • Direct Known Subclasses:
    MultiFieldQueryParserWrapper

    @Deprecated
    public class QueryParserWrapper
    extends Object
    Deprecated.
    this class will be removed soon, it's a temporary class to be used along the transition from the old query parser to the new one
    This class performs the query parsing using the new query parser implementation, but keeps the old QueryParser API.

    This class should be used when the new query parser features are and the old QueryParser API are needed at the same time.
    • Constructor Detail

      • QueryParserWrapper

        public QueryParserWrapper​(String defaultField,
                                  Analyzer analyzer)
        Deprecated.
    • Method Detail

      • escape

        public static String escape​(String s)
        Deprecated.
        Returns a String where those characters that QueryParser expects to be escaped are escaped by a preceding \.
      • getField

        public String getField()
        Deprecated.
      • getAnalyzer

        public Analyzer getAnalyzer()
        Deprecated.
      • setQueryBuilder

        public void setQueryBuilder​(StandardQueryBuilder builder)
        Deprecated.
        Sets the StandardQueryBuilder used to generate a Query object from the parsed and processed query node tree.
        Parameters:
        builder - the builder
      • getQueryConfigHandler

        public QueryConfigHandler getQueryConfigHandler()
        Deprecated.
        Returns the query config handler used by this query parser
        Returns:
        the query config handler
      • generateParseException

        public ParseException generateParseException()
        Deprecated.
      • getAllowLeadingWildcard

        public boolean getAllowLeadingWildcard()
        Deprecated.
      • getEnablePositionIncrements

        public boolean getEnablePositionIncrements()
        Deprecated.
      • getFuzzyMinSim

        public float getFuzzyMinSim()
        Deprecated.
      • getFuzzyPrefixLength

        public int getFuzzyPrefixLength()
        Deprecated.
      • getLocale

        public Locale getLocale()
        Deprecated.
      • getLowercaseExpandedTerms

        public boolean getLowercaseExpandedTerms()
        Deprecated.
      • getPhraseSlop

        public int getPhraseSlop()
        Deprecated.
      • getRangeCollator

        public Collator getRangeCollator()
        Deprecated.
      • getUseOldRangeQuery

        public boolean getUseOldRangeQuery()
        Deprecated.
      • setAllowLeadingWildcard

        public void setAllowLeadingWildcard​(boolean allowLeadingWildcard)
        Deprecated.
      • setDateResolution

        public void setDateResolution​(DateTools.Resolution dateResolution)
        Deprecated.
      • setEnablePositionIncrements

        public void setEnablePositionIncrements​(boolean enable)
        Deprecated.
      • setFuzzyMinSim

        public void setFuzzyMinSim​(float fuzzyMinSim)
        Deprecated.
      • setFuzzyPrefixLength

        public void setFuzzyPrefixLength​(int fuzzyPrefixLength)
        Deprecated.
      • setLocale

        public void setLocale​(Locale locale)
        Deprecated.
      • setLowercaseExpandedTerms

        public void setLowercaseExpandedTerms​(boolean lowercaseExpandedTerms)
        Deprecated.
      • setPhraseSlop

        public void setPhraseSlop​(int phraseSlop)
        Deprecated.
      • setRangeCollator

        public void setRangeCollator​(Collator rc)
        Deprecated.
      • setUseOldRangeQuery

        public void setUseOldRangeQuery​(boolean useOldRangeQuery)
        Deprecated.