com.solidstategroup.search
Class SearchIndex

java.lang.Object
  extended by com.solidstategroup.search.SearchIndex

public class SearchIndex
extends java.lang.Object

SearchIndex


Constructor Summary
SearchIndex()
           
 
Method Summary
static java.lang.String getIndexDir()
           
static java.lang.String getIndexDir(boolean live)
           
static void index(Article article, boolean live)
          Index an article.
static void index(Asset asset)
          Index an Image.
static void indexArticles(java.util.Collection articles, boolean live)
           
static void indexDocuments(java.util.Collection articles)
           
static boolean isPerformIndexing()
           
static void reindexEntireSite(boolean live)
          Performs a full site performIndex on all content that is published and included in the search Should only really be done if something becomes corrupt - or if we move servers as it is File based TODO - Look at storing the performIndex in the database or even memory if it isnt to big?
static void remove(Article article, boolean live)
          Remove from performIndex on expirey
static void remove(Asset asset)
           
static void removeArticles(java.util.Collection articles)
           
static void setIndexDir(java.lang.String indexDir)
           
static void setPerformIndexing(boolean index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchIndex

public SearchIndex()
Method Detail

removeArticles

public static void removeArticles(java.util.Collection articles)

indexArticles

public static void indexArticles(java.util.Collection articles,
                                 boolean live)

indexDocuments

public static void indexDocuments(java.util.Collection articles)

index

public static void index(Article article,
                         boolean live)
Index an article. this will try to remove

Parameters:
article -

index

public static void index(Asset asset)
Index an Image. this will try to remove


remove

public static void remove(Asset asset)

reindexEntireSite

public static void reindexEntireSite(boolean live)
Performs a full site performIndex on all content that is published and included in the search Should only really be done if something becomes corrupt - or if we move servers as it is File based TODO - Look at storing the performIndex in the database or even memory if it isnt to big?


remove

public static void remove(Article article,
                          boolean live)
Remove from performIndex on expirey

Parameters:
article -

getIndexDir

public static java.lang.String getIndexDir(boolean live)

getIndexDir

public static java.lang.String getIndexDir()

setIndexDir

public static void setIndexDir(java.lang.String indexDir)

isPerformIndexing

public static boolean isPerformIndexing()

setPerformIndexing

public static void setPerformIndexing(boolean index)