Hello ,

The score is impacted by TF , IDF and the field length. -
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-advanced-scripting.html
You need to write a small script to compute this logic via function score
query.

Thanks
          Vineeth

On Fri, Nov 14, 2014 at 7:54 AM, Fadel Chafai <[email protected]>
wrote:

> Hi,
>
> with this simple query :
>
> {
>   "query": {
>     "match": {
>       "title": "world"
>     }
>   }
> }
>
> i have two results :
>
> 1 - "title": "Goodbye World FRENCH", with  "_score": 2.7005801,
> 2 - "title": "World War Z TRUEFRENCH", with "_score": 2.6142232,
>
> the second title (World War Z TRUEFRENCH) start with the word *World* but
> it have not the higher score. i think if the title start with the searched
> world it must have more relevance ?
>
> My analyze for the description filed:
>
>  "analyzer": {
>         "custom_french_analyzer": {
>           "tokenizer": "letter",
>           "filter": ["asciifolding", "lowercase", "french_stem",
> "elision", "stop"]
>         },
>
>
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/9a9de9a1-68c0-4d20-a6ee-cf0c7f5f4e61%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/9a9de9a1-68c0-4d20-a6ee-cf0c7f5f4e61%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DmXLdO9Ka%3DWOz1jFMQsCr9tBCZiKYBocvtL01xN5NZUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to