프로퍼티 | 타입 | 설명 | |
---|---|---|---|
AND_OPERATOR | Operator | ||
OR_OPERATOR | Operator | ||
jj_nt | Token | ||
token | Token | ||
token_source | QueryParserTokenManager |
메소드 | 설명 | |
---|---|---|
Clause ( String field ) : |
||
Conjunction ( ) : int | ||
Disable_tracing ( ) : void |
Disable tracing.
|
|
Enable_tracing ( ) : void |
Enable tracing.
|
|
Escape ( String s ) : String |
Returns a String where those characters that QueryParser expects to be escaped are escaped by a preceding
|
|
GenerateParseException ( ) : Lucene.Net.QueryParsers.ParseException |
Generate ParseException.
|
|
GetNextToken ( ) : Token |
Get the next Token.
|
|
Modifiers ( ) : int | ||
Parse ( String query ) : |
Parses a query string, returning a {@link Lucene.Net.Search.Query}.
|
|
Query ( String field ) : |
||
QueryParser ( Lucene.Net.Util.Version matchVersion, String f, |
||
ReInit ( ICharStream stream ) : void |
Reinitialise.
|
|
ReInit ( Lucene.Net.QueryParsers.QueryParserTokenManager tm ) : void |
Reinitialise.
|
|
SetDateResolution ( Lucene.Net.Documents.DateTools dateResolution ) : void |
Sets the default date resolution used by RangeQueries for fields for which no specific date resolutions has been set. Field specific resolutions can be set with {@link #SetDateResolution(String, DateTools.Resolution)}.
|
|
SetDateResolution ( String fieldName, Lucene.Net.Documents.DateTools dateResolution ) : void |
Sets the date resolution used by RangeQueries for a specific field.
|
|
Term ( String field ) : |
||
TopLevelQuery ( String field ) : |
||
getDateResolution ( String fieldName ) : Lucene.Net.Documents.DateTools.Resolution |
Returns the date resolution that is used by RangeQueries for the given field. Returns null, if no default or field specific date resolution has been set for the given field.
|
|
getToken ( int index ) : Token |
Get the specific Token.
|
메소드 | 설명 | |
---|---|---|
AddClause ( List |
||
GetBooleanQuery ( IList |
Factory method for generating query, given a set of clauses. By default creates a boolean query composed of clauses passed in. Can be overridden by extending classes, to modify query being returned.
|
|
GetBooleanQuery ( IList |
Factory method for generating query, given a set of clauses. By default creates a boolean query composed of clauses passed in. Can be overridden by extending classes, to modify query being returned.
|
|
GetFieldQuery ( String field, String queryText ) : |
||
GetFieldQuery ( String field, String queryText, int slop ) : |
Base implementation delegates to {@link #GetFieldQuery(String,String)}. This method may be overridden, for example, to return a SpanNearQuery instead of a PhraseQuery.
|
|
GetFuzzyQuery ( String field, String termStr, float minSimilarity ) : |
Factory method for generating a query (similar to {@link #getWildcardQuery}). Called when parser parses an input term token that has the fuzzy suffix (~) appended.
|
|
GetPrefixQuery ( String field, String termStr ) : |
Factory method for generating a query (similar to {@link #getWildcardQuery}). Called when parser parses an input term token that uses prefix notation; that is, contains a single '*' wildcard character as its last character. Since this is a special case of generic wildcard term, and such a query can be optimized easily, this usually results in a different query object. Depending on settings, a prefix term may be lower-cased automatically. It will not go through the default Analyzer, however, since normal Analyzers are unlikely to work properly with wildcard templates. Can be overridden by extending classes, to provide custom handling for wild card queries, which may be necessary due to missing analyzer calls.
|
|
GetRangeQuery ( String field, String part1, String part2, bool inclusive ) : |
||
GetWildcardQuery ( String field, String termStr ) : |
Factory method for generating a query. Called when parser parses an input term token that contains one or more wildcard characters (? and *), but is not a prefix term token (one that has just a single * character at the end) Depending on settings, prefix term may be lower-cased automatically. It will not go through the default Analyzer, however, since normal Analyzers are unlikely to work properly with wildcard templates. Can be overridden by extending classes, to provide custom handling for wildcard queries, which may be necessary due to missing analyzer calls.
|
|
NewBooleanClause ( |
Builds a new BooleanClause instance
|
|
NewBooleanQuery ( bool disableCoord ) : Lucene.Net.Search.BooleanQuery |
Builds a new BooleanQuery instance
|
|
NewFuzzyQuery ( Lucene.Net.Index.Term term, float minimumSimilarity, int prefixLength ) : |
Builds a new FuzzyQuery instance
|
|
NewMatchAllDocsQuery ( ) : |
Builds a new MatchAllDocsQuery instance
|
|
NewMultiPhraseQuery ( ) : |
Builds a new MultiPhraseQuery instance
|
|
NewPhraseQuery ( ) : |
Builds a new PhraseQuery instance
|
|
NewPrefixQuery ( Lucene.Net.Index.Term prefix ) : |
Builds a new PrefixQuery instance
|
|
NewRangeQuery ( String field, String part1, String part2, bool inclusive ) : |
Builds a new TermRangeQuery instance
|
|
NewTermQuery ( Lucene.Net.Index.Term term ) : |
Builds a new TermQuery instance
|
|
NewWildcardQuery ( Lucene.Net.Index.Term t ) : |
Builds a new WildcardQuery instance
|
|
QueryParser ( ICharStream stream ) : System |
Constructor with user supplied CharStream.
|
|
QueryParser ( Lucene.Net.QueryParsers.QueryParserTokenManager tm ) : System |
Constructor with generated Token Manager.
|
메소드 | 설명 | |
---|---|---|
DiscardEscapeChar ( String input ) : String |
Returns a String where the escape char has been removed, or kept only once if there was a double escape. Supports escaped unicode characters, e. g. translates
|
|
HexToInt ( char c ) : int |
Returns the numeric value of the hexadecimal character
|
|
Jj_2_1 ( int xla ) : bool | ||
Jj_3R_2 ( ) : bool | ||
Jj_3R_3 ( ) : bool | ||
Jj_3_1 ( ) : bool | ||
Jj_add_error_token ( int kind, int pos ) : void | ||
Jj_consume_token ( int kind ) : Token | ||
Jj_la1_init_0 ( ) : void | ||
Jj_la1_init_1 ( ) : void | ||
Jj_ntk ( ) : int | ||
Jj_rescan_token ( ) : void | ||
Jj_save ( int index, int xla ) : void | ||
Main ( String args ) : void | ||
QueryParser ( ) : System | ||
jj_scan_token ( int kind ) : bool |
protected AddClause ( List |
||
clauses | List |
|
conj | int | |
mods | int | |
q | ||
리턴 | void |
public GenerateParseException ( ) : Lucene.Net.QueryParsers.ParseException | ||
리턴 | Lucene.Net.QueryParsers.ParseException |
protected GetBooleanQuery ( IList |
||
clauses | IList |
List that contains {@link BooleanClause} instances /// to join. /// /// |
리턴 |
protected GetBooleanQuery ( IList |
||
clauses | IList |
List that contains {@link BooleanClause} instances /// to join. /// |
disableCoord | bool | true if coord scoring should be disabled. /// /// |
리턴 |
protected GetFieldQuery ( String field, String queryText ) : |
||
field | String | |
queryText | String | |
리턴 |
protected GetFieldQuery ( String field, String queryText, int slop ) : |
||
field | String | |
queryText | String | |
slop | int | |
리턴 |
protected GetFuzzyQuery ( String field, String termStr, float minSimilarity ) : |
||
field | String | Name of the field query will use. /// |
termStr | String | Term token to use for building term for the query /// /// |
minSimilarity | float | |
리턴 |
protected GetPrefixQuery ( String field, String termStr ) : |
||
field | String | Name of the field query will use. /// |
termStr | String | Term token to use for building term for the query /// (without trailing '*' character!) /// /// |
리턴 |
protected GetRangeQuery ( String field, String part1, String part2, bool inclusive ) : |
||
field | String | |
part1 | String | |
part2 | String | |
inclusive | bool | |
리턴 |
protected GetWildcardQuery ( String field, String termStr ) : |
||
field | String | Name of the field query will use. /// |
termStr | String | Term token that contains one or more wild card /// characters (? or *), but is not simple prefix term /// /// |
리턴 |
protected NewBooleanClause ( |
||
q | sub query /// | |
occur | how this clause should occur when matching documents /// | |
리턴 |
protected NewBooleanQuery ( bool disableCoord ) : Lucene.Net.Search.BooleanQuery | ||
disableCoord | bool | disable coord /// |
리턴 | Lucene.Net.Search.BooleanQuery |
protected NewFuzzyQuery ( Lucene.Net.Index.Term term, float minimumSimilarity, int prefixLength ) : |
||
term | Lucene.Net.Index.Term | Term /// |
minimumSimilarity | float | minimum similarity /// |
prefixLength | int | prefix length /// |
리턴 |
protected NewMatchAllDocsQuery ( ) : |
||
리턴 |
protected NewMultiPhraseQuery ( ) : |
||
리턴 |
protected NewPhraseQuery ( ) : |
||
리턴 |
protected NewPrefixQuery ( Lucene.Net.Index.Term prefix ) : |
||
prefix | Lucene.Net.Index.Term | Prefix term /// |
리턴 |
protected NewRangeQuery ( String field, String part1, String part2, bool inclusive ) : |
||
field | String | Field /// |
part1 | String | min /// |
part2 | String | max /// |
inclusive | bool | true if range is inclusive /// |
리턴 |
protected NewTermQuery ( Lucene.Net.Index.Term term ) : |
||
term | Lucene.Net.Index.Term | term /// |
리턴 |
protected NewWildcardQuery ( Lucene.Net.Index.Term t ) : |
||
t | Lucene.Net.Index.Term | wildcard term /// |
리턴 |
public Parse ( String query ) : |
||
query | String | the query string to be parsed. /// |
리턴 |
protected QueryParser ( ICharStream stream ) : System | ||
stream | ICharStream | |
리턴 | System |
protected QueryParser ( Lucene.Net.QueryParsers.QueryParserTokenManager tm ) : System | ||
tm | Lucene.Net.QueryParsers.QueryParserTokenManager | |
리턴 | System |
public QueryParser ( Lucene.Net.Util.Version matchVersion, String f, |
||
matchVersion | Lucene.Net.Util.Version | |
f | String | |
a | ||
리턴 | System |
public ReInit ( Lucene.Net.QueryParsers.QueryParserTokenManager tm ) : void | ||
tm | Lucene.Net.QueryParsers.QueryParserTokenManager | |
리턴 | void |
public SetDateResolution ( Lucene.Net.Documents.DateTools dateResolution ) : void | ||
dateResolution | Lucene.Net.Documents.DateTools | the default date resolution to set /// |
리턴 | void |
public SetDateResolution ( String fieldName, Lucene.Net.Documents.DateTools dateResolution ) : void | ||
fieldName | String | field for which the date resolution is to be set /// |
dateResolution | Lucene.Net.Documents.DateTools | date resolution to set /// |
리턴 | void |
public TopLevelQuery ( String field ) : |
||
field | String | |
리턴 |
public getDateResolution ( String fieldName ) : Lucene.Net.Documents.DateTools.Resolution | ||
fieldName | String | |
리턴 | Lucene.Net.Documents.DateTools.Resolution |