On 05/05/15 16:54, Chris Dollin wrote:

Aside, hope it's useful:

Note that current jena-text doesn't /do/ conjunctive query but has enough
hooks to /enable/ conjunctive query, as is done in our ppd-index code
at https://github.com/epimorphics/ppd-text-index in TextDocProducerBatch.

When it does deletions it uses the IndexWriter's deleteDocuments() method
to brutally remove all the documents associated with the current subject
and then puts back ones that are still in the dataset.

Thanks a lot Chris, this was indeed very useful! So you're already doing synchronization in your ppd-index code and handling deletions in an appropriate, if somewhat brutal, way. That should make it easier to implement synchronization in the regular case, where quads correspond exactly to Lucene documents.

-Osma


--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Teollisuuskatu 23)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.suomi...@helsinki.fi
http://www.nationallibrary.fi

Reply via email to