lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Sorting Problem with custom ValueSourceParser
Date Tue, 04 Oct 2016 23:57:13 GMT

: 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;
:         }


:         @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.


View raw message