Class PrefixWildcardQueryNode
A PrefixWildcardQueryNode represents wildcardquery that matches abc* or *. This does not apply to phrases, this is a special case on the original lucene parser. TODO: refactor the code to remove this special case from the parser. and probably do it on a Processor
Implements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class PrefixWildcardQueryNode : WildcardQueryNode, IFieldValuePairQueryNode<string>, IFieldableNode, IValueQueryNode<string>, IQueryNode, ITextableQueryNode
Constructors
PrefixWildcardQueryNode(FieldQueryNode)
A PrefixWildcardQueryNode represents wildcardquery that matches abc* or *. This does not apply to phrases, this is a special case on the original lucene parser. TODO: refactor the code to remove this special case from the parser. and probably do it on a Processor
Declaration
public PrefixWildcardQueryNode(FieldQueryNode fqn)
Parameters
Type | Name | Description |
---|---|---|
FieldQueryNode | fqn |
PrefixWildcardQueryNode(string, ICharSequence, int, int)
A PrefixWildcardQueryNode represents wildcardquery that matches abc* or *. This does not apply to phrases, this is a special case on the original lucene parser. TODO: refactor the code to remove this special case from the parser. and probably do it on a Processor
Declaration
public PrefixWildcardQueryNode(string field, ICharSequence text, int begin, int end)
Parameters
Type | Name | Description |
---|---|---|
string | field | field name |
ICharSequence | text | value including the wildcard |
int | begin | position in the query string |
int | end | position in the query string |
PrefixWildcardQueryNode(string, string, int, int)
A PrefixWildcardQueryNode represents wildcardquery that matches abc* or *. This does not apply to phrases, this is a special case on the original lucene parser. TODO: refactor the code to remove this special case from the parser. and probably do it on a Processor
Declaration
public PrefixWildcardQueryNode(string field, string text, int begin, int end)
Parameters
Type | Name | Description |
---|---|---|
string | field | field name |
string | text | value including the wildcard |
int | begin | position in the query string |
int | end | position in the query string |
PrefixWildcardQueryNode(string, StringBuilder, int, int)
A PrefixWildcardQueryNode represents wildcardquery that matches abc* or *. This does not apply to phrases, this is a special case on the original lucene parser. TODO: refactor the code to remove this special case from the parser. and probably do it on a Processor
Declaration
public PrefixWildcardQueryNode(string field, StringBuilder text, int begin, int end)
Parameters
Type | Name | Description |
---|---|---|
string | field | field name |
StringBuilder | text | value including the wildcard |
int | begin | position in the query string |
int | end | position in the query string |
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
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 |