class |
LuceneIndexer
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);
|