Parse complex search string


(ElasticUser) #1

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!


(Lukáš Vlček) #2

Hi,

It sounds as if Analyze API
http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.htmlis
what you are looking for.

Regards,
Lukas

Dne čtvrtek, 4. srpna 2011, ElasticUser 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
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(system) #3