Set analyzers for _all field with NEST -


as described in _all field elasticsearch documentation.

the _all fields allows store, term_vector , analyzer (with specific index_analyzer , search_analyzer) set.

is there way specify index_analyzer , search_analyzer attributes on _all field mapping nest? specifically, able set following index:

 {      "model": {         "_all": {               "index_analyzer": "ngram_analyzer",              "search_analyzer": "whitespace_analyzer"         }         ...   } 

i did not see allow in fluent mappings. can set manually if not via fluent mapping?

starting nest 1.0 can this:

var result = this._client.map<elasticsearchproject>(m => m     .allfield(a=>a         .enabled()          .indexanalyzer("ngram_analyzer")         .searchanalyzer("whitespace_analyzer")         .termvector(termvectoroption.with_positions_offsets)     )     ...     ... 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -