| 1 | = LuceneSail = |
| 2 | |
| 3 | The lucene sail is a clever little hack that lets (parts of) RDF resources descriptions be indexed as full-text. |
| 4 | |
| 5 | There are two versions, both are designed to be stackable sails - they must sit on top of a memory,native or something else store. |
| 6 | |
| 7 | Each are configured given two lists of RDF predicates: |
| 8 | * The lucene inclusion list - any triple with this predicates has the value indexed |
| 9 | * The RDF exclusion list - any triple with this predicate is not added to the underlying Sail. |
| 10 | |
| 11 | By default they are both empty and all triples are stored in RDF and none are indexed. |
| 12 | |
| 13 | == LuceneSailAperture == |
| 14 | |
| 15 | This has a method addResource(SesameRDFContainer) which adds a single resource crawled from aperture to the underlying sail. |
| 16 | Each aperture resource becomes a separate lucene document. |
| 17 | |
| 18 | == LuceneSail == |
| 19 | |
| 20 | This will only triples in a transaction. When a transaction is commited each resource that was described becomes a separate lucene document. |
| 21 | |
| 22 | = Searching = |
| 23 | |
| 24 | There is a textQuery(String) method which returns Lucene Hits objects. |
| 25 | |