Discussion:
solr range query
Heba Farouk
2007-11-12 13:02:03 UTC
Permalink
Hello,



I would like to use solr to return ranges of searches on an integer
field, if I wrote in the url offset:[0 TO 10], it returns documents
with offset values 0, 1, 10 only but I want to return the range 0,1,2,
3, 4 ....,10. How can I do that with solr



Thanks in advance



Best regards,



Heba Farouk

Software Engineer

Bibliotheca Alexandrina
Yonik Seeley
2007-11-12 13:55:39 UTC
Permalink
Post by Heba Farouk
I would like to use solr to return ranges of searches on an integer
field, if I wrote in the url offset:[0 TO 10], it returns documents
with offset values 0, 1, 10 only but I want to return the range 0,1,2,
3, 4 ....,10. How can I do that with solr
Use fieldType="sint" (sortable int... see the schema.xml), and reindex.

-Yonik

Loading...