You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: