elasticsearch 近义词 远程配置


以前写的一遍文章,被删除了,现在补回来


curl -XPOST "http://localhost:9200/*/" -d '{

        "analysis": {

            "analyzer":{

                    "mysynonym":{

                        "type": "custom",

                        "tokenizer":"ik_max_word",

                        "filter":[

                            "remote_synonym"

                        ]

                    }

                },

                "filter":{

                    "remote_synonym":{

                        "expand": true,

                        "ignore_case": true,

                        "type": "dynamic_synonym",

                        "synonyms_path" :  "http://*/word/getAllSynonymToTokenStream",

                        "interval": 60

                    }

                }

        }


}';


猜你喜欢

转载自blog.51cto.com/12597095/2348559