: I have a custom ValueSource that I'd like to use as a filter, something : like: ... : My question is whether I should expect Solr to cache this filter in the : filterCache? In other words, is there any reason to expect frange filters
Did you remember to implement consistent and meaningful hashCode() and equals(OBject) methods for your custom ValueSource? Take a look at Solr's QueryEqualityTest for examples of how to write tests to sanity check that custom QParsers and ValueSourceParsers produce Queries and ValueSources that are equivilent (and therfore will produce cache hits) when you expect them to. -Hoss