mysql - Elasticsearch completion suggester phrase instead of terms -
i developing search engine elasticsearch 1.6 , it's working great. data mysql database jdbc importer jorg prante. use elasticsearch complete suggester documented here. problem cannot find out how without having tags shwown in examples everywhere. have title of product quite long title.
so know how make work expected using full phrase of title or otherwise how split titlephrase tags , adding them.
this current mapping field 'title' return (not relevant) whole phrase.
curl -xput "http://localhost:9200/jdbc/" -d' { "mappings": { "jdbc": { "properties": { "title": { "type": "completion", "index_analyzer": "simple", "search_analyzer": "simple", "payloads": true } } } } }'
Comments
Post a Comment