You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Andy Seaborne <an...@apache.org> on 2015/03/01 12:17:54 UTC
Re: jena-fuseki-lucene: no results returned
On 28/02/15 16:28, Charles Abela wrote:
> Re-hi,
> I just tried it out using ./fuseki-server --config=config-tdb-text.ttl
> with the query
>
> SELECT ?s
> { ?s dc:title ?x .
> ?s text:query (dc:title 'Stone') ;
> }
>
> and it worked fine.
> I understood that I was starting the server wrongly. But what's the
> difference?
"./fuseki-server --update --mem /ds"
says
"start server, one in-memory dataset at /ds; allow update"
It does not tell Fuseki to look for a configuration file let alone a
text index.
Your configuration file has:
-----------------------
...
fuseki:dataset <#books> ;
.
<#books> rdf:type text:TextDataset ;
text:dataset <#dataset> ;
##text:index <#indexSolr> ;
text:index <#indexLucene> ;
.
<#dataset> rdf:type tdb:DatasetTDB ;
tdb:location "DB" ;
##tdb:unionDefaultGraph true ;
-----------------------
which tells Fuseki to use a text index and TDb database in combination.
It also tells the server where the data is on disk.
> If after starting the server with an in memory dataset, I upload the file.
> Shouldn't it have worked just the same?
There is no text index. It needs to know what to index and wheer to
store it.
>
> cheers
>
> C
Andy
Re: jena-fuseki-lucene: no results returned
Posted by Charles Abela <ch...@gmail.com>.
Thanks Andy for the clarification.
C
On Sun, Mar 1, 2015 at 12:17 PM, Andy Seaborne <an...@apache.org> wrote:
> On 28/02/15 16:28, Charles Abela wrote:
>
>> Re-hi,
>> I just tried it out using ./fuseki-server --config=config-tdb-text.ttl
>> with the query
>>
>> SELECT ?s
>> { ?s dc:title ?x .
>> ?s text:query (dc:title 'Stone') ;
>> }
>>
>> and it worked fine.
>> I understood that I was starting the server wrongly. But what's the
>> difference?
>>
>
> "./fuseki-server --update --mem /ds"
> says
> "start server, one in-memory dataset at /ds; allow update"
>
> It does not tell Fuseki to look for a configuration file let alone a text
> index.
>
> Your configuration file has:
>
> -----------------------
> ...
> fuseki:dataset <#books> ;
> .
>
> <#books> rdf:type text:TextDataset ;
> text:dataset <#dataset> ;
> ##text:index <#indexSolr> ;
> text:index <#indexLucene> ;
> .
>
> <#dataset> rdf:type tdb:DatasetTDB ;
> tdb:location "DB" ;
> ##tdb:unionDefaultGraph true ;
> -----------------------
>
> which tells Fuseki to use a text index and TDb database in combination.
> It also tells the server where the data is on disk.
>
> If after starting the server with an in memory dataset, I upload the file.
>> Shouldn't it have worked just the same?
>>
>
> There is no text index. It needs to know what to index and wheer to store
> it.
>
>
>> cheers
>>
>> C
>>
>
> Andy
>
>