[
https://issues.apache.org/jira/browse/LUCENE-5562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Uwe Schindler resolved LUCENE-5562.
-----------------------------------
Resolution: Not a Problem
Assignee: Uwe Schindler
> LuceneSuggester does not work on Android
> ----------------------------------------
>
> Key: LUCENE-5562
> URL: https://issues.apache.org/jira/browse/LUCENE-5562
> Project: Lucene - Core
> Issue Type: Bug
> Affects Versions: 4.7
> Environment: Android 4.4.2
> Reporter: Giovanni Cuccu
> Assignee: Uwe Schindler
> Priority: Minor
> Attachments: AnalyzingSuggester.java, Sort.java
>
>
> I'm developing an application on android and I'm using lucene for indexing
> and searching. When I try to use AnalyzingSuggester (even the Fuzzy version)
> I got an Exception the BufferedOutputStream is already closed.
> I tracked the problem and it seems that in
> org.apache.lucene.search.suggest.Sort
> and in org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
> the outputstream is closed twice hence the exception on android.
> The same code on windows runs without a problem.
> It seems that the Android jvm does some additional checks. I attach two
> patche files, the classes close the output stream once. (check for
> writerClosed in the code to see what I did)
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]