[
https://issues.apache.org/jira/browse/JENA-1250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15619768#comment-15619768
]
Jean-Marc Vanel commented on JENA-1250:
---------------------------------------
So I looked at this stack; here the result of the Lucene query is empty:
TextIndexLucene.query$(IndexReader, Node, String, Int) line: 377
TextIndexLucene.query(Node, String, Int) line: 360
TextQueryPF.lambda$1(Node, String, Int) line: 287
1872774414.call() line: not available
LocalCache$LocalManualCache$1.load(Object) line: 4742
LocalCache$LoadingValueReference.loadFuture(Object, CacheLoader) line:
3527
LocalCache$Segment.loadSync(Object, Int,
LocalCache$LoadingValueReference, CacheLoader) line: 2319
LocalCache$Segment.lockedGetOrLoad(Object, Int, CacheLoader) line: 2282
LocalCache$Segment.get(Object, Int, CacheLoader) line: 2197
LocalCache.get(Object, CacheLoader) line: 3937
LocalCache$LocalManualCache.get(Object, Callable) line: 4739
CacheGuava.getOrFill(Object, Callable) line: 58
TextQueryPF.query(Node, String, Int, ExecutionContext) line: 286
TextQueryPF.variableSubject(Binding, Node, Node, Node,
TextQueryPF$StrMatch, ExecutionContext) line: 229
TextQueryPF.exec(Binding, PropFuncArg, Node, PropFuncArg,
ExecutionContext) line: 198
The query generated by Jena is :
qs "(prefLabel:frites) AND lang:fr" (id=3811)
which is rewriten in
preParseQuery(qs, queryAnalyzer)
as:
query BooleanQuery (id=3831)
+prefLabel:frit +lang:fr
We see that "frites" has been lemmatized as "frit" .
queryAnalyzer is:
PerFieldAnalyzerWrapper({
lang=org.apache.lucene.analysis.core.KeywordAnalyzer@fb2e3fd,
uri=org.apache.lucene.analysis.core.KeywordAnalyzer@43a09ce2},
default=org.apache.lucene.analysis.standard.StandardAnalyzer@3f183caa)
*Is all this normal ?*
> Upgrade text search to latest Lucene
> ------------------------------------
>
> Key: JENA-1250
> URL: https://issues.apache.org/jira/browse/JENA-1250
> Project: Apache Jena
> Issue Type: Improvement
> Components: Jena
> Reporter: Jean-Marc Vanel
>
> We are currently at Lucene 4.9.1 ,
> which is quite outdated compared to latest Lucene, which is 6.2.1 .
> Note that there is project to add a simple completion feature in addition to
> existing simple search.
> But it would be better to do that on an updated Lucene dependency .
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)