Class IndexSearcher
- java.lang.Object
-
- org.silverpeas.core.index.search.model.IndexSearcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IndexSearcher
get()
org.apache.lucene.queryparser.classic.QueryParser.Operator
getDefaultOperator()
MatchingIndexEntry
search(String component, String objectId, String objectType)
Searches the Lucene index for a specific object, by giving the PK of the index entryMatchingIndexEntry[]
search(QueryDescription query)
Search the documents of the given component's set.
-
-
-
Method Detail
-
get
public static IndexSearcher get()
-
getDefaultOperator
public org.apache.lucene.queryparser.classic.QueryParser.Operator getDefaultOperator()
-
search
public MatchingIndexEntry search(String component, String objectId, String objectType) throws ParseException
Searches the Lucene index for a specific object, by giving the PK of the index entry- Parameters:
component
- the unique identifier of the component instance within which the search has to be scoped.objectId
- the unique identifier of the contribution to which the search has to be scoped.objectType
- the type of the contribution.- Returns:
- MatchingIndexEntry wrapping the result, else null.
- Throws:
ParseException
-
search
public MatchingIndexEntry[] search(QueryDescription query) throws ParseException
Search the documents of the given component's set. All entries found whose startDate is not reached or whose endDate is passed are pruned from the results set.- Parameters:
query
- the query.- Returns:
- an array of index entries.
- Throws:
ParseException
- on parse error
-
-