Hi everyone,
I've set up a Lucene text index according to the documentation. The
configuration & creation of the index seems to have worked out:
% java -cp $FUSEKI_HOME/fuseki-server.jar jena.textindexer --desc=fuseki.ttl
INFO 12494 (2498 per second) properties indexed
I see the Lucene index in the directory I configured and if I execute
"strings" on it I do find values that make sense.
When I execute a query on this configuration I get:
--
16:19:17 WARN Failed to find the text index : tried context and as a
text-enabled dataset
16:19:17 WARN No text index - no text search performed
16:19:17 INFO [2] exec/select
16:19:17 INFO [2] 200 OK (139 ms)
--
the EntityMap itself looks like this:
--
<#entMap> a text:EntityMap ;
text:entityField "uri" ;
text:graphField "graph" ;
text:defaultField "title" ;
text:map (
# dc:title
[ text:field "title" ;
text:predicate dc:title ;
text:analyzer [ a text:LowerCaseKeywordAnalyzer ] ]
# locah:note
[ text:field "note" ;
text:predicate locah:note ;
text:analyzer [ a text:LowerCaseKeywordAnalyzer ] ]
) .
--
And the query is:
--
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX text: <http://jena.apache.org/text#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?s ?title WHERE {
GRAPH <http://data.alod.ch/graph/bs> {
?s dc:title ?title .
?s text:query (dc:title 'Unfug' 10);
}} LIMIT 10
--
Any ideas what could go wrong here? Googling didn't help much
regards
Adrian