[ 
https://issues.apache.org/jira/browse/LUCENE-8664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16754982#comment-16754982
 ] 

Adrien Grand commented on LUCENE-8664:
--------------------------------------

I am not sure we should do this, I can't think of any use-case of 
TotalHits#equals that wouldn't be a bug given that two different objects may 
represent the same hit count?

> Add equals/hashcode to TotalHits
> --------------------------------
>
>                 Key: LUCENE-8664
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8664
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Luca Cavanna
>            Priority: Minor
>
> I think it would be convenient to add equals/hashcode methods to the 
> TotalHits class. I opened a PR here: 
> [https://github.com/apache/lucene-solr/pull/552] .



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to