[ http://issues.apache.org/jira/browse/LUCENE-460?page=all ]
Yonik Seeley closed LUCENE-460:
---
Resolution: Fixed
Assign To: Yonik Seeley
closing... I think I got most of these.
hashCode improvements
-
Key: LUCENE
Hi,
Question about latest cvs changes and hashcodes.
http://issues.apache.org/jira/browse/LUCENE-460
Could anybody explain the magic numbers? 0x6634D93C,0x2742E74A and other.
Any special meaning? Is this documented anywhere?
Pasha
and hashcodes.
http://issues.apache.org/jira/browse/LUCENE-460
Could anybody explain the magic numbers? 0x6634D93C,0x2742E74A and other.
Any special meaning? Is this documented anywhere?
Pasha
-
To unsubscribe, e-mail
[
http://issues.apache.org/jira/browse/LUCENE-460?page=comments#action_12361200 ]
Yonik Seeley commented on LUCENE-460:
-
Some people have asked where some of the magic constants come from in the
hashCodes:
python -c import random;print hex
[
http://issues.apache.org/jira/browse/LUCENE-460?page=comments#action_12356432 ]
paul.elschot commented on LUCENE-460:
-
For example, TermQuery(t) and SpanTermQuery(t) will generate the exact same
hash codes.
I'm sorry, I misread
hashCode improvements
-
Key: LUCENE-460
URL: http://issues.apache.org/jira/browse/LUCENE-460
Project: Lucene - Java
Type: Improvement
Components: Search
Versions: CVS Nightly - Specify date in submission
Reporter: Yonik Seeley
[
http://issues.apache.org/jira/browse/LUCENE-460?page=comments#action_12356325 ]
Yonik Seeley commented on LUCENE-460:
-
A couple of guidelines off the top of my head...
- hash codes should strive to be unique across the Query hierarchy, not just
[
http://issues.apache.org/jira/browse/LUCENE-460?page=comments#action_12356326 ]
Yonik Seeley commented on LUCENE-460:
-
Oh, and preserve entropy by using reversible integer hash functions (see the
previous link).
- key ^= (key a) | (key b
[
http://issues.apache.org/jira/browse/LUCENE-460?page=comments#action_12356384 ]
paul.elschot commented on LUCENE-460:
-
- hash codes should strive to be unique across the Query hierarchy, not just
unique within one specific
subclass. For example