net.sf.mmapps.modules.lucenesearch
Class SearchConfig

java.lang.Object
  extended bynet.sf.mmapps.modules.lucenesearch.SearchConfig

public class SearchConfig
extends java.lang.Object

Holds all indexes

Version:
$Revision: 1.1 $
Author:
Wouter Heijke

Constructor Summary
SearchConfig()
           
 
Method Summary
 void addIndex(SearchIndex index)
          Adds an SearchIndex object
protected  void collectAll(org.mmbase.bridge.Cloud cloud)
          Collects all indexes
 SearchIndex getDefaultIndex()
           
 SearchIndex getIndex(int id)
          Returns an index by id
 SearchIndex getIndex(java.lang.String name)
          Returns the name of an index object by name
 int getIndexCount()
          Returns the number of indexes available in this object
 java.lang.String setDefaultIndexName()
           
 void setDefaultIndexName(java.lang.String defaultindex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchConfig

public SearchConfig()
Method Detail

collectAll

protected void collectAll(org.mmbase.bridge.Cloud cloud)
Collects all indexes

Parameters:
cloud - MMBase cloud to use for indexing

getIndex

public SearchIndex getIndex(java.lang.String name)
Returns the name of an index object by name

Parameters:
name - Name of the index to look for
Returns:
The SearchIndex object

getIndex

public SearchIndex getIndex(int id)
Returns an index by id

Parameters:
id - Number of the index in the list
Returns:
The SearchIndex object

getDefaultIndex

public SearchIndex getDefaultIndex()
Returns:
default index

addIndex

public void addIndex(SearchIndex index)
Adds an SearchIndex object

Parameters:
index - The SearchIndex object to add

setDefaultIndexName

public void setDefaultIndexName(java.lang.String defaultindex)
Parameters:
defaultindex -

setDefaultIndexName

public java.lang.String setDefaultIndexName()

getIndexCount

public int getIndexCount()
Returns the number of indexes available in this object

Returns:
the amount of indices


Copyright © 2003-2005 mmapps. All Rights Reserved.