Hey there!
Is there a way to tell elasticsearch that an input of the completion type
should be scored differently than other?
Maybe somethings like this? (Just typed)
{
"name" : "Hotel Monaco",
"city" : "Munich",
"name_suggest" : {
"input" : [
"Monaco Munich" : {"score" : 1.0},
"Hotel Monaco" : {"score" : 0.8},
],
"output": "Hotel Monaco"
}
}
Thanks
--
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/87fdbdb3-b425-480b-9e11-f59fb50cea59%40googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
You can try to use weights
Am Donnerstag, 23. Januar 2014 12:20:30 UTC+1 schrieb Fabian Köstring:
Hey there!
Is there a way to tell elasticsearch that an input of the completion type
should be scored differently than other?
Maybe somethings like this? (Just typed)
{
"name" : "Hotel Monaco",
"city" : "Munich",
"name_suggest" : {
"input" : [
"Monaco Munich" : {"score" : 1.0},
"Hotel Monaco" : {"score" : 0.8},
],
"output": "Hotel Monaco"
}
}
Thanks
--
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9e5fe8fb-d204-48a7-a7b7-40ef75189c81%40googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
spinscale
(Alexander Reelsen)
January 27, 2014, 10:13am
3
Hey,
right now the weight only has impact for the output.
A possible workaround could be, that you use your own index for
suggestions. And create own documents with different weights, one for
"Monaco Munich", one for "Hotel Monaco" and then use payloads to refer to
the original entry in the index containing the documents. Still I am not
sure, if this completely covers your use-case. Maybe you can tell, what
exactly you want to do (or if this is sufficient).
--Alex
On Thu, Jan 23, 2014 at 9:29 PM, georgi.mateev@jobvector.com wrote:
You can try to use weights
Am Donnerstag, 23. Januar 2014 12:20:30 UTC+1 schrieb Fabian Köstring:
Hey there!
Is there a way to tell elasticsearch that an input of the completion type
should be scored differently than other?
Maybe somethings like this? (Just typed)
{
"name" : "Hotel Monaco",
"city" : "Munich",
"name_suggest" : {
"input" : [
"Monaco Munich" : {"score" : 1.0},
"Hotel Monaco" : {"score" : 0.8},
],
"output": "Hotel Monaco"
}
}
Thanks
--
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 .
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/9e5fe8fb-d204-48a7-a7b7-40ef75189c81%40googlegroups.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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-hQu-uUm_UL30VBZywYWsOfCDaMCLW8tjUB9%2BncOJgnQ%40mail.gmail.com .
For more options, visit https://groups.google.com/groups/opt_out .