# How to match all tokens? (get rid of false positive result)

**URL:** https://discuss.elastic.co/t/how-to-match-all-tokens-get-rid-of-false-positive-result/289602
**Category:** Elasticsearch
**Created:** [November 18, 2021, 1:54pm UTC](https://discuss.elastic.co/t/how-to-match-all-tokens-get-rid-of-false-positive-result/289602 "2021-11-18T13:54:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vavra7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vavra7/32/97269_2.png) [@vavra7](https://discuss.elastic.co/u/vavra7)
#### Post date: [November 18, 2021, 1:54pm UTC](https://discuss.elastic.co/t/how-to-match-all-tokens-get-rid-of-false-positive-result/289602/1 "2021-11-18T13:54:02Z")

</div>

Hi, I need to find out by the title whether searched game already exists in my ES.

I use custom analyzer to meet my needs with features like transform roman numerals, lowercase, custom stopwords etc...

So when I create new document for **Assassin's Creed II: Deluxe Edition** it saves following tokens:

```auto
['assassins', 'creed', '2', 'deluxe', 'edition']

```

Then when I want to verify if game **Assassin's Creed - Deluxe Edition** already exists its matching following tokens:

```auto
['assassins', 'creed', 'deluxe', 'edition']

```

I use this query:

```auto
{
	"query": {
		"match": {
			"title": {
				"query": "Assassin's Creed - Deluxe Edition",
				"minimum_should_match": "100%"
				
			}
		}
	}
}

```

Expected result is "not found" but instead it returns **Assassin's Creed II: Deluxe Edition** which is obviously **false positive**. In my query is missing one token. Therefore I should not get this result. How can i restrict that all tokens must be included in query? Or how can I achieve my goal?

---

<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: [December 16, 2021, 1:54pm UTC](https://discuss.elastic.co/t/how-to-match-all-tokens-get-rid-of-false-positive-result/289602/2 "2021-12-16T13:54:57Z")

</div>

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