Class ExtensionQuery
- java.lang.Object
-
- org.apache.lucene.queryparser.ext.ExtensionQuery
-
public class ExtensionQuery extends java.lang.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, java.lang.String field, java.lang.String rawQueryString)
Creates a newExtensionQuery
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getField()
Returns the query fieldjava.lang.String
getRawQueryString()
Returns the raw extension query stringQueryParser
getTopLevelParser()
Returns the top level parser which created thisExtensionQuery
-
-
-
Constructor Detail
-
ExtensionQuery
public ExtensionQuery(QueryParser topLevelParser, java.lang.String field, java.lang.String rawQueryString)
Creates a newExtensionQuery
- Parameters:
field
- the query fieldrawQueryString
- the raw extension query string
-
-
Method Detail
-
getField
public java.lang.String getField()
Returns the query field- Returns:
- the query field
-
getRawQueryString
public java.lang.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
-
-