TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

8 pointsby thomas-stabout 12 years ago

1 comment

sampsabout 12 years ago
I've seen many parsers, from ad-hoc regexes to real grammars like this one, that attempt to process natural, human-readable query strings that resemble Google searches. (The example at the top of this writeup, `john city:"new york" last_called &#60; "3 days ago"`, illustrates what I'm talking about.) But there's no standard definition that I know of that could make all these slightly-different implementations interoperate.<p>Does anyone know of any specification of a colon-style query syntax that other projects could reuse? Even something semi-formal would be better than nothing.
评论 #5659762 未加载