S - storable bean typepublic interface LuceneStore<S extends Storable>
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<S> toAdd)
Add beans.
All not valid bean's would be skipped. |
void |
add(S toAdd)
Add bean.
|
int |
count()
Get all beans count.
|
int |
count(org.apache.lucene.search.Query query)
Get beans count.
|
Collection<S> |
get(org.apache.lucene.search.Query query)
Search bean's.
|
Collection<S> |
get(org.apache.lucene.search.Query query,
int limit)
Search beans.
|
Collection<S> |
get(org.apache.lucene.search.Query query,
int offset,
int limit)
Search beans.
|
Collection<S> |
get(org.apache.lucene.search.Query query,
int offset,
int limit,
org.apache.lucene.search.Sort sort)
Search beans.
|
Collection<S> |
get(org.apache.lucene.search.Query query,
int limit,
org.apache.lucene.search.Sort sort)
Search beans.
|
Collection<S> |
get(org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort)
Search bean's.
|
S |
get(String fieldName,
String fieldValue)
Get bean.
|
Collection<S> |
getAll()
Get all beans.
|
Collection<org.apache.lucene.document.Document> |
getAllDocuments()
Get all
Document instances. |
org.apache.lucene.document.Document |
getDocument(String fieldName,
String fieldValue)
Get
Document with selected properties. |
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query)
Search documents.
|
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query,
int limit)
Search documents.
|
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query,
int offset,
int limit)
Search documents.
|
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query,
int offset,
int limit,
org.apache.lucene.search.Sort sort)
Search documents.
|
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query,
int limit,
org.apache.lucene.search.Sort sort)
Search documents.
|
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort)
Search documents.
|
void |
remove(Collection<S> toRemove)
Remove beans.
All not valid bean's would be skipped. |
void |
remove(S toRemove)
Remove bean.
|
void |
removeAll()
Remove all beans.
|
void |
tearDown()
Tear down
LuceneStore state. |
void |
update(Collection<S> toUpdate)
Update beans.
All not valid bean's would be skipped. |
void |
update(S toUpdate)
Update bean.
|
Collection<S> getAll()
Collection of Collection<org.apache.lucene.document.Document> getAllDocuments()
Document instances.Document collectionS get(String fieldName, String fieldValue)
fieldName - identifier field namefieldValue - identifier field valuenullorg.apache.lucene.document.Document getDocument(String fieldName, String fieldValue)
Document with selected properties.fieldName - identifier field namefieldValue - identifier field valueDocument if found or nullvoid add(S toAdd)
toAdd - beanvoid update(S toUpdate)
toUpdate - beanvoid remove(S toRemove)
toRemove - beanvoid add(Collection<S> toAdd)
toAdd - Collection of beansvoid update(Collection<S> toUpdate)
toUpdate - Collection of beansvoid remove(Collection<S> toRemove)
toRemove - Collection of beansvoid removeAll()
int count()
int count(org.apache.lucene.search.Query query)
query - QueryCollection<S> get(org.apache.lucene.search.Query query)
query - QueryCollection of Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query)
query - QueryDocument collectionCollection<S> get(org.apache.lucene.search.Query query, org.apache.lucene.search.Sort sort)
query - Querysort - sorting criteriaCollection of Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query, org.apache.lucene.search.Sort sort)
query - Querysort - sorting criteriaDocument collectionCollection<S> get(org.apache.lucene.search.Query query, int limit)
query - Querylimit - limit of the resultCollection of Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query, int limit)
query - Querylimit - max amount of documents in resultDocument collectionCollection<S> get(org.apache.lucene.search.Query query, int offset, int limit)
query - Queryoffset - found results offsetlimit - limit of the resultCollection of Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query, int offset, int limit)
query - Queryoffset - found results offsetlimit - max amount of documents in resultDocument collectionCollection<S> get(org.apache.lucene.search.Query query, int limit, org.apache.lucene.search.Sort sort)
query - Querylimit - limit of the resultsort - sorting criteriaCollection of Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query, int limit, org.apache.lucene.search.Sort sort)
query - Querylimit - max amount of documents in resultsort - sorting criteriaDocument collectionCollection<S> get(org.apache.lucene.search.Query query, int offset, int limit, org.apache.lucene.search.Sort sort)
query - Queryoffset - found results offsetlimit - limit of the resultsort - sorting criteriaCollection of Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query, int offset, int limit, org.apache.lucene.search.Sort sort)
query - Queryoffset - found results offsetlimit - max amount of documents in resultsort - sorting criteriaDocument collectionvoid tearDown()
LuceneStore state.Copyright © 2013–2019 BB Corp. All rights reserved.