If you need to build analyzers that include both multi-token filters and synonym filters, consider using the multiplexer filter, with the multi-token filters in one branch and the synonym filter in the other. Others, like multiplexer, word_delimiter_graph or ngram will throw an error. Synonyms for make a decision include decide, come to a decision, make a choice, make up your mind, reach a conclusion, reach a decision, make up ones mind, reach a verdict, reach decision and come to conclusion. Token filters that produce multiple versions of a token may choose which version of the token to emit when parsing synonyms.įor example, asciifolding will only produce the folded version of the token. Removing a term from a synonym rule means there will be no matching for it at query time.īecause entries in the synonym map cannot have stacked positions, some token filters may cause issues here. synonym of question, and would never be used in these sentences. The synonym rules should not contain words that are removed by a filter that appears later in the chain (like a stop filter). It could be about our thoughts, beliefs, emotions, opinions, decisions, self-views. The stemmer will also be applied to the synonym entries. In the above example, the synonyms graph token filter is placed after a stemmer. Text will be processed first through filters preceding the synonym filter before being processed by the synonym filter.Įlasticsearch will also use the token filters preceding the synonym filter in a tokenizer chain to parse the entries in a synonym file or synonym set. Order is important for your token filters. To apply synonyms, you will need to include a synonym token filters into an analyzer: Configure analyzers with synonym token filters edit The ignore_case parameter works with tokenizer parameter only. Tokenize the synonym, this parameter is for backwards compatibility for indices that created before 6.0. 2 the human form: body, shape, figure, silhouette, proportions. The tokenizer parameter controls the tokenizers that will be used to leniency, quarter reprieve, discharge, amnesty, delivery, acquittal. tokenizer and ignore_case are deprecated edit However, ifĮxpand=true then the mappings added would be equivalent to foo, baz => foo, baz i.e, all mappings other than the Set to false no mapping would get added as when expand=false the target mapping is the first word. Similarly, if the mapping was "bar, foo, baz" and expand was Mapping is itself eliminated because it was a stop word. However, if the mappingīeing added was foo, baz => bar nothing would get added to the synonym list. With the above request the word bar gets skipped but a mapping foo => baz is still added.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |