[ https://issues.apache.org/jira/browse/LUCENE-7092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15190924#comment-15190924 ]
Adrien Grand commented on LUCENE-7092: -------------------------------------- One use-case I have in mind is faceting. Say you are computing range facets on a numeric field (price, temperature, anything): it is common to have an inclusive lower bound and an exclusive upper bound so that buckets are exclusive. Then if you want to refine search results for a specific bucket, you would have to convert it to a filter, but this would be hard to do today since there is no easy way to build a point range query that has an exclusive upper bound? > Point range factory methods for excluded bounds > ----------------------------------------------- > > Key: LUCENE-7092 > URL: https://issues.apache.org/jira/browse/LUCENE-7092 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Adrien Grand > Priority: Minor > > I am playing with using the new points API with elasticsearch and one > challenge is to generate range queries whose bounds are excluded, which is > something that was very easy with the previous numerics implementation. It is > easy to do externally with ints, but becomes tricky with floats or ip > addresses. Maybe we should have factory methods that take 2 additional > booleans to allow the bounds to be excluded? -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org