Paolo Castagna wrote:
> If the /tmp/lucene directory exists and it's empty or it contains an
> empty Lucene index when you start Fuseki. LARQ will *not* index your
> data.
> 
> LARQ will index your data if and only if you point it at a non existing
> directory. When you start Fuseki, LARQ should create the /tmp/lucene
> directory for you and index your data.

Maybe an improvement to provide a better user experience and avoid this
sort of problems (when someone, somehow has an existing and empty directory
or a corrupted or empty index) could be:

If directory exist, check if it contains a Lucene index exist. If it
contains a Lucene index, retrieve the number of documents. If it's zero,
the Lucene index is empty, then index the data.

See the make(...) method in AssemblerLARQ, here:
https://svn.apache.org/repos/asf/incubator/jena/Jena2/LARQ/trunk/src/main/java/org/apache/jena/larq/assembler/AssemblerLARQ.java

If you have other suggestions, let me know.

Ideas and patches are welcome! ;-)

Paolo


Reply via email to