|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.search.indexEngine.model.IndexManager
public class IndexManager
An IndexManager manage all the web'activ's index. An IndexManager is NOT thread safe : to share an IndexManager between several threads use an IndexerThread.
Field Summary | |
---|---|
static int |
ADD
|
static String |
ALIAS
|
static String |
CONTENT
|
static String |
CREATIONDATE
|
static String |
CREATIONUSER
|
static String |
EMBEDDED_FILE_IDS
|
static String |
ENDDATE
|
static String |
FIELDS_FOR_FACETS
|
static String |
FILENAME
|
static String |
HEADER
|
static String |
ID
The fields names used by lucene to store each element of an index entry. |
static String |
KEY
|
static String |
KEYWORDS
|
static String |
LANG
|
static String |
LASTUPDATEDATE
|
static String |
LASTUPDATEUSER
|
static int |
NONE
Exhaustive list of indexation's operations Used by objects which must be indexed |
static String |
PATH
|
static String |
PREVIEW
|
static int |
READD
|
static int |
REMOVE
|
static String |
SERVER_NAME
|
static String |
STARTDATE
|
static String |
THUMBNAIL
|
static String |
THUMBNAIL_DIRECTORY
|
static String |
THUMBNAIL_MIMETYPE
|
static String |
TITLE
|
Constructor Summary | |
---|---|
IndexManager()
The constructor takes no parameters and all the index engine parameters are taken from the properties file "com/stratelia/webactiv/util/indexEngine/indexEngine.properties". |
Method Summary | |
---|---|
void |
addIndexEntry(FullIndexEntry indexEntry)
Add an entry index. |
void |
flush()
Optimize all the modified index. |
org.apache.lucene.analysis.Analyzer |
getAnalyzer(String language)
Return the analyzer used to parse indexed texts and queries in the given language. |
String |
getIndexDirectoryPath(IndexEntry indexEntry)
Return the path to the directory where are stored the index for the given index entry. |
String |
getIndexDirectoryPath(IndexEntryPK indexEntry)
Return the path to the directory where are stored the index for the given index entry. |
String |
getIndexDirectoryPath(String space,
String component)
Return the path to the directory where are stored the index for the given index entry . |
Reader |
getReader(FileDescription file)
Get the reader specific of the file described by the file description |
void |
removeIndexEntry(IndexEntryPK indexEntry)
Remove an entry index . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ID
public static final String KEY
public static final String TITLE
public static final String PREVIEW
public static final String KEYWORDS
public static final String LANG
public static final String CREATIONDATE
public static final String CREATIONUSER
public static final String LASTUPDATEDATE
public static final String LASTUPDATEUSER
public static final String STARTDATE
public static final String ENDDATE
public static final String HEADER
public static final String CONTENT
public static final String THUMBNAIL
public static final String THUMBNAIL_MIMETYPE
public static final String THUMBNAIL_DIRECTORY
public static final String SERVER_NAME
public static final String EMBEDDED_FILE_IDS
public static final String FIELDS_FOR_FACETS
public static final String FILENAME
public static final String PATH
public static final String ALIAS
public static final int NONE
public static final int ADD
public static final int REMOVE
public static final int READD
Constructor Detail |
---|
public IndexManager()
Method Detail |
---|
public void addIndexEntry(FullIndexEntry indexEntry)
indexEntry
- public void flush()
public void removeIndexEntry(IndexEntryPK indexEntry)
indexEntry
- public String getIndexDirectoryPath(IndexEntry indexEntry)
indexEntry
- the index entry.
public String getIndexDirectoryPath(IndexEntryPK indexEntry)
indexEntry
-
public String getIndexDirectoryPath(String space, String component)
space
- component
-
public org.apache.lucene.analysis.Analyzer getAnalyzer(String language)
language
- the language used in a document or a query.
public Reader getReader(FileDescription file)
file
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |