Class ParseOptions

java.lang.Object
com.jalios.jcms.search.queryparser.ParseOptions

public class ParseOptions extends Object
Holder class for text search options
Since:
jcms-6.1.0
  • Constructor Details

    • ParseOptions

      public ParseOptions(String[] fields, QueryHandler qh, ParseOptions.Engine engine)
      Build a new ParseOptions from the specified QueryHandler
      Parameters:
      fields - the fields in which search should be performed
      qh - the QueryHandler from which options should be retrieved
      engine - the search engine for which the search is being performed
      Since:
      jcms-8.0.0
    • ParseOptions

      public ParseOptions(String[] fields, AllMemberQueryHandler amqh)
      Build a new ParseOptions from the specified AllMemberQueryHandler
      Parameters:
      fields - the fields in which search should be performed
      amqh - the QueryHandler from which options should be retrieved
      Since:
      jcms-6.1.0
    • ParseOptions

      protected ParseOptions(String[] fields, AbstractQueryHandler<?> qh, ParseOptions.Engine engine)
  • Method Details

    • getMode

      public ParseOptions.TextMode getMode()
      Retrieve the TextMode to use during the text search
      Returns:
      a TextMode
      Since:
      jcms-6.1.0
    • getFields

      public String[] getFields()
      Retrieve the lucene fields in which to perform the search
      Returns:
      an array of lucene fields name
      Since:
      jcms-6.1.0
    • getQueryHandler

      public AbstractQueryHandler<?> getQueryHandler()
      Retrieve the QueryHandler associated to this ParseOptions (if any).
      Returns:
      an AbstractQueryHandler instance, or null if this ParseOptions was not created with a QueryHandler.
      Since:
      jcms-10.0.2 / JCMS-6800
    • getLocale

      public Locale getLocale()
      Retrieve the locale in which the parsing is requested.
      Returns:
      a Locale instance (maybe return null)
    • getLang

      public String getLang()
      Retrieve the lang in which the parsing is requested.
      Returns:
      a ISO-639 coed (maybe return null)
    • getEngine

      public ParseOptions.Engine getEngine()
      Retrieve the Engine for which the search operation was requested.
      Returns:
      a Engine
      Since:
      jcms-8.0.0