Skip to content

Commit 328732f

Browse files
committed
Update src/Nest/DSL/Factory/QueryFactory.cs
1 parent ede185a commit 328732f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Nest/DSL/Factory/QueryFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static TextQueryBuilder TextQuery(string name, object text)
3333
/// <returns></returns>
3434
public static TextQueryBuilder TextPhraseQuery(string name, object text)
3535
{
36-
return new TextQueryBuilder(name, text).Type(TextQueryType.PHASE);
36+
return new TextQueryBuilder(name, text).Type(TextQueryType.PHRASE);
3737
}
3838

3939
/// <summary>
@@ -44,7 +44,7 @@ public static TextQueryBuilder TextPhraseQuery(string name, object text)
4444
/// <returns></returns>
4545
public static TextQueryBuilder TextPhrasePrefixQuery(string name, object text)
4646
{
47-
return new TextQueryBuilder(name, text).Type(TextQueryType.PHASE_PREFIX);
47+
return new TextQueryBuilder(name, text).Type(TextQueryType.PHRASE_PREFIX);
4848
}
4949

5050
/// <summary>

0 commit comments

Comments
 (0)