You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mike Sokolov (JIRA)" <ji...@apache.org> on 2014/11/05 12:37:35 UTC

[jira] [Resolved] (LUCENE-6048) AnalyzingInfixSuggester should clear its index in build()

     [ https://issues.apache.org/jira/browse/LUCENE-6048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Sokolov resolved LUCENE-6048.
----------------------------------
    Resolution: Invalid

uh, yeah.  I  had some problem like this, but it must have been due to something else - sorry for the noise.  

> 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