When I got it right, Fuseki is supposed to build the text index when it starts 
up. However, this did not work for me.

Starting fuseki (jena-fuseki-0.2.8-20130618.075236-28-server.jar) with an empty 
index directory, for a very short time, it looks like this:

-rw-r--r--. 1 root root   45 Jun 20 13:46 segments_1
-rw-r--r--. 1 root root    0 Jun 20 13:46 write.lock

and then it stays like this:

-rw-r--r--. 1 root root   45 Jun 20 13:46 segments_1
-rw-r--r--. 1 root root   20 Jun 20 13:46 segments.gen

Text queries yield an empty result, while standard sparql queries work. 

I can't figure out what could be wrong with my config:

## ---------------------------------------------------------------
## Read-only TDB dataset (only read services enabled).

<#service_stw_combined> rdf:type fuseki:Service ;
    rdfs:label                      "STW combined TDB Service (R)" ;
    fuseki:name                     "stw_combined" ;
    fuseki:serviceQuery             "query" ;
    fuseki:serviceQuery             "sparql" ;
    ##fuseki:serviceUpdate            "update" ;
    fuseki:serviceReadGraphStore    "data" ;
    fuseki:serviceReadGraphStore    "get" ;
    fuseki:dataset           :stw_combined ;
    .

:stw_combined rdf:type      text:TextDataset ;
    text:dataset <#stw> ;
    text:index   <#stwIndex> ;
    .

<#stw> rdf:type      tdb:DatasetTDB ;
    tdb:location "/opt/thes/var/stw/latest/tdb" ;
    ##tdb:unionDefaultGraph true ;
    .

<#stwIndex> a text:TextIndexLucene ;
    text:directory <file:/opt/thes/var/stw/latest/tdb_lucene> ;
    text:entityMap <#entMap> ;
    .

<#entMap> a text:EntityMap ;
    text:entityField      "uri" ;
    text:defaultField     "text" ; ## Must be defined in the text:map
    text:map (
         # skos:prefLabel
         [ text:field "text" ; text:predicate skos:prefLabel ]
         # skos:altLabel
         [ text:field "text" ; text:predicate skos:altLabel ]
         # skos:hiddenLabel
         [ text:field "text" ; text:predicate skos:hiddenLabel ]
         ) .

Help would be much appreciated.

Cheers, Joachim

Reply via email to