Class IndexManager
- java.lang.Object
-
- org.silverpeas.core.index.indexing.model.IndexManager
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADD
static int
ADD_AGAIN
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
LASTUPDATEDATE
static String
LASTUPDATEUSER
static int
NONE
Exhaustive list of indexation's operations Used by objects which must be indexedstatic String
PATH
static String
PREVIEW
static int
REMOVE
static String
SCOPE
static String
SERVER_NAME
static String
STARTDATE
static String
THUMBNAIL
static String
THUMBNAIL_DIRECTORY
static String
THUMBNAIL_MIMETYPE
static String
TITLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
Optimize all the modified index.static IndexManager
get()
org.apache.lucene.analysis.Analyzer
getAnalyzer(String language)
Return the analyzer used to parse indexed texts and queries in the given language.String
getIndexDirectoryPath(String component)
Return the path to the directory where are stored the index for the given index entry .
-
-
-
Field Detail
-
ID
public static final String ID
The fields names used by lucene to store each element of an index entry.- See Also:
- Constant Field Values
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
SCOPE
public static final String SCOPE
- See Also:
- Constant Field Values
-
TITLE
public static final String TITLE
- See Also:
- Constant Field Values
-
PREVIEW
public static final String PREVIEW
- See Also:
- Constant Field Values
-
KEYWORDS
public static final String KEYWORDS
- See Also:
- Constant Field Values
-
CREATIONDATE
public static final String CREATIONDATE
- See Also:
- Constant Field Values
-
CREATIONUSER
public static final String CREATIONUSER
- See Also:
- Constant Field Values
-
LASTUPDATEDATE
public static final String LASTUPDATEDATE
- See Also:
- Constant Field Values
-
LASTUPDATEUSER
public static final String LASTUPDATEUSER
- See Also:
- Constant Field Values
-
STARTDATE
public static final String STARTDATE
- See Also:
- Constant Field Values
-
ENDDATE
public static final String ENDDATE
- See Also:
- Constant Field Values
-
HEADER
public static final String HEADER
- See Also:
- Constant Field Values
-
CONTENT
public static final String CONTENT
- See Also:
- Constant Field Values
-
THUMBNAIL
public static final String THUMBNAIL
- See Also:
- Constant Field Values
-
THUMBNAIL_MIMETYPE
public static final String THUMBNAIL_MIMETYPE
- See Also:
- Constant Field Values
-
THUMBNAIL_DIRECTORY
public static final String THUMBNAIL_DIRECTORY
- See Also:
- Constant Field Values
-
SERVER_NAME
public static final String SERVER_NAME
- See Also:
- Constant Field Values
-
EMBEDDED_FILE_IDS
public static final String EMBEDDED_FILE_IDS
- See Also:
- Constant Field Values
-
FIELDS_FOR_FACETS
public static final String FIELDS_FOR_FACETS
- See Also:
- Constant Field Values
-
FILENAME
public static final String FILENAME
- See Also:
- Constant Field Values
-
PATH
public static final String PATH
- See Also:
- Constant Field Values
-
ALIAS
public static final String ALIAS
- See Also:
- Constant Field Values
-
NONE
public static final int NONE
Exhaustive list of indexation's operations Used by objects which must be indexed- See Also:
- Constant Field Values
-
ADD
public static final int ADD
- See Also:
- Constant Field Values
-
REMOVE
public static final int REMOVE
- See Also:
- Constant Field Values
-
ADD_AGAIN
public static final int ADD_AGAIN
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public static IndexManager get()
-
flush
public void flush()
Optimize all the modified index.
-
getIndexDirectoryPath
public String getIndexDirectoryPath(String component)
Return the path to the directory where are stored the index for the given index entry .- Parameters:
component
- the component instance identifier- Returns:
- the path to the directory where are stored the index for the given index entry .
-
getAnalyzer
public org.apache.lucene.analysis.Analyzer getAnalyzer(String language)
Return the analyzer used to parse indexed texts and queries in the given language.- Parameters:
language
- the language used in a document or a query.- Returns:
- the analyzer for the required language or a default analyzer.
-
-