You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Mayya Sharipova (Jira)" <ji...@apache.org> on 2021/07/23 19:55:00 UTC
[jira] [Commented] (LUCENE-10034) Vectors NeighborQueue MIN/MAX
heap reversed?
[ https://issues.apache.org/jira/browse/LUCENE-10034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17386509#comment-17386509 ]
Mayya Sharipova commented on LUCENE-10034:
------------------------------------------
I've realized that my judgement was wrong, and I opened this issue by mistake;
Sorry for a noise, closing it now.
> Vectors NeighborQueue MIN/MAX heap reversed?
> --------------------------------------------
>
> Key: LUCENE-10034
> URL: https://issues.apache.org/jira/browse/LUCENE-10034
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Mayya Sharipova
> Priority: Trivial
>
> NeighborQueue is defined as following:
> {code:java}
> NeighborQueue(int initialSize, boolean reversed) {
> if (reversed) {
> heap = LongHeap.create(LongHeap.Order.MAX, initialSize);
> } else {
> heap = LongHeap.create(LongHeap.Order.MIN, initialSize);
> }
> }
> {code}
> should it be reversed? should it be instead using MIN heap for reversed functions such as EUCLIDEAN distance, as we are interested in neigbors with min euclidean distances?
> I apologize if I missed some broader context where this definition makes sense.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org