# Elasticsearch relevency search

**URL:** <https://discuss.elastic.co/t/elasticsearch-relevency-search/354274>\
**Category:** Elasticsearch\
**Created:** [February 27, 2024, 8:38pm UTC](https://discuss.elastic.co/t/elasticsearch-relevency-search/354274 "2024-02-27T20:38:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohan\_T](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@Mohan\_T](https://discuss.elastic.co/u/Mohan_T)\
**Post date:** [February 27, 2024, 8:38pm UTC](https://discuss.elastic.co/t/elasticsearch-relevency-search/354274/1 "2024-02-27T20:38:21Z")

</div>

my search documents have the value of

Doc 1

```auto
{
    "keyword_values": "washbasin"
}

```

Doc 2

```auto
{
    "keyword_values": "wash basin"
}

```

Doc 3

```auto
{
    "keyword_values": "wash and basin"
}

```

Doc 4

```auto
{
    "keyword_values": "wash basin tap"
}

```

Doc 5

```auto
{
    "keyword_values": "washbasin tap"
}

```

if am searching for **wash basin** or **basin wash** or **wash and basin** i should get the result of **Doc 1, Doc 2 & Doc 3**.  
dont want to fetch the **Doc 4 or Doc 5**

I have used **"operator": "AND"** in the match query. but am getting the result of all these.

Guide me with the same.

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [February 28, 2024, 1:09am UTC](https://discuss.elastic.co/t/elasticsearch-relevency-search/354274/2 "2024-02-28T01:09:47Z")

</div>

Hi @Mohan_T

It appears there may be some confusion about how Elasticsearch matches and scores documents. In your case, if the documents share the same terms, it may be difficult to filter as you want. Instead, we can focus on getting relevant results to the top of the list, which can be more useful. Focusing on having the most accurate documents at the forefront of your results may be a more effective approach to meeting your needs.

---

<div class="post-metadata">

**Author:** ![Mohan\_T](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@Mohan\_T](https://discuss.elastic.co/u/Mohan_T)\
**Post date:** [February 28, 2024, 3:48am UTC](https://discuss.elastic.co/t/elasticsearch-relevency-search/354274/3 "2024-02-28T03:48:52Z")

</div>

Am getting the relevant result based on the search term at first, based on the scores, but after I am getting the data is irrelevant to to the search. is there any way to achieve this?

---

<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:** [March 27, 2024, 8:57am UTC](https://discuss.elastic.co/t/elasticsearch-relevency-search/354274/5 "2024-03-27T08:57:02Z")

</div>

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