Introduction¶
With this plugin you can query elasticsearch using pipeline query syntax.
A search consists of a series of commands that are delimited by pipe ( | ) characters. The first whitespace-delimited string after each pipe character controls the command used.
PQL - Pipeline Query Syntax¶
The anatomy of a search¶
source statements
| [search statements [... search statements]]
[| stats statements [| bucket statements]]
Sample Query¶
source 'employee' | search Gender='Male' OR MaritalStatus='Unmarried'
Example¶
curl -XGET -G "http://localhost:9200/_pql" --data-urlencode "query=source 'employee*' | search Gender='Male'"