My matchPhrase nest query is not working as matchphrase raw json

Hi

I have a match Phrase Nest query as given below

sd = new SearchDescriptor();
sd.From(0);
sd.Size(10);

sd.Query(q =>
q.MatchPhrase(m => m
.Field(p => p.title)
.Query("Test Article in Credit")
));
The above query gives me two documents

while if I extract raw query json from it and test using fiddler as below
{
"query": {
"match_phrase": {
"title": {
"query": "Test Article in Credit"
}
}
}
}

then I get 5 documents

I am not sure what I am missing in my nestclient query.....Could anybody provide any direction

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.