[
https://jira.codehaus.org/browse/MINDEXER-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288025#comment-288025
]
Jesse Glick commented on MINDEXER-48:
-------------------------------------
Hah, coding by Google works again:
{code}
Index:
indexer-core/src/main/java/org/apache/maven/index/context/DefaultIndexingContext.java
===================================================================
---
indexer-core/src/main/java/org/apache/maven/index/context/DefaultIndexingContext.java
(revision 1230088)
+++
indexer-core/src/main/java/org/apache/maven/index/context/DefaultIndexingContext.java
(working copy)
@@ -500,6 +500,8 @@
indexWriter.setMergeScheduler( new SerialMergeScheduler() );
+ indexWriter.commit(); // LUCENE-2386
+
openAndWarmupReaders();
}
{code}
Also need:
{code}
Index:
indexer-core/src/main/java/org/apache/maven/index/context/NexusLegacyAnalyzer.java
===================================================================
---
indexer-core/src/main/java/org/apache/maven/index/context/NexusLegacyAnalyzer.java
(revision 1230088)
+++
indexer-core/src/main/java/org/apache/maven/index/context/NexusLegacyAnalyzer.java
(working copy)
@@ -36,7 +36,7 @@
*
* @author Jason van Zyl
*/
-public class NexusLegacyAnalyzer
+public final class NexusLegacyAnalyzer
extends Analyzer
{
private static Analyzer DEFAULT_ANALYZER = new StandardAnalyzer(
Version.LUCENE_30 );
{code}
> Assertions thrown when used with Lucene 3.1+
> --------------------------------------------
>
> Key: MINDEXER-48
> URL: https://jira.codehaus.org/browse/MINDEXER-48
> Project: Maven Indexer
> Issue Type: Bug
> Affects Versions: 4.1.2
> Reporter: Jesse Glick
> Priority: Critical
>
> {{NexusAnalyzer}} needs to be declared final to avoid an assertion error when
> using Lucene 3.5 (and probably as early as 3.1).
> There may be other compatibility issues with 3.5, but this one completely
> prevents usage of Indexer.
> Upstream change: https://issues.apache.org/jira/browse/LUCENE-2389
> Downstream bug: http://netbeans.org/bugzilla/show_bug.cgi?id=207035
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira