jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject [2/2] jena git commit: JENA-1159: use KeywordAnalyzer for langField to avoid stop word filtering
Date Tue, 29 Mar 2016 12:19:44 GMT
JENA-1159: use KeywordAnalyzer for langField to avoid stop word filtering


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/ce467aa8
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/ce467aa8
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/ce467aa8

Branch: refs/heads/master
Commit: ce467aa8c0fcc5b6c00fd288ba9ab2e2c5f52628
Parents: a0b16d4
Author: Osma Suominen <osma@apache.org>
Authored: Tue Mar 29 15:15:09 2016 +0300
Committer: Osma Suominen <osma@apache.org>
Committed: Tue Mar 29 15:17:09 2016 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/jena/query/text/TextIndexLucene.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/ce467aa8/jena-text/src/main/java/org/apache/jena/query/text/TextIndexLucene.java
----------------------------------------------------------------------
diff --git a/jena-text/src/main/java/org/apache/jena/query/text/TextIndexLucene.java b/jena-text/src/main/java/org/apache/jena/query/text/TextIndexLucene.java
index bada3e9..65dc881 100644
--- a/jena-text/src/main/java/org/apache/jena/query/text/TextIndexLucene.java
+++ b/jena-text/src/main/java/org/apache/jena/query/text/TextIndexLucene.java
@@ -91,6 +91,8 @@ public class TextIndexLucene implements TextIndex {
         analyzerPerField.put(docDef.getEntityField(), new KeywordAnalyzer()) ;
         if ( docDef.getGraphField() != null )
             analyzerPerField.put(docDef.getGraphField(), new KeywordAnalyzer()) ;
+        if ( docDef.getLangField() != null )
+            analyzerPerField.put(docDef.getLangField(), new KeywordAnalyzer()) ;
 
         for (String field : docDef.fields()) {
             Analyzer _analyzer = docDef.getAnalyzer(field);


Mime
View raw message