Skip to content

Comment on Sales search: Writing a query parser/AST using Pyparsing+Elasticsearch (part 2)parent

Comments

Google "lucene query syntax"- it's pretty common. In fact, the only reason it seems they needed pyparsing (from the last article) instead of using Lucene syntax (which Elasticsearch supports) is to support more field operators like '>'.

EDIT: If you're a Python guy we've published a library to make generating such query strings easier - https://github.com/scholrly/lucene-querybuilder

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.