Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numerical range queries don't work when using lucene query syntax #133

Open
Shazwazza opened this issue Oct 17, 2019 · 0 comments
Open

Numerical range queries don't work when using lucene query syntax #133

Shazwazza opened this issue Oct 17, 2019 · 0 comments

Comments

@Shazwazza
Copy link
Owner

Shazwazza commented Oct 17, 2019

Ref: umbraco/Umbraco-CMS#6316

Turns out that the lucene query parser when dealing with range syntax only uses a TermRangeQuery which doesn't work when working on numerical fields. It's possible to override the method on the query parser to actually deal with this and if we can detect the field type being requested (should be possible) then we can return a NumericRangeQuery and this will work.

For further details on how to fix see https://our.umbraco.com/forum/using-umbraco-and-getting-started/100637-raw-lucene-date-range-query-not-working-in-examine-umbraco-8#comment-315684

Will need a unit test for this one too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant