2013/8/22 simonw simon.willnauer@elasticsearch.com
On Thursday, August 22, 2013 6:04:30 PM UTC+2, wron...@gmail.com wrote:
By multiple prefix request do you mean something like
yes!
Is it possible to combine them with an AND?
The use case would be searching for more than one prefix at a time,
possibly "out of order"
Given an input like the following one, a possible query would be on "smell
spir".
"input": [ "smell", "like", "teen", spirit"]
But it's probably not what the completion suggest was meant for.
I don't if I understand the usecase here. what would you expecte as the
output here?
Let's say I have two documents, the first one
"input": [ "smells", "like", "teen", "spirit"]
"output": "Smells like teen spirit"
and the second one
"input": [ "smells", "like", "children"]
"output": "Smells like children"
I'd like to search with more than one prefix at once. Searching for "smel"
and "spir" together should return "Smells like teen spirit"
It the title is a string field indexed with a standard analyzer it is
possible to use a prefix filter for each of the search terms and combine
them with an and filter.
Is there a way to obtain a similar thing with the completion suggest?
Thanks
On Wednesday, 21 August 2013 13:28:22 UTC+1, simonw wrote:
so you want us to expand all the term in you query? I think you should
send multiple prefix requests instead one with "nir" one with "nev".
I really can't entirely figure out when you would have a need for
something like this to be honest. can you provide a usecase that migh tmake
it easier to help you.
simon
On Wednesday, August 21, 2013 12:16:23 PM UTC+2, wron...@gmail.comwrote:
Hello Everyone,
I'm new to elasticsearch and I'm doing some experiments with the
completion suggest feature.
I was wondering if using a string array as 'input' parameter when
indexing, as in the example on the guide
"input": [ "Nevermind", "Nirvana" ]
is there anyway to use multiple prefixes in the suggest query?
Something like:
{
"song-suggest" : {
"text" : "nev nir",
"completion" : {
"field" : "suggest"
}
}
}
Or is there any mapping for the completion type that would allow a
similar suggest query?
Thanks for any help
--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/9xUcyVIBS3U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.