[
https://issues.apache.org/jira/browse/LUCENE-7091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15193486#comment-15193486
]
Martijn van Groningen commented on LUCENE-7091:
-----------------------------------------------
> in storeDocValues() SORTED_NUMERIC: you call ArrayUtil.grow with only the
> array. This results in the same O(N^2) we're trying to avoid! Pass in a
> second argument of the desired length.
Maybe I was a bit concerned about the size of these arrays.
ArrayUtil.grow(array) grows an array by an 1/8th and at least adds 3 additional
slots, I thought that would be enough, since we don't know upfront how many new
values are going to be added. I can change it double the array instead.
> Add doc values support to MemoryIndex
> -------------------------------------
>
> Key: LUCENE-7091
> URL: https://issues.apache.org/jira/browse/LUCENE-7091
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Martijn van Groningen
> Assignee: David Smiley
> Attachments: LUCENE-7091.patch, LUCENE-7091.patch, LUCENE-7091.patch,
> LUCENE-7091.patch, LUCENE-7091.patch, LUCENE-7091.patch, LUCENE-7091.patch
>
>
> Sometimes queries executed via the MemoryIndex require certain things to be
> stored as doc values. Today this isn't possible because the memory index
> doesn't support this and these queries silently return no results.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]