# Match Exact Value of a Field and not be Included as a Subset in That Field, not more not less

**URL:** https://discuss.elastic.co/t/match-exact-value-of-a-field-and-not-be-included-as-a-subset-in-that-field-not-more-not-less/172914
**Category:** Elasticsearch
**Created:** [March 19, 2019, 8:30am UTC](https://discuss.elastic.co/t/match-exact-value-of-a-field-and-not-be-included-as-a-subset-in-that-field-not-more-not-less/172914 "2019-03-19T08:30:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![maryam\_abdullah](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@maryam\_abdullah](https://discuss.elastic.co/u/maryam_abdullah)
#### Post date: [March 19, 2019, 8:30am UTC](https://discuss.elastic.co/t/match-exact-value-of-a-field-and-not-be-included-as-a-subset-in-that-field-not-more-not-less/172914/1 "2019-03-19T08:30:40Z")

</div>

Hi,

please, I really need some help!

I want to be able to boost results if the query happens to match the exact value of a field and not be included as a subset in that field. This field has 2 analyzers, the custom one and the standard one which acts a tokenizer only.  
I use the multi-match query and the querystring, however I need to use the term query, but with the following setting, it's not working.

```
.Text(s => s
  .Name(n => n.Title)
  .Analyzer("ar_analyzer")
  .Fields(f => f.Text(t => t.Analyzer("ar_standard").Name("exact"))))

```

with the following setting:

```
.Settings(ss => ss
                    .Analysis(an => an
                        .TokenFilters(tf => tf
                            .Stop("arabic_stop", ts => ts
                                .StopWords("_arabic_"))
                            .KeywordMarker("ar_keywords", km => km.KeywordsPath(keywordsFile))
                            .Stemmer("arabic_stemmer", st => st
                                .Language("arabic"))
                        )
                        .Analyzers(ns => ns
                            .Custom("ar_analyzer", cm => cm
                                .Tokenizer("standard")
                                .Filters("arabic_stop", "ar_keywords", "arabic_normalization", "arabic_stemmer")
                            )
                            .Custom("ar_standard", cm => cm
                                .Tokenizer("standard")
                            ))
                    )

```

Any thoughts on how it's possible to do this?

Thank you.

---

<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: [April 16, 2019, 8:30am UTC](https://discuss.elastic.co/t/match-exact-value-of-a-field-and-not-be-included-as-a-subset-in-that-field-not-more-not-less/172914/2 "2019-04-16T08:30:41Z")

</div>

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