Elasticsearch relevance

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9a9de9a1-68c0-4d20-a6ee-cf0c7f5f4e61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I think that the length of the field impacts the score (at least that was
the case last time I used Lucene, which is what's underneath
elasticsearch). The second entry is longer.

--
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/40620a05-0e7a-4ad5-80e0-4ebb574bdf48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hello ,

The score is impacted by TF , IDF and the field length. -

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 fadelmohamed@gmail.com
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 elasticsearch+unsubscribe@googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
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.

thank you for your response

On Sun, Nov 16, 2014 at 2:49 PM, vineeth mohan vm.vineethmohan@gmail.com
wrote:

Hello ,

The score is impacted by TF , IDF and the field length. -
Elasticsearch Platform — Find real-time answers at scale | Elastic
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 fadelmohamed@gmail.com
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 elasticsearch+unsubscribe@googlegroups.com.
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 a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/yde90jdKEwQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DmXLdO9Ka%3DWOz1jFMQsCr9tBCZiKYBocvtL01xN5NZUA%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DmXLdO9Ka%3DWOz1jFMQsCr9tBCZiKYBocvtL01xN5NZUA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--

ü Before you print it, think about the environment!

--
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/CAAst4SSFie_QSDsewqB9UDLZaE6%2BY82jwWy20ZZky_UnDCe8Og%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.