|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.queryParser.QueryParser
org.dlese.dpc.index.queryParser.ExtractorQueryParser
public class ExtractorQueryParser
A QueryParser for extracting terms and phrases from a given query. Note: this QueryParser does not return a usable Query.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.queryParser.QueryParser |
|---|
QueryParser.Operator |
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.queryParser.QueryParser |
|---|
AND_OPERATOR, jj_nt, OR_OPERATOR, token, token_source |
| Fields inherited from interface org.apache.lucene.queryParser.QueryParserConstants |
|---|
_ESCAPED_CHAR, _NUM_CHAR, _QUOTED_CHAR, _TERM_CHAR, _TERM_START_CHAR, _WHITESPACE, AND, Boost, CARAT, COLON, DEFAULT, EOF, FUZZY_SLOP, LPAREN, MINUS, NOT, NUMBER, OR, PLUS, PREFIXTERM, QUOTED, RangeEx, RANGEEX_END, RANGEEX_GOOP, RANGEEX_QUOTED, RANGEEX_START, RANGEEX_TO, RangeIn, RANGEIN_END, RANGEIN_GOOP, RANGEIN_QUOTED, RANGEIN_START, RANGEIN_TO, RPAREN, STAR, TERM, tokenImage, WILDTERM |
| Constructor Summary | |
|---|---|
ExtractorQueryParser(String defaultFieldInQuery,
Analyzer analyzer,
String fieldToExtract)
Constructor for the ExtractorQueryParser object |
|
| Method Summary | |
|---|---|
static String |
getDateStamp()
Gets a datestamp of the current time formatted for display with logs and output. |
String[] |
getExtractedTerms()
Gets the terms extracted from the given field after calling the parse method. |
protected Query |
getFieldQuery(String field,
String queryText)
Gets the fieldQuery attribute of the ExtractorQueryParser object |
static void |
setDebug(boolean db)
Sets the debug attribute of the FieldQueryParser object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtractorQueryParser(String defaultFieldInQuery,
Analyzer analyzer,
String fieldToExtract)
defaultFieldInQuery - The defult field in the query you are parsinganalyzer - The Analyzer to use when parsing the queryfieldToExtract - The field you wish to extract the terms from| Method Detail |
|---|
protected Query getFieldQuery(String field,
String queryText)
throws ParseException
getFieldQuery in class QueryParserfield - The field being processedqueryText - The text in the field
ParseException - If errorpublic String[] getExtractedTerms()
public static final String getDateStamp()
public static void setDebug(boolean db)
db - The new debug value
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||