只需在映射中使用即可,
search_analyzer而
analyzer同义词分析器仅在搜索时使用
PUT my_synonyms_test/rulers/_mapping{ "properties": { "name": { "type": "string" }, "title": { "type": "string", "search_analyzer": "my_synonyms" <--- change this } }}


