: Eg: if i make a query to sort by func(cost) desc
: It works.
: Now if i change cost with some another field eg func(rating) desc
: It sorts the result by cost only.
:
: Now if i restart the solr server and call sort by func(rating) it works but
: now it will stick with rating
:
: Any idea why this would be happening?
sounds like a queryResultCache collision -- perhaps all instances of your
ValueSource are saying they are equal to eachother?
: @Override
: public boolean equals(Object o) {
: return true;
: }
yup.
: @Override
: public int hashCode() {
: return this.hashCode();
: }
I don't even know what to say about that hashCode implementation ... i'm
honestly amazed your solr instance doesn't constantly throw
StackOverflowError on every request using your Value Source.
-Hoss
http://www.lucidworks.com/