# Scoring individual documents

**URL:** https://discuss.elastic.co/t/scoring-individual-documents/250090
**Category:** Elasticsearch
**Created:** [September 27, 2020, 1:56pm UTC](https://discuss.elastic.co/t/scoring-individual-documents/250090 "2020-09-27T13:56:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![thernstig](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@thernstig](https://discuss.elastic.co/u/thernstig)
#### Post date: [September 27, 2020, 1:56pm UTC](https://discuss.elastic.co/t/scoring-individual-documents/250090/1 "2020-09-27T13:56:55Z")

</div>

I understand that Elasticsearch is a great database to search amongst documents and to score them amongst eachother, thus being able to return to most relevant document for the search.

But I want to use Elasticsearch in another sense. I want to see if only one document is relevant.  
I want to do a search/scoring routine for multiple words where some words give a higher score and some a lower score. If the total score is over a certain threshold I consider the document "matched".

I am going to use this for is that if a new document is added, I will later analyze if the text contains the word "cat". But a cat with "cute cat" will give bonus points, since "cute" is a positive scoring. If it has the word "ugly cat" I will in reverse give that document a worse score.

Is this feasible with Elasticsearch? How would I do this?

As a bonus question: Later I want to check documents with AI/Machine Learning where an entire document will be rated high/low depending on another input parameter where I can correlate a certain input paramater as "positive", and later when an document is added that looks like that previously positive document, I get a match.

---

<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: [October 25, 2020, 1:56pm UTC](https://discuss.elastic.co/t/scoring-individual-documents/250090/2 "2020-10-25T13:56:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
