msokolov commented on issue #14886:
URL: https://github.com/apache/lucene/issues/14886#issuecomment-3044774717

   I ran into a tangentially-related problem in a different context where I 
would really like a Query hashcode that is stable across JVMs, or at any rate 
some sort of Query-derived id that can be used as a unique key in a 
serialization format. I tried using Query.hashCode (and checking for 
collisions), but this doesn't work since Query.hashCode varies across JVMs. 
Another problem aside from the clause ordering is that Query.hashCode 
incorporates the class hashcode, and this also varies by JVM.  In that case I 
ended up writing my own hash function, but it needs to be specialized for each 
Query type, and isn't really a general solution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to