# Score is not 1

**URL:** <https://discuss.elastic.co/t/score-is-not-1/11891>\
**Category:** Elasticsearch\
**Created:** [May 9, 2013, 2:18am UTC](https://discuss.elastic.co/t/score-is-not-1/11891 "2013-05-09T02:18:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [May 9, 2013, 2:18am UTC](https://discuss.elastic.co/t/score-is-not-1/11891/1 "2013-05-09T02:18:10Z")

</div>

I am new to elastic search. I have indexed a document and searching the  
document with same value. The index analyzer and search analyzer is same.  
Still the score is 0.625.

Gist for analyzer and query [https://gist.github.com/arjitgupta/5530830](https://gist.github.com/arjitgupta/5530830).

I have also explained the query  
[https://gist.github.com/arjitgupta/554501](https://gist.github.com/arjitgupta/554501)

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 9, 2013, 2:33am UTC](https://discuss.elastic.co/t/score-is-not-1/11891/2 "2013-05-09T02:33:08Z")

</div>

Why do you think you need a score equal to 1?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 9 mai 2013 à 04:18, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) a écrit :

I am new to elastic search. I have indexed a document and searching the document with same value. The index analyzer and search analyzer is same. Still the score is 0.625.

Gist for analyzer and query [https://gist.github.com/arjitgupta/5530830](https://gist.github.com/arjitgupta/5530830).

## I have also explained the query [https://gist.github.com/arjitgupta/554501](https://gist.github.com/arjitgupta/554501)

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [May 9, 2013, 2:37am UTC](https://discuss.elastic.co/t/score-is-not-1/11891/3 "2013-05-09T02:37:33Z")

</div>

I am assuming that if the input query matches the document which is indexed  
its score should be approaching 1.  
I know that it depends on tf and idf of the document , which is score in a  
shard.  
The problem I am facing is  
"The beautiful book" and "the book beautiful" have the same score.

Thanks ,  
Arjit

On Thu, May 9, 2013 at 8:03 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Why do you think you need a score equal to 1?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 9 mai 2013 à 04:18, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) a écrit :
> 
> I am new to Elasticsearch. I have indexed a document and searching the  
> document with same value. The index analyzer and search analyzer is same.  
> Still the score is 0.625.
> 
> Gist for analyzer and query [Analyzer used to approx search and query · GitHub](https://gist.github.com/arjitgupta/5530830).
> 
> I have also explained the query  
> [https://gist.github.com/arjitgupta/554501](https://gist.github.com/arjitgupta/554501)
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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/9ciBJMzHOZs/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/9ciBJMzHOZs/unsubscribe?hl=en-US)  
> .  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 9, 2013, 5:57am UTC](https://discuss.elastic.co/t/score-is-not-1/11891/4 "2013-05-09T05:57:53Z")

</div>

Ok. It's a question of analysis.

"The beautiful book" has been indexed to:  
"beautiful", "book"

When you search, your query is analyzed as well.

That's the reason of the same score.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 9 mai 2013 à 04:37, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) a écrit :

I am assuming that if the input query matches the document which is indexed its score should be approaching 1.  
I know that it depends on tf and idf of the document , which is score in a shard.  
The problem I am facing is  
"The beautiful book" and "the book beautiful" have the same score.

Thanks ,  
Arjit

On Thu, May 9, 2013 at 8:03 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Why do you think you need a score equal to 1?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 9 mai 2013 à 04:18, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) a écrit :
> 
> I am new to Elasticsearch. I have indexed a document and searching the document with same value. The index analyzer and search analyzer is same. Still the score is 0.625.
> 
> Gist for analyzer and query [Analyzer used to approx search and query · GitHub](https://gist.github.com/arjitgupta/5530830).
> 
> ## I have also explained the query [https://gist.github.com/arjitgupta/554501](https://gist.github.com/arjitgupta/554501)
> 
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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/9ciBJMzHOZs/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/9ciBJMzHOZs/unsubscribe?hl=en-US).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:37am UTC](https://discuss.elastic.co/t/score-is-not-1/11891/5 "2017-07-06T02:37:25Z")

</div>


