forked from eXist-db/exist
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
403 additions
and
235 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene/ExistFacetsCollector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (C) 2024 Evolved Binary Ltd | ||
* | ||
* This code is proprietary and is not Open Source. | ||
*/ | ||
package org.exist.indexing.lucene; | ||
|
||
import org.apache.lucene.facet.FacetsCollector; | ||
import org.apache.lucene.index.LeafReaderContext; | ||
|
||
import java.io.IOException; | ||
|
||
public class ExistFacetsCollector extends FacetsCollector { | ||
|
||
@Override | ||
public void doSetNextReader(LeafReaderContext context) throws IOException { | ||
super.doSetNextReader(context); | ||
} | ||
} |
189 changes: 96 additions & 93 deletions
189
extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene/LuceneIndexWorker.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...e/src/test/java/org/exist/indexing/lucene/analyzers/NoDiacriticsStandardAnalyzerTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (C) 2024 Evolved Binary Ltd | ||
* | ||
* This code is proprietary and is not Open Source. | ||
*/ | ||
package org.exist.indexing.lucene.analyzers; | ||
|
||
import org.junit.Test; | ||
import static org.junit.Assert.*; | ||
|
||
public class NoDiacriticsStandardAnalyzerTest { | ||
|
||
|
||
|
||
@Test | ||
public void createComponents() throws Exception { | ||
var analyzer = new NoDiacriticsStandardAnalyzer(); | ||
//This code will fail on wrong ICU4J dependency | ||
var result = analyzer.createComponents("myFieldName"); | ||
assertNotNull(result); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.