lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6048) AnalyzingInfixSuggester should clear its index in build()
Date Wed, 05 Nov 2014 10:42:34 GMT

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message