Facet query problem

2010-04-22 Thread ZAROGKIKAS,GIORGOS
Hi there I 'm a new solr user With some problems with facets I have Index a field like that 9 An I get ranges between 1 an 35 When I Use fq=A00053:[16 TO 30] I get an results between 1 and 35 It looks like it ignores the second number of each value in my Range How can I so

Re: Facet query problem

2010-04-22 Thread Erik Hatcher
I'm taking an educated guess that this field is a "string" field. In that case, range queries are lexicographical (1, 10, 2, 3, 4...). Use a numeric field type to have range queries work properly. See Solr's example schema.xml for details on these types and range queries. Erik