To use this indexer you must have two properties defined in config file:
topia.index.engin=org.nuiton.topia.framework.LuceneIndexer
topia.index.lucene.directory=[/path/to/index/directory]
Pour l'utilisation:
SortedSet<IndexEntry> result = context.getIndexEngin().search("quelque chose")
SortedSet<IndexEntry> result = context.getIndexEngin().search("class:org.nuiton.chorem.entities.Person name:poussin")
// ou equivalent avec une map
Map m = new HashMap();
m.put("class", "org.nuiton.chorem.entities.Person");
m.put("name", "poussin");
SortedSet<IndexEntry> result = context.getIndexEngin().search(m);
User visible interface for indexation engin
To use indexer you must have properties defined in config file:
topia.index.engin=[class used to indexation]
possible specific property for index engin used
Usage example:
SortedSet<IndexEntry> result = context.getIndexEngin().search("quelque chose")
SortedSet<IndexEntry> result = context.getIndexEngin().search("class:org.nuiton.chorem.entities.Person name:poussin")
// or with map
Map m = new HashMap();
m.put("class", "org.nuiton.chorem.entities.Person");
m.put("name", "poussin");
SortedSet<IndexEntry> result = context.getIndexEngin().search(m);