You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2021/11/28 12:25:01 UTC
[lucene] branch branch_9x updated (eb912a9 -> 38762ee)
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a change to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git.
from eb912a9 fix typo in documentation
new 93bb52c set group to 'run' benchmark task (#481)
new 38762ee Use the same analysis chain to StandardAnalyzer (a follow-up of #480) (#482)
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
lucene/benchmark/build.gradle | 3 ++-
.../java/org/apache/lucene/luke/models/analysis/AnalysisImpl.java | 7 ++-----
2 files changed, 4 insertions(+), 6 deletions(-)
[lucene] 02/02: Use the same analysis chain to StandardAnalyzer (a follow-up of #480) (#482)
Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
commit 38762ee8cfa43873e119a41f77b03107fdcc3b6b
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Sun Nov 28 21:22:28 2021 +0900
Use the same analysis chain to StandardAnalyzer (a follow-up of #480) (#482)
---
.../java/org/apache/lucene/luke/models/analysis/AnalysisImpl.java | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lucene/luke/src/java/org/apache/lucene/luke/models/analysis/AnalysisImpl.java b/lucene/luke/src/java/org/apache/lucene/luke/models/analysis/AnalysisImpl.java
index e68383c..fb3a065 100644
--- a/lucene/luke/src/java/org/apache/lucene/luke/models/analysis/AnalysisImpl.java
+++ b/lucene/luke/src/java/org/apache/lucene/luke/models/analysis/AnalysisImpl.java
@@ -41,6 +41,7 @@ import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.TokenizerFactory;
import org.apache.lucene.analysis.custom.CustomAnalyzer;
+import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.apache.lucene.luke.models.LukeException;
import org.apache.lucene.util.AttributeImpl;
@@ -153,11 +154,7 @@ public final class AnalysisImpl implements Analysis {
}
private Analyzer defaultAnalyzer() {
- try {
- return CustomAnalyzer.builder().withTokenizer("standard").build();
- } catch (IOException e) {
- throw new LukeException("Failed to build custom analyzer.", e);
- }
+ return new StandardAnalyzer();
}
@Override
[lucene] 01/02: set group to 'run' benchmark task (#481)
Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
commit 93bb52c601be696b5fd008f4e4013ee68b72b4b9
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Sun Nov 28 21:22:07 2021 +0900
set group to 'run' benchmark task (#481)
---
lucene/benchmark/build.gradle | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lucene/benchmark/build.gradle b/lucene/benchmark/build.gradle
index df8c167..67b1644 100644
--- a/lucene/benchmark/build.gradle
+++ b/lucene/benchmark/build.gradle
@@ -49,7 +49,8 @@ sourceSets {
}
task run(type: JavaExec) {
- description "Run a perf test (optional: -PtaskAlg=conf/your-algorithm-file -PmaxHeapSize=1G)"
+ description "Run a perf test (optional: -PtaskAlg=conf/your-algorithm-file -PmaxHeapSize=1G). Before running this, you need to download the dataset the benchmark run against (e.g., by getReuters task). See dataset download tasks for more details."
+ group "Utility launchers"
mainClass = 'org.apache.lucene.benchmark.byTask.Benchmark'
classpath sourceSets.main.runtimeClasspath