Class ParseOptions
java.lang.Object
com.jalios.jcms.search.queryparser.ParseOptions
Holder class for text search options
- Since:
- jcms-6.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSearch engine for which an operation is requested.static enum -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedParseOptions(String[] fields, AbstractQueryHandler<?> qh, ParseOptions.Engine engine) ParseOptions(String[] fields, AllMemberQueryHandler amqh) Build a new ParseOptions from the specified AllMemberQueryHandlerParseOptions(String[] fields, QueryHandler qh, ParseOptions.Engine engine) Build a new ParseOptions from the specified QueryHandler -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the Engine for which the search operation was requested.String[]Retrieve the lucene fields in which to perform the searchgetLang()Retrieve the lang in which the parsing is requested.Retrieve the locale in which the parsing is requested.getMode()Retrieve the TextMode to use during the text searchRetrieve the QueryHandler associated to this ParseOptions (if any).
-
Constructor Details
-
ParseOptions
Build a new ParseOptions from the specified QueryHandler- Parameters:
fields- the fields in which search should be performedqh- the QueryHandler from which options should be retrievedengine- the search engine for which the search is being performed- Since:
- jcms-8.0.0
-
ParseOptions
Build a new ParseOptions from the specified AllMemberQueryHandler- Parameters:
fields- the fields in which search should be performedamqh- the QueryHandler from which options should be retrieved- Since:
- jcms-6.1.0
-
ParseOptions
-
-
Method Details
-
getMode
Retrieve the TextMode to use during the text search- Returns:
- a TextMode
- Since:
- jcms-6.1.0
-
getFields
Retrieve the lucene fields in which to perform the search- Returns:
- an array of lucene fields name
- Since:
- jcms-6.1.0
-
getQueryHandler
Retrieve the QueryHandler associated to this ParseOptions (if any).- Returns:
- an
AbstractQueryHandlerinstance, or null if this ParseOptions was not created with a QueryHandler. - Since:
- jcms-10.0.2 / JCMS-6800
-
getLocale
Retrieve the locale in which the parsing is requested.- Returns:
- a Locale instance (maybe return null)
-
getLang
Retrieve the lang in which the parsing is requested.- Returns:
- a ISO-639 coed (maybe return null)
-
getEngine
Retrieve the Engine for which the search operation was requested.- Returns:
- a Engine
- Since:
- jcms-8.0.0
-