Lucen more than

Do any of you guys know how to look for all numbers greater than the numbers given?

for example: entire document number> 65

I tried like: documentNumber: [65 TO *], but I get an exception, since lucene should parse the number there, not *.

Thanks in advance!

+3
source share
2 answers

I don’t know anything about Lucen, but as a random thought, did you try to just use a very large number instead of *?

[65 TO 99999999]

Choose the maximum number that the data type can process (assuming there is such a thing), or at least a larger number than you could use.

+1
source

, , . , 1243 65. , 20000 . 10000 , 00065, 01243 ..

documentnumber:[00065 TO 20000] 

65 . . , .

+2

Source: https://habr.com/ru/post/1718476/


All Articles