On 21/02/16 10:30, Dave Reynolds wrote:
On 21/02/16 10:13, Nicolas Paris wrote:
Hello,
I am trying to configure lucene, thanks to the documentation. I already
have my TDB database, and the directory I configure for lucene
contains now
3 files :
-rw-rw-r-- 1 nps nps 20 févr. 21 01:55 segments.gen
-rw-rw-r-- 1 nps nps 45 févr. 21 01:55 segments_1
-rw-rw-r-- 1 nps nps 0 févr. 21 01:55 write.lock
Those files look too small to have any reasonable text index data in them.
However I get this warning in the log :
2016-02-21 11:00:17 WARN TextQueryPF:78 - Failed to find the text
index :
tried context and as a text-enabled dataset
2016-02-21 11:00:17 WARN TextQueryPF:78 - No text index - no text search
performed
The code isn't finding a text index - check the setup.
The code has:
"http://localhost/jena_example/#text_dataset2"
The assembler has:
@prefix : <http://localhost/jena_example/#> .
:text_dataset
which are different.
Andy
Here is my code :
https://gist.github.com/parisni/53cab71322fadf9ee94b
Here is my Assemblar:
https://gist.github.com/parisni/24a8fbeecbfc1317312c
Here are my log:
https://gist.github.com/parisni/9db5dd9f3881ba61b8b8
That doesn't show how you created the data and text index. Assuming you
already had data in the TDB, you need to then create the text index as
described in Step 2 of:
https://jena.apache.org/documentation/query/text-query.html#building-a-text-index
Dave