Hello
I'm trying out the new completion suggester feature.
I'm using simple analyzer to analyze at both index and search time. I have
"nirvana nevermind" as input for completion and still starting completion
term with "never" does not return anything. I've expected this to work
since analyzer splits "nirvana nevermind" into two separate tokens?
I'm using example data from elasticsearch website:
curl -X PUT localhost:9200/music
curl -X PUT localhost:9200/music/song/_mapping -d '{
"song" : {
"properties" : {
"name" : { "type" : "string" },
"suggest" : { "type" : "completion",
"index_analyzer" : "simple",
"search_analyzer" : "simple",
"payloads" : true
}
}
}
}'
but I've changed the indexed item a bit:
curl -X PUT 'localhost:9200/music/song/1?refresh=true' -d '{
"name" : "Nevermind",
"suggest" : {
"input": [ "nirvana nevermind" ],
"output": "Nirvana - Nevermind"
}
}'
And this query doesn't return anything:
curl -X POST 'localhost:9200/music/_suggest?pretty' -d '{
"song-suggest" : {
"text" : "never",
"completion" : {
"field" : "suggest"
}
}
}'
I know I can handle this by just adding more inputs, but I am concerned
about the size of the index, when the list of possible user inputs for an
item goes huge...
Is there a way to analyze terms to match my expectations?
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.