You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2017/11/05 18:30:00 UTC
[jira] [Commented] (LUCENE-7863) Don't repeat postings (and perhaps
positions) on ReverseWF, EdgeNGram, etc
[ https://issues.apache.org/jira/browse/LUCENE-7863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16239673#comment-16239673 ]
Mikhail Khludnev commented on LUCENE-7863:
------------------------------------------
h2. Question
What I can use to write ints sequentially, and then reading them back in the same sequence, without Arrays resizes? I've found {{IntBlockPool.SliceWriter}} and use in the last patch but I'm not sure whether it's right.
Overall, I need to map {{(BytesRef, BlockTermState)}} tuple to {{EdgeNgram, BlockTermState[]}}. Now this code {{ByteArrayDerivativeWriter}} seems like mad juggling between {{Arrrays}}, {{IntBlockPool}}, and {{BytesRefHash}} I hardly control it already. At least it consumes heap moderately and looks roughly correct. Any ideas and suggestions are really welcome and absolutely appreciated! Thanks.
> Don't repeat postings (and perhaps positions) on ReverseWF, EdgeNGram, etc
> ----------------------------------------------------------------------------
>
> Key: LUCENE-7863
> URL: https://issues.apache.org/jira/browse/LUCENE-7863
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/index
> Reporter: Mikhail Khludnev
> Attachments: LUCENE-7863.hazard, LUCENE-7863.patch, LUCENE-7863.patch, LUCENE-7863.patch, LUCENE-7863.patch, LUCENE-7863.patch, LUCENE-7863.patch, LUCENE-7863.patch, LUCENE-7863.patch, LUCENE-7863.patch, LUCENE-7863.patch, bench-byte-array-long.out, bench-byte-array2.out, benchmark-1m.out, byterefshash-bench.txt
>
>
> h2. Context
> \*suffix and \*infix\* searches on large indexes.
> h2. Problem
> Obviously applying {{ReversedWildcardFilter}} doubles an index size, and I'm shuddering to think about EdgeNGrams...
> h2. Proposal
> _DRY_
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org