Hello,

I am new to SOLR and using the Numeric Facets feature in v3.3 to display a
facet list of lengths. I have successfully added the query parameters to
display a facet list using:

facet.range = length
f.length.facet.range.start = 0
f.length.facet.range.end = 100
f.length.facet.range.gap = 10
f.length.facet.range.include = lower

Which gives me a list like

 0 < 10
10 < 20
20 < 30
Etc to 100

Now I want to create a query to return the pertinent results when a user
clicks on a facet item like "10 < 20".
Since I am using "f.length.facet.range.include = lower" I cannot simply use
"length:[10 TO 20]" since this includes results where length is "20". My
current work around is to add an exclude "-length:20" 

I also tried "{!frange l=10 u=20 incu=false incl=true}length" which returns
the pertinent results but does not use the same single parameter for
"include" so this is not ideal either.

Is there a better way of doing this? Perhaps pulling data from a facet list
cache? Or another method that respects the same parameters, specifically
"include", that facet.range uses?

Thanks for any help.
Greg

Reply via email to