jurismarches / luqum

A lucene query parser generating ElasticSearch queries and more !
Other
187 stars 42 forks source link

Non-decimal boost throws TypeError instead of ParseError (eg "hello^foo") #87

Open cdrini opened 1 year ago

cdrini commented 1 year ago

For example:

from luqum.parser import parser
parser.parse("hello^foo")
# TypeError: conversion from NoneType to Decimal is not supported

I would expect to get a ParseError or some other type of luqum error that I can catch when parsing a user-entered query