/** # Connecting * Connecting to *Elasticsearch* with `Elasticsearch.Net` is quite easy but has a few toggles and options worth knowing. * * # Choosing the right connection strategy * If you simply new an `ElasticsearchClient`, it will be a non-failover connection to `http://localhost:9200` */ public void InstantiateUsingAllDefaults() { var client = new ElasticsearchClient(); var tokenizers = new TokenizersDescriptor(); }
public static TokenizersDescriptor AddDmpNgramTokenizer(this TokenizersDescriptor td) { td.NGram(ElasticTokenizers.Ngram, ng => ng.TokenChars(TokenChar.Letter, TokenChar.Digit).MinGram(3).MaxGram(15)); return(td); }