Tokenize a query string


(Wojciech Pietrzak) #1

How I can tokenize a query string? for example

".../?x=1&y=foo&z=bar"

I want be able to search for all documents where y equals foo


(David Pilato) #2

Not sure I got it but may be this?

GET _search?q=y:foo

(Wojciech Pietrzak) #3

Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.2/kv-processor.html
Logstash: https://www.elastic.co/guide/en/logstash/current/plugins-filters-kv.html

Found via #elasticsearch on Freenode, credits are going to Xylakant


(system) #4

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