# How to only get exactly partial-matched result?

**URL:** <https://discuss.elastic.co/t/how-to-only-get-exactly-partial-matched-result/100608>\
**Category:** Elasticsearch\
**Created:** [September 14, 2017, 8:59pm UTC](https://discuss.elastic.co/t/how-to-only-get-exactly-partial-matched-result/100608 "2017-09-14T20:59:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bing\_Qiu](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Bing\_Qiu](https://discuss.elastic.co/u/Bing_Qiu)\
**Post date:** [September 14, 2017, 8:59pm UTC](https://discuss.elastic.co/t/how-to-only-get-exactly-partial-matched-result/100608/1 "2017-09-14T20:59:40Z")

</div>

We are using N-Gram tokenizer for the full\_name, when we search "/\_search?q=full\_name:BIANA", we get the results which not exactly matches the "BIANA", results examples are as below. Is there a way we can only return results which exactly partial-matches the "BIANA", e.g. "BIANA Sharp" or "ABIANA Sharp", but not "Bianca Sharp"?

```
 {
    "_index": “indexname_demo",
    "_id": "109903557",
    "_score": 1.0684229,
    "_source": {
      "create_d": "2017-02-22T19:09:56.000Z",
      "full_name": "Bianca Sharp",
      "l_status": "1",
      "u_status": "3"
      }
  },
  {
    "_index": "indexname_demo",
    "_id": "106268391",
    "_score": 0.76905566,
    "_source": {
      "create_d": "2017-01-21T00:18:44.000Z",
      "full_name": "Iliana Gonzalez",
      "l_status": "1",
      "u_status": "3"
      }
  }
```

---

<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 12, 2017, 8:59pm UTC](https://discuss.elastic.co/t/how-to-only-get-exactly-partial-matched-result/100608/2 "2017-10-12T20:59:47Z")

</div>

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