# Ignore field from scoring entirely

**URL:** <https://discuss.elastic.co/t/ignore-field-from-scoring-entirely/13410>\
**Category:** Elasticsearch\
**Created:** [August 30, 2013, 2:40pm UTC](https://discuss.elastic.co/t/ignore-field-from-scoring-entirely/13410 "2013-08-30T14:40:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Hobgood](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@Paul\_Hobgood](https://discuss.elastic.co/u/Paul_Hobgood)\
**Post date:** [August 30, 2013, 2:40pm UTC](https://discuss.elastic.co/t/ignore-field-from-scoring-entirely/13410/1 "2013-08-30T14:40:54Z")

</div>

In my application, there is a page where a user will perform a query, add  
some information to one specific field to one or more of the documents in  
this query, and then re-query the original query. The addition of this new  
information to the document lowers the score, and this case is misleading  
to the user, because the documents returned are now at the end of a  
paginated list.

It is very important for us to order the results of our documents by score,  
but in this case (and in all cases), I want this one field to be ignored  
from the score entirely.

One thing to note is that i am querying by a different field - I query by  
field A, but adding information to field B changes the score when  
requerying by field A

Is there a way to configure this one field to be ignored from the score  
computation entirely? I need to ignore the field during score computation  
in all cases.

I've tried multiple approaches but haven't had much luck.

Thanks,  
Paul

--  
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:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [August 30, 2013, 2:53pm UTC](https://discuss.elastic.co/t/ignore-field-from-scoring-entirely/13410/2 "2013-08-30T14:53:21Z")

</div>

It sounds like you may be querying the \_all field, because that  
automatically pulls data from all the fields in your document. If you are  
only querying on Field A, then the contents of Field B should never affect  
the score.

If you could provide a sample document and the query, that would help a lot.

On Friday, August 30, 2013 10:40:54 AM UTC-4, Paul Hobgood wrote:

> In my application, there is a page where a user will perform a query, add  
> some information to one specific field to one or more of the documents in  
> this query, and then re-query the original query. The addition of this new  
> information to the document lowers the score, and this case is misleading  
> to the user, because the documents returned are now at the end of a  
> paginated list.
> 
> It is very important for us to order the results of our documents by  
> score, but in this case (and in all cases), I want this one field to be  
> ignored from the score entirely.
> 
> One thing to note is that i am querying by a different field - I query by  
> field A, but adding information to field B changes the score when  
> requerying by field A
> 
> Is there a way to configure this one field to be ignored from the score  
> computation entirely? I need to ignore the field during score computation  
> in all cases.
> 
> I've tried multiple approaches but haven't had much luck.
> 
> Thanks,  
> Paul

--  
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:18am UTC](https://discuss.elastic.co/t/ignore-field-from-scoring-entirely/13410/3 "2017-07-06T02:18:46Z")

</div>


