E - The entity typeQ - The query parameters typeR - The result type on search, generally a VOpublic interface EntitySearchHandler<E extends NetworkedEntity,Q extends QueryParameters,R>
| Modifier and Type | Method and Description |
|---|---|
void |
index(E entity)
Indexes the given entity
|
java.lang.String |
indexName()
Returns the name of the external index, or null if external indexing isn't used
|
com.mysema.commons.lang.CloseableIterator<E> |
iterateEntities(Q query)
Iterates entities which match the given query
|
com.mysema.commons.lang.CloseableIterator<java.lang.Long> |
iterateIds(Q query)
Iterates ids which match the given query
|
long |
reindex()
Reindexes all data.
|
Page<R> |
search(Q query)
Performs the search for a page of results
|
void index(E entity)
java.lang.String indexName()
com.mysema.commons.lang.CloseableIterator<E> iterateEntities(Q query)
com.mysema.commons.lang.CloseableIterator<java.lang.Long> iterateIds(Q query)
long reindex()