Skip to content

Commit 7c92d93

Browse files
committed
Terms experiment finished
1 parent c8519f0 commit 7c92d93

6 files changed

Lines changed: 343 additions & 381 deletions

File tree

common/src/java/com/github/oeuvres/alix/lucene/spans/SpanQueryParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ public SpanQuery parse(final String spec) {
131131
private SpanQuery buildGroup(final String groupStr) {
132132
final String[] tokens = groupStr.split("\\s+");
133133
final List<SpanTermQuery> alternatives = new ArrayList<>(tokens.length);
134-
for (final String token : tokens) {
134+
for (String token : tokens) {
135+
token = token.replace('_', ' ');
135136
if (!token.isEmpty()) {
136137
alternatives.add(new SpanTermQuery(new Term(field, token)));
137138
}

common/src/java/com/github/oeuvres/alix/lucene/terms/TermCollector.java

Lines changed: 0 additions & 206 deletions
This file was deleted.

0 commit comments

Comments
 (0)