Class FuzzyQueryNode
A FuzzyQueryNode represents a element that contains field/text/similarity tuple
Implements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class FuzzyQueryNode : FieldQueryNode, IFieldValuePairQueryNode<string>, IFieldableNode, IValueQueryNode<string>, IQueryNode, ITextableQueryNode
Constructors
FuzzyQueryNode(string, ICharSequence, float, int, int)
A FuzzyQueryNode represents a element that contains field/text/similarity tuple
Declaration
public FuzzyQueryNode(string field, ICharSequence term, float minSimilarity, int begin, int end)
Parameters
Type | Name | Description |
---|---|---|
string | field | Name of the field query will use. |
ICharSequence | term | Term token to use for building term for the query |
float | minSimilarity | similarity value |
int | begin | position in the query string |
int | end | position in the query string |
FuzzyQueryNode(string, string, float, int, int)
A FuzzyQueryNode represents a element that contains field/text/similarity tuple
Declaration
public FuzzyQueryNode(string field, string term, float minSimilarity, int begin, int end)
Parameters
Type | Name | Description |
---|---|---|
string | field | Name of the field query will use. |
string | term | Term token to use for building term for the query |
float | minSimilarity | similarity value |
int | begin | position in the query string |
int | end | position in the query string |
FuzzyQueryNode(string, StringBuilder, float, int, int)
A FuzzyQueryNode represents a element that contains field/text/similarity tuple
Declaration
public FuzzyQueryNode(string field, StringBuilder term, float minSimilarity, int begin, int end)
Parameters
Type | Name | Description |
---|---|---|
string | field | Name of the field query will use. |
StringBuilder | term | Term token to use for building term for the query |
float | minSimilarity | similarity value |
int | begin | position in the query string |
int | end | position in the query string |
Properties
PrefixLength
A FuzzyQueryNode represents a element that contains field/text/similarity tuple
Declaration
public virtual int PrefixLength { get; set; }
Property Value
Type | Description |
---|---|
int |
Similarity
Gets or Sets the similarity
Declaration
public virtual float Similarity { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
CloneTree()
Recursive clone the IQueryNode tree. The tags are not copied to the new tree when you call the CloneTree() method.
Declaration
public override IQueryNode CloneTree()
Returns
Type | Description |
---|---|
IQueryNode | the cloned tree |
Overrides
ToQueryString(IEscapeQuerySyntax)
convert to a query string understood by the query parser
Declaration
public override string ToQueryString(IEscapeQuerySyntax escaper)
Parameters
Type | Name | Description |
---|---|---|
IEscapeQuerySyntax | escaper |
Returns
Type | Description |
---|---|
string |
Overrides
ToString()
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |