Class ParseOptions
- java.lang.Object
-
- com.jalios.jcms.search.queryparser.ParseOptions
-
public class ParseOptions extends java.lang.ObjectHolder class for text search options- Since:
- jcms-6.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParseOptions.EngineSearch engine for which an operation is requested.static classParseOptions.TextMode
-
Constructor Summary
Constructors Modifier Constructor Description protectedParseOptions(java.lang.String[] fields, AbstractQueryHandler<?> qh, ParseOptions.Engine engine)ParseOptions(java.lang.String[] fields, AllMemberQueryHandler amqh)Build a new ParseOptions from the specified AllMemberQueryHandlerParseOptions(java.lang.String[] fields, QueryHandler qh, ParseOptions.Engine engine)Build a new ParseOptions from the specified QueryHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseOptions.EnginegetEngine()Retrieve the Engine for which the search operation was requested.java.lang.String[]getFields()Retrieve the lucene fields in which to perform the searchjava.lang.StringgetLang()Retrieve the lang in which the parsing is requested.java.util.LocalegetLocale()Retrieve the locale in which the parsing is requested.ParseOptions.TextModegetMode()Retrieve the TextMode to use during the text searchAbstractQueryHandler<?>getQueryHandler()Retrieve the QueryHandler associated to this ParseOptions (if any).
-
-
-
Constructor Detail
-
ParseOptions
public ParseOptions(java.lang.String[] fields, QueryHandler qh, ParseOptions.Engine engine)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
public ParseOptions(java.lang.String[] fields, AllMemberQueryHandler amqh)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
protected ParseOptions(java.lang.String[] fields, AbstractQueryHandler<?> qh, ParseOptions.Engine engine)
-
-
Method Detail
-
getMode
public ParseOptions.TextMode getMode()
Retrieve the TextMode to use during the text search- Returns:
- a TextMode
- Since:
- jcms-6.1.0
-
getFields
public java.lang.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
AbstractQueryHandlerinstance, or null if this ParseOptions was not created with a QueryHandler. - Since:
- jcms-10.0.2 / JCMS-6800
-
getLocale
public java.util.Locale getLocale()
Retrieve the locale in which the parsing is requested.- Returns:
- a Locale instance (maybe return null)
-
getLang
public java.lang.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
-
-