jurismarches / luqum

A lucene query parser generating ElasticSearch queries and more !
Other
188 stars 40 forks source link

Parse issue on field_42:42 #10

Closed erlichmen closed 7 years ago

erlichmen commented 7 years ago

When calling parser.parse on "field_42:42" the parse will not break it into search field and term. It will parse the entire string as a single word.

The root cause of this is the TERM regex: (?P^\s:^,\"'+~-()[]{}*) which can't break the string into groups.

alexgarel commented 7 years ago

Hello @erlichmen sorry I'm actually mostly AFK. If you want to submit a pull request, it will be welcome. Otherwise I'll look into this at the end of the month.