maybe this is interesting in your situation?
http://www.elasticsearch.org/blog/you-complete-me/
simon
On Thursday, January 23, 2014 4:15:05 PM UTC+1, Nikolay Chankov wrote:
Well, it's really strange, that position is not encountered, since with
many results and especially data with lot of
Hi Johan,
thanks for the reply
I would agree that it's ok, if I am searching for common term, like
'venue', 'club' or 'bar', but when it comes to User names, it make sense to
score the position in the field too, because when you search in field
user.name, and type 'Jo' you would expect first
Hi again,
Can you explain more what you are trying to accomplish?
I think that the only way you can solve this is to split into multiple
fields and
then boost individual fields in your query. Not sure if thats possible for
you.
/Johan
Den torsdagen den 23:e januari 2014 kl. 09:44:02 UTC+1
Just checked the Facebook suggestion style and I would imagine something
like, this, When you start typing terms which start with the phrase/word
are in the top, while the terms which just contain the phrase/word, are at
the bottom. But I could be wrong that that the order is this way :)
On
Well, it's really strange, that position is not encountered, since with
many results and especially data with lot of similarities (user names)
doesn't get sorted also by string position somehow.
Anyone to share how do they make autocomplete? Feeling really stupid :(
On Thursday, January 23,
I am playing with elasticsearch so far, and i noticed something:
If I search for a word in a string, the _score is equal no matter where is
placed the word. Here I have prepared a test case:
curl -XDELETE 'http://localhost:9200/test_search'
curl -XPUT 'http://localhost:9200/test_search/' -d '
{
Lucene will calculate you score based on a scoring formula. I am pretty
sure that the location of the word is not part of this formula but rather
how common the
word is in your sentence. I.e multiple occurences of 'venue' should
increase scoring and adding other words to your sentence should