kemitche / l2cs

DEPRECATED - Python library to rewrite Lucene syntax search queries to Amazon CloudSearch syntax
BSD 2-Clause "Simplified" License
8 stars 5 forks source link

Add support for passing in a Schema #1

Closed kemitche closed 12 years ago

kemitche commented 12 years ago

This would allow the parser to detect invalid fields and either error or use that information to view the whole term as a query against the default field. For example, if the query passed in were foo:bar, but foo was not listed as a field in the schema, the parser could interpret that as (field text 'foo:bar') (assuming text is the default field for the schema/parser).