Hi
I created a Jena Lucene index with this configuration
var entDef = new EntityDefinition(
"uri",
"label",
"graph", RDFS.label.asNode());
entDef.setLangField("lang");
entDef.setUidField("uid");
Then I loaded schema.org ontology and queried using Lucene API directly on
the index directory, I got expected result
QueryParser parser = new QueryParser("label", analyzer);
Query query = parser.parse("tax~");
But if I use Jena query, I got no result
ParameterizedSparqlString q = new ParameterizedSparqlString(
"SELECT ?s WHERE { " +
" ?s text:query 'Taxi' " +
"}");
q.setNsPrefix("text", "http://jena.apache.org/text#");
A minimal project to illustrate the problem can be found here
https://github.com/AlexTo/jena-lab/blob/master/src/main/java/com/company/MainSearch.java
If you run index() and then searchLucene() you can see expected results but
if you run searchJena() you see nothing. What did I miss??
Thank you
Best Regards