|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.index.SearchIndex
public class SearchIndex
Wraps up the functionality to index blog entries. This is really just a convenient wrapper around Lucene.
| Constructor Summary | |
|---|---|
SearchIndex(Blog blog)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the index. |
void |
index(BlogEntry blogEntry)
Allows a single blog entry to be (re)indexed. |
void |
index(StaticPage staticPage)
Allows a single static page to be (re)indexed. |
void |
indexBlogEntries(java.util.List<BlogEntry> blogEntries)
Allows a collection of blog entries to be indexed. |
void |
indexStaticPages(java.util.List<StaticPage> staticPages)
Allows a collection of static pages to be indexed. |
SearchResults |
search(java.lang.String queryString)
|
void |
unindex(BlogEntry blogEntry)
Removes the index for a single blog entry to be removed. |
void |
unindex(StaticPage staticPage)
Removes the index for a single blog entry to be removed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchIndex(Blog blog)
| Method Detail |
|---|
public void clear()
public void indexBlogEntries(java.util.List<BlogEntry> blogEntries)
public void indexStaticPages(java.util.List<StaticPage> staticPages)
public void index(BlogEntry blogEntry)
blogEntry - the BlogEntry instance to indexpublic void index(StaticPage staticPage)
staticPage - the StaticPage instance to indexpublic void unindex(BlogEntry blogEntry)
blogEntry - the BlogEntry instance to be removedpublic void unindex(StaticPage staticPage)
staticPage - the StaticPage instance to be removed
public SearchResults search(java.lang.String queryString)
throws SearchException
SearchException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||