Created
October 2, 2017 14:59
-
-
Save bozhink/c6054d104c52306f38be38688633c53c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://github.com/elastic/elasticsearch-net/issues/2860 | |
public class MyDocument | |
{ | |
public string RecordType { get; set; } | |
} | |
var client = new ElasticClient(); | |
client.Search<MyDocument>(s => s | |
.Index("ic") | |
.AllTypes() | |
.Query(q => q | |
.MatchPhrase(mp => mp | |
.Field(f => f.RecordType) | |
.Query("WealthEvent") | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment