Свойство | Тип | Описание | |
---|---|---|---|
flags | Operator | ||
weights | float>.IDictionary |
Метод | Описание | |
---|---|---|
Parse ( string queryText ) : |
Parses the query text and returns parsed query (or null if empty)
|
|
SimpleQueryParser ( |
Creates a new parser searching over multiple fields with different weights.
|
|
SimpleQueryParser ( |
Creates a new parser with custom flags used to enable/disable certain features.
|
|
SimpleQueryParser ( |
Creates a new parser searching over a single field.
|
Метод | Описание | |
---|---|---|
NewDefaultQuery ( string text ) : |
Factory method to generate a standard query (no phrase or prefix operators).
|
|
NewFuzzyQuery ( string text, int fuzziness ) : |
Factory method to generate a fuzzy query.
|
|
NewPhraseQuery ( string text, int slop ) : |
Factory method to generate a phrase query with slop.
|
|
NewPrefixQuery ( string text ) : |
Factory method to generate a prefix query.
|
|
Simplify ( Lucene.Net.Search.BooleanQuery bq ) : |
Helper to simplify boolean queries with 0 or 1 clause
|
Метод | Описание | |
---|---|---|
BuildQueryTree ( State state, |
buildQueryTree should be called after a term, phrase, or subquery is consumed to be added to our existing query tree this method will only add to the existing tree if the branch contained in state is not null
|
|
ConsumePhrase ( State state ) : void | ||
ConsumeSubQuery ( State state ) : void | ||
ConsumeToken ( State state ) : void | ||
ParseFuzziness ( State state ) : int |
Helper parsing fuzziness from parsing state
|
|
ParseSubQuery ( State state ) : void | ||
TokenFinished ( State state ) : bool |
Helper returning true if the state has reached the end of token.
|
protected NewDefaultQuery ( string text ) : |
||
text | string | |
Результат |
protected NewFuzzyQuery ( string text, int fuzziness ) : |
||
text | string | |
fuzziness | int | |
Результат |
protected NewPhraseQuery ( string text, int slop ) : |
||
text | string | |
slop | int | |
Результат |
protected NewPrefixQuery ( string text ) : |
||
text | string | |
Результат |
public Parse ( string queryText ) : |
||
queryText | string | |
Результат |
public SimpleQueryParser ( |
||
analyzer | ||
weights | float>.IDictionary | |
Результат | Lucene.Net.Analysis |
public SimpleQueryParser ( |
||
analyzer | ||
weights | float>.IDictionary | |
flags | Operator | |
Результат | Lucene.Net.Analysis |
public SimpleQueryParser ( |
||
analyzer | ||
field | string | |
Результат | Lucene.Net.Analysis |
protected Simplify ( Lucene.Net.Search.BooleanQuery bq ) : |
||
bq | Lucene.Net.Search.BooleanQuery | |
Результат |