[
https://issues.apache.org/jira/browse/LUCENE-2662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913599#action_12913599
]
Robert Muir commented on LUCENE-2662:
-------------------------------------
Jason: I am confused... there is no hash impl in TermsHashPerField.
the hashing, and term encoding and other things, is the responsibility of the
analysis chain (TermToBytesRefAttribute):
{code}
// Get the text & hash of this term.
int code = termAtt.toBytesRef(utf8);
{code}
this way, implementations can 'hash-as-they-go' like we do when encoding
unicode char[] -> byte[],
or they can simply return BytesRef.hashCode() if they don't have an optimized
implementation.
> BytesHash
> ---------
>
> Key: LUCENE-2662
> URL: https://issues.apache.org/jira/browse/LUCENE-2662
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Index
> Affects Versions: Realtime Branch
> Reporter: Jason Rutherglen
> Priority: Minor
> Fix For: Realtime Branch
>
> Attachments: LUCENE-2662.patch
>
>
> This issue will have the BytesHash separated out from LUCENE-2186
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]