[
https://issues.apache.org/jira/browse/LUCENE-6048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14198166#comment-14198166
]
Michael McCandless commented on LUCENE-6048:
--------------------------------------------
Hmm, I'm confused: its build method passes OpenMode.CREATE when opening a new
writer, which should clear the previous index?
> AnalyzingInfixSuggester should clear its index in build()
> ---------------------------------------------------------
>
> Key: LUCENE-6048
> URL: https://issues.apache.org/jira/browse/LUCENE-6048
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Mike Sokolov
>
> AnalyzingInfixSuggester should clear its index in build() before adding new
> documents from the input. This would bring it in line with other Lookup
> implementations. Currently it appends any suggestions to those already in the
> index. Note the javadoc which says "Builds up a new internal {@link Lookup}
> representation". Alternatively, it could expose a clear() method, but this
> wouldn't be called by the existing Solr logic.
> I've had to work around this limitation now by using reflection to get a
> handle on AIS.writer to clear it before calling build().
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]