# Parse complex search string

**URL:** https://discuss.elastic.co/t/parse-complex-search-string/5052
**Category:** Elasticsearch
**Created:** [August 4, 2011, 5:31am UTC](https://discuss.elastic.co/t/parse-complex-search-string/5052 "2011-08-04T05:31:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ElasticUser](https://avatars.discourse-cdn.com/v4/letter/e/dbc845/32.png) [@ElasticUser](https://discuss.elastic.co/u/ElasticUser)
#### Post date: [August 4, 2011, 5:31am UTC](https://discuss.elastic.co/t/parse-complex-search-string/5052/1 "2011-08-04T05:31:46Z")

</div>

Does Elastic Search has a utility that gives me token from a long search string with text, spaces, quotes, special chars etc? Or do I need to use a StringToeknizer and parse the string manually?  
Example hello world sip=1.22.3.4 host='abc xyz' 'dPort=123' "Mary's Lamb"  
So the above should give me results of  
hello  
world  
sip=1.2.3.4  
host=abc xyz  
dPort=123  
Mary's Lamb

Suggestions please. Thanks!

---

<div class="post-metadata">

### Author: ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)
#### Post date: [August 5, 2011, 5:24am UTC](https://discuss.elastic.co/t/parse-complex-search-string/5052/2 "2011-08-05T05:24:56Z")

</div>

Hi,

It sounds as if Analyze API

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

what you are looking for.

Regards,  
Lukas

Dne čtvrtek, 4. srpna 2011, ElasticUser [lkodwaney@gmail.com](mailto:lkodwaney@gmail.com) napsal(a):

> Does Elastic Search has a utility that gives me token from a long search  
> string with text, spaces, quotes, special chars etc? Or do I need to use a  
> StringToeknizer and parse the string manually?  
> Example hello world sip=1.22.3.4 host='abc xyz' 'dPort=123' "Mary's Lamb"  
> So the above should give me results of  
> hello  
> world  
> sip=1.2.3.4  
> host=abc xyz  
> dPort=123  
> Mary's Lamb
> 
> Suggestions please. Thanks!
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Parse-complex-search-string-tp3224476p3224476.html](http://elasticsearch-users.115913.n3.nabble.com/Parse-complex-search-string-tp3224476p3224476.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<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: [July 6, 2017, 3:58am UTC](https://discuss.elastic.co/t/parse-complex-search-string/5052/3 "2017-07-06T03:58:11Z")

</div>


