# Different results with fingerprint analyzer

**URL:** <https://discuss.elastic.co/t/different-results-with-fingerprint-analyzer/78284>\
**Category:** Elasticsearch\
**Created:** [March 12, 2017, 3:47pm UTC](https://discuss.elastic.co/t/different-results-with-fingerprint-analyzer/78284 "2017-03-12T15:47:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wshatford](https://avatars.discourse-cdn.com/v4/letter/w/df788c/32.png) [@wshatford](https://discuss.elastic.co/u/wshatford)\
**Post date:** [March 12, 2017, 3:47pm UTC](https://discuss.elastic.co/t/different-results-with-fingerprint-analyzer/78284/1 "2017-03-12T15:47:05Z")

</div>

The first test is missing the "e" in "sante"

GET /\_analyze?analyzer=fingerprint&text="Santé the in a Monica"  
=\> "token": "a in monica sant the"

GET /\_analyze  
{  
"analyzer": "fingerprint",  
"text": "Santé the in a Monica"  
}  
=\> "token": "a in monica sante the"

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [March 12, 2017, 5:58pm UTC](https://discuss.elastic.co/t/different-results-with-fingerprint-analyzer/78284/2 "2017-03-12T17:58:09Z")

</div>

Hm, I think it's something about passing it as a URI parameter. If you run it in the body (like your second example), it seems to work as expected:

```auto
POST _analyze
{
  "analyzer": "fingerprint",
  "text": "Santé the in a Monica"
}

# POST _analyze
{
  "tokens": [
    {
      "token": "a in monica sante the",
      "start_offset": 0,
      "end_offset": 21,
      "type": "fingerprint",
      "position": 0
    }
  ]
}

```

```auto
GET /_analyze?analyzer=fingerprint&text="Santé the in a Monica"
# GET /_analyze?analyzer=fingerprint&text="Santé the in a Monica"
{
  "tokens": [
    {
      "token": "a in monica sant the",
      "start_offset": 0,
      "end_offset": 23,
      "type": "fingerprint",
      "position": 0
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![wshatford](https://avatars.discourse-cdn.com/v4/letter/w/df788c/32.png) [@wshatford](https://discuss.elastic.co/u/wshatford)\
**Post date:** [March 12, 2017, 6:12pm UTC](https://discuss.elastic.co/t/different-results-with-fingerprint-analyzer/78284/3 "2017-03-12T18:12:12Z")

</div>

Thanks. I'd like to be able to run it either way and get the same results. I'll run in the "body" format for now.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 12, 2017, 6:17pm UTC](https://discuss.elastic.co/t/different-results-with-fingerprint-analyzer/78284/4 "2017-03-12T18:17:29Z")

</div>

Yeah. Was probably caused by a non UTF8 encoding IMO.

---

<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 9, 2017, 6:17pm UTC](https://discuss.elastic.co/t/different-results-with-fingerprint-analyzer/78284/5 "2017-04-09T18:17:41Z")

</div>

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