Class ExtensionQuery
- java.lang.Object
-
- org.apache.lucene.queryparser.ext.ExtensionQuery
-
public class ExtensionQuery extends Object
ExtensionQuery
holds all query components extracted from the original query string like the query field and the extension query string.- See Also:
Extensions
,ExtendableQueryParser
,ParserExtension
-
-
Constructor Summary
Constructors Constructor Description ExtensionQuery(QueryParser topLevelParser, String field, String rawQueryString)
Creates a newExtensionQuery
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getField()
Returns the query fieldString
getRawQueryString()
Returns the raw extension query stringQueryParser
getTopLevelParser()
Returns the top level parser which created thisExtensionQuery
-
-
-
Constructor Detail
-
ExtensionQuery
public ExtensionQuery(QueryParser topLevelParser, String field, String rawQueryString)
Creates a newExtensionQuery
- Parameters:
field
- the query fieldrawQueryString
- the raw extension query string
-
-
Method Detail
-
getField
public String getField()
Returns the query field- Returns:
- the query field
-
getRawQueryString
public String getRawQueryString()
Returns the raw extension query string- Returns:
- the raw extension query string
-
getTopLevelParser
public QueryParser getTopLevelParser()
Returns the top level parser which created thisExtensionQuery
- Returns:
- the top level parser which created this
ExtensionQuery
-
-