Skip to content

"Field expression is not valid" for Range in LuceneCheck #92

@SleepyMorpheus

Description

@SleepyMorpheus

Hi,
I'm running the following snipped to parse and check a lucene query with the luqum=0.12.1 packet.

from luqum.parser import parser
from luqum.check import LuceneCheck

query = parser.parse('size:[1 TO 10]')
check = LuceneCheck()
print(check.errors(query))

I expect there to be no error as this is a valid query as mentioned in the official documentation of elastic. But instead the LuceneCheck returns the following error:

['field expression is not valid : size:[1 TO 10]']

I therefore suspect that there might be a problem in the check.py module. Can anyone confirm my findings or is this a problem on my end?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions