A Query that matches documents containing a particular sequence of terms. A PhraseQuery is built by QueryParser for input like
CopyC#
"new york"
.

This query may be combined with other terms or queries with a {@link BooleanQuery}.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[SerializableAttribute]
public class PhraseQuery : Query
Visual Basic
<SerializableAttribute> _
Public Class PhraseQuery _
	Inherits Query
Visual C++
[SerializableAttribute]
public ref class PhraseQuery : public Query

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Search..::..Query
    Lucene.Net.Search..::..PhraseQuery

See Also