| net.bagaluten.jca.lucene.connector.LuceneConnection
All known Subclasses: net.bagaluten.jca.lucene.connector.impl.LuceneConnectionImpl,
LuceneConnection | public interface LuceneConnection (Code) | | author: ThomasS |
add | boolean add(Entry entry)(Code) | | add an entry to the index
Parameters: entry - to add true on success, false otherwise |
bulkAdd | int bulkAdd(Entries entries) throws ResourceException(Code) | | add a couple of entries to the index
Parameters: entries - to add number of entries added throws: ResourceException - on error |
close | void close()(Code) | | close this connection and free the resources
|
optimize | void optimize() throws ResourceException(Code) | | optimiye the index
throws: ResourceException - on error |
search | Entries search(String query, Set<QueryField> fields, int offset, int count) throws ResourceException(Code) | | do a lucene query
Parameters: query - lucene query string Parameters: fields - define fileds we want to have in the result set Parameters: offset - start with this result in the resultset Parameters: count - number of results to return Resultset with the specified fields set throws: ResourceException - on Error |
suggest | Set<String> suggest(String words, QueryField field, int suggestNumber) throws ResourceException(Code) | | Parameters: words - the word or words you want a spell check done on Parameters: field - the suggested words are restricted to the words present in this field Parameters: suggestNumber - the number of suggest words a set of suggest words throws: ResourceException - on Error |
|
|