On 23/05/17 19:46, Laura Morales wrote:

Question 1) If I want to add more indexes, do I just add more of "text:entityMap <#entMap>" to <#indexLucene>? 
Like "text:entityMap <#entMap-1>", "text:entityMap <#entMap-2>", etc...

They are all held in the same Lucene file (index) but, yes, that indexes different properties.

Question 2) I don't understand what's going on in <#entMap>. What are 
entityField, defaultField, and how does mapping work?!


jena-text uses a different Lucene field (string name) for each property indexed.

The default is the Lucene default field - a Lucene concept - the lucene query string can access multiple fields in one query. See the Lucene documentation for details.

The entity field is the thing being indexed - the result - Lucene is a inverted index.

    Andy

Reply via email to