Package org.nuiton.topia.index

Interface Summary
NotIndexable All entity that you don't want to be indexed must implements this interface
TopiaIndexImplementor Class used internaly in framework, when you want implement new indexation engin, you must used this interface
TopiaIndexService 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);
 

Class Summary
IndexEntry This class permit to store on result search with score
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);
 



Copyright © 2004-2009 CodeLutin. All Rights Reserved.