# Would like to search text and try to identify strings that could be a persons name

**URL:** https://discuss.elastic.co/t/would-like-to-search-text-and-try-to-identify-strings-that-could-be-a-persons-name/351745
**Category:** Kibana
**Created:** [January 24, 2024, 5:50pm UTC](https://discuss.elastic.co/t/would-like-to-search-text-and-try-to-identify-strings-that-could-be-a-persons-name/351745 "2024-01-24T17:50:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![warrengoldman](https://avatars.discourse-cdn.com/v4/letter/w/d6d6ee/32.png) [@warrengoldman](https://discuss.elastic.co/u/warrengoldman)
#### Post date: [January 24, 2024, 5:50pm UTC](https://discuss.elastic.co/t/would-like-to-search-text-and-try-to-identify-strings-that-could-be-a-persons-name/351745/1 "2024-01-24T17:50:44Z")

</div>

Example I have text like the following:  
Jeremy went to the ice cream shop with David and they met Sharee there.

of the above Jeremy, David and Sharee are names. Is there a query I might be able to run that can identify peoples names. Any possible string that could be a persons name. I do understand that any word can be a persons name, but wondering if there is anything available that might identify words that would likely be a persons name.

---

<div class="post-metadata">

### Author: ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)
#### Post date: [January 25, 2024, 3:51pm UTC](https://discuss.elastic.co/t/would-like-to-search-text-and-try-to-identify-strings-that-could-be-a-persons-name/351745/2 "2024-01-25T15:51:37Z")

</div>

Welcome, @warrengoldman.

Thanks for reaching out. You may want to check out this [similar topic](https://discuss.elastic.co/t/human-names-searching-how-to-improve-results/233902/7). I also found this [StackOverflow post on a similar topic](https://stackoverflow.com/questions/72289034/flexible-search-users-by-full-name-in-elasticsearch) that may be helpful too.

---

<div class="post-metadata">

### Author: ![warrengoldman](https://avatars.discourse-cdn.com/v4/letter/w/d6d6ee/32.png) [@warrengoldman](https://discuss.elastic.co/u/warrengoldman)
#### Post date: [January 25, 2024, 6:45pm UTC](https://discuss.elastic.co/t/would-like-to-search-text-and-try-to-identify-strings-that-could-be-a-persons-name/351745/3 "2024-01-25T18:45:05Z")

</div>

Yeah, guess I wasn't clear enough. I don't want to search for names. I want to search the text and have it return strings that are possible names.  
I would NOT provide any criteria when searching (like Jeremy or such), but want to try and determine which words in a string are/might be names. (the examples listed were ways of searching for a name, which is not what I need)

---

<div class="post-metadata">

### Author: ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)
#### Post date: [January 26, 2024, 8:03pm UTC](https://discuss.elastic.co/t/would-like-to-search-text-and-try-to-identify-strings-that-could-be-a-persons-name/351745/4 "2024-01-26T20:03:52Z")

</div>

Thanks for the feedback and further clarification @warrengoldman. Sorry for any confusion. [Named entity recognition](https://www.elastic.co/blog/how-to-deploy-nlp-named-entity-recognition-ner-example) may be helpful here. You may also want to look at our documention on [text analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html).

I hope this helps but if not, do you happen to have a code sample you are working with? Are you getting an particluar errors?

Best,

Jess

---

<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: [February 23, 2024, 8:04pm UTC](https://discuss.elastic.co/t/would-like-to-search-text-and-try-to-identify-strings-that-could-be-a-persons-name/351745/5 "2024-02-23T20:04:47Z")

</div>

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