Jean Mark, If your understanding is right, this sounds good to me. It means I just have to add new statements in it to populate both TDB & lucene. The historicity of the data won't be indexed. I will try to add new statements in it, and see if the lucene files grows.
2016-02-21 12:36 GMT+01:00 Jean-Marc Vanel <[email protected]>: > As I understand it, > as soon as the mixed object with TDB & Lucene is created with > TextDatasetFactory.createLucene() > > an empty Lucene database is created, and every subsequent write in RDF will > populate Lucene according to the configuration. > And this is certainly equivalent to create this mixed object through > configuration, but likely there is an error in your configuration. > > > 2016-02-21 12:20 GMT+01:00 Nicolas Paris <[email protected]>: > > > @Dave: > > I though this section was fuseki specific, right ? > > > > @Andy: > > I actualy have both the same. I have modified it for the gist in only one > > file... Sorry for that. Problem is not here > > > > @JMV: > > first time I read scala, but maybe the step I missed was to build the > index > > as Dave said. It looks like I can do it programaticaly thanks to > > TextDatasetFactory.createLucene(dataset, directory, rdfIndexing, > > new StandardAnalyzer(Version.LUCENE_46)) equivalent ? > > > > 2016-02-21 12:10 GMT+01:00 Jean-Marc Vanel <[email protected]>: > > > > > Hi Nicolas > > > > > > I recently started to use Lucene with TDB , and here is my code to > > > configure (I don't use the TTL config. as its vocab' is not documented > in > > > TTL ) : > > > > > > > > > https://github.com/jmvanel/semantic_forms/blob/master/scala/forms/src/main/scala/deductions/runtime/jena/LuceneIndex.scala > > > > > > Here is were an existing RDF content is indexed: > > > > > > > > > https://github.com/jmvanel/semantic_forms/blob/master/scala/forms/src/main/scala/deductions/runtime/jena/TextIndexer.scala > > > > > > And here is where the text search is called: > > > > > > > > > https://github.com/jmvanel/semantic_forms/blob/master/scala/forms/src/main/scala/deductions/runtime/services/StringSearchSPARQL.scala > > > > > > Hope it helps, > > > but Andy's answer is the likely cause. > > > > > > > > > 2016-02-21 11:13 GMT+01:00 Nicolas Paris <[email protected]>: > > > > > > > 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 > > > > 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 > > > > > > > > > > > > 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 > > > > > > > > jena 2.13 > > > > > > > > I have found various previous answers on the web but sadly this > didn't > > > > help. > > > > > > > > Thanks by advance ! > > > > > > > > > > > > > > > > -- > > > Jean-Marc Vanel > > > Déductions SARL - Consulting, services, training, > > > Rule-based programming, Semantic Web > > > http://deductions-software.com/ > > > +33 (0)6 89 16 29 52 > > > Twitter: @jmvanel , @jmvanel_fr ; chat: irc:// > irc.freenode.net#eulergui > > > > > > > > > -- > Jean-Marc Vanel > Déductions SARL - Consulting, services, training, > Rule-based programming, Semantic Web > http://deductions-software.com/ > +33 (0)6 89 16 29 52 > Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui >
