public class QueryParsers extends Object
Constructor and Description |
---|
QueryParsers() |
QueryParsers(QueryOperators operators) |
Modifier and Type | Method and Description |
---|---|
PhraseQuery |
createPhraseQuery(SearchTerm term,
boolean quoted)
Hook to allow initializing a
PhraseQuery . |
Query |
eval(QueryString query)
Hook to allow inline parsing of
query . |
String |
getDefaultSearchField() |
TimeZone |
getTimeZone() |
Object |
parseObject(StringParser reader)
Parse a value.
|
Phrase |
parsePhrase(ScopeTerm scope,
StringParser reader)
Parse the next
Phrase from reader . |
Phrase |
parsePhrase(String op,
int startOffset,
ScopeTerm scope,
StringParser reader)
|
Phrase |
parsePhraseTerm(ScopeTerm scope,
String text,
StringParser reader) |
Query |
parseQuery(ScopeTerm scope,
StringParser reader)
Parse the next Query.
|
Query |
parseQuery(String value) |
Query |
parseQuery(String op,
int startOffset,
ScopeTerm scope,
StringParser reader)
Parse
op as a query. |
Query |
parseQueryEx(String value) |
Query |
parseQueryTerm(ScopeTerm scope,
String text,
StringParser reader) |
SearchTerm |
parseSearchTerm(StringParser reader) |
SearchTerm |
setOffset(SearchTerm term,
int startOffset,
int endOffset)
Hook to allow annotating search terms with start/end offset.
|
public QueryParsers()
public QueryParsers(QueryOperators operators)
public String getDefaultSearchField()
public TimeZone getTimeZone()
public Query parseQueryEx(String value) throws ParseException
ParseException
public Query eval(QueryString query)
query
.public PhraseQuery createPhraseQuery(SearchTerm term, boolean quoted)
PhraseQuery
.public SearchTerm setOffset(SearchTerm term, int startOffset, int endOffset)
public SearchTerm parseSearchTerm(StringParser reader) throws ParseException
ParseException
public Object parseObject(StringParser reader) throws ParseException
ParseException
public Query parseQuery(ScopeTerm scope, StringParser reader) throws ParseException
ParseException
public Query parseQuery(String op, int startOffset, ScopeTerm scope, StringParser reader) throws ParseException
op
as a query.ParseException
public Phrase parsePhrase(ScopeTerm scope, StringParser reader) throws ParseException
Phrase
from reader
.ParseException
public Phrase parsePhrase(String op, int startOffset, ScopeTerm scope, StringParser reader) throws ParseException
ParseException
public Query parseQueryTerm(ScopeTerm scope, String text, StringParser reader) throws ParseException
ParseException
public Phrase parsePhraseTerm(ScopeTerm scope, String text, StringParser reader) throws ParseException
ParseException
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.