Issue with range queries on Lucene 6.6 using IntPoint

2017-06-30 Thread Alexander Filipchik
Not sure if I'm doi9ng something wrong, or there is a bug somewhere but: I was trying to create a test index of a lot every second in a year and try query it (doesn't have to be time, I'm using it to explain the problem). Example document consists of 7 fields: document.add(new IntPoint("year", y

Integer Range Query in Lucene 4.10.4 not working as expected.

2017-06-30 Thread andi rexha
I have a numeric range query to perform in an index. I begin by indexing a document with a field value of "300". When I search for a range [100 TO 400] I get results from the search operation. Strangely enough, when I search for [100 TO 4000], I don't get any search results. Here is a code sni