|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sconman.IndexManager
class IndexManager
Lucene's index manager
Nested Class Summary | |
---|---|
static class |
IndexManager.SearchResults
Default ISearchResults implementation |
Field Summary | |
---|---|
(package private) net.sf.sconman.index.ILuceneStorage |
index
|
(package private) java.lang.String |
indexPath
|
(package private) Project |
project
|
Constructor Summary | |
---|---|
IndexManager(Project project)
Manager constructor, known the index path in the filesystem |
Method Summary | |
---|---|
ISearchResults |
getAll(Project project)
Returns all the contents stored within the Lunene index |
(package private) org.apache.lucene.search.Filter |
getOnlyFutureFilter()
Returns a filter for only old contents |
(package private) org.apache.lucene.search.Filter |
getOnlyOldFilter()
Returns a filter for only old contents |
(package private) org.apache.lucene.search.Filter |
getVisibilityFilter(boolean visible)
Builds a composed date filter |
void |
index(Content content)
Indexes a given content |
(package private) boolean |
isEmpty()
Returns true if the index directory is empty |
void |
regenerateIndex()
Regenerates the index |
(package private) ISearchResults |
search(Project prj,
Query query,
boolean visible,
boolean reverseOrder)
Does a search in the index |
(package private) ISearchResults |
search(Project prj,
Query query,
org.apache.lucene.search.Filter filter,
boolean reverseOrder)
Does a search in the index |
void |
unindex(Content content)
Removes a content from the index |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Project project
java.lang.String indexPath
net.sf.sconman.index.ILuceneStorage index
Constructor Detail |
---|
IndexManager(Project project)
indexPath
- Method Detail |
---|
boolean isEmpty()
public ISearchResults getAll(Project project) throws SCMStorageException
project
- The context project
SCMStorageException
- If there's an error reading the indexpublic void index(Content content) throws SCMStorageException
content
- The content to index
SCMStorageException
- Thrown if there's an error while indexingpublic void regenerateIndex() throws SCMStorageException
SCMStorageException
public void unindex(Content content) throws SCMStorageException
content
- The content to remove
SCMStorageException
- Thrown if there's an error while removing the content from
the indexISearchResults search(Project prj, Query query, boolean visible, boolean reverseOrder) throws SCMStorageException
SCMStorageException
ISearchResults search(Project prj, Query query, org.apache.lucene.search.Filter filter, boolean reverseOrder) throws SCMStorageException
SCMStorageException
org.apache.lucene.search.Filter getVisibilityFilter(boolean visible)
org.apache.lucene.search.Filter getOnlyOldFilter()
org.apache.lucene.search.Filter getOnlyFutureFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |