Class ProximityQueryNode
A ProximityQueryNode represents a query where the terms should meet specific distance conditions. (a b c) WITHIN [SENTENCE|PARAGRAPH|NUMBER] [INORDER] ("a" "b" "c") WITHIN [SENTENCE|PARAGRAPH|NUMBER] [INORDER]
TODO: Add this to the future standard Lucene parser/processor/builder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Lucene.Net.QueryParser.dll
Syntax
[Serializable]
public class ProximityQueryNode : BooleanQueryNode, IQueryNode
Constructors
Name | Description |
---|---|
ProximityQueryNode(IList<IQueryNode>, String, ProximityQueryNode.Type, Boolean) | |
ProximityQueryNode(IList<IQueryNode>, String, ProximityQueryNode.Type, Int32, Boolean) |
Properties
Name | Description |
---|---|
Distance | Gets the distance |
Field | Gets or Sets the field. Returns null if the field was not specified in the query string. |
IsInOrder | terms must be matched in the specified order |
ProximityType |
Methods
Name | Description |
---|---|
CloneTree() | |
GetFieldAsString() | Gets the field as a string. Returns null if the field was not specified in the query string. |
ToQueryString(IEscapeQuerySyntax) | |
ToString() |