|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.search.searchEngine.model.WAIndexSearcher
public class WAIndexSearcher
The WAIndexSearcher class implements search over all the WebActiv's index. A WAIndexSearcher manages a set of cached lucene IndexSearcher.
Field Summary | |
---|---|
static org.apache.lucene.queryParser.QueryParser.Operator |
defaultOperand
|
static int |
maxNumberResult
indicates the number maximum of results returned by the search |
Constructor Summary | |
---|---|
WAIndexSearcher()
The no parameters constructor retrieves all the needed data from the IndexEngine.properties file. |
Method Summary | |
---|---|
static int |
getFactorFromProperties(String propertyName,
int defaultValue)
Get the primary factor from the IndexEngine.properties file. |
Set<String> |
getIndexPathSet(Set<SpaceComponentPair> spaceComponentPairSet)
Build the set of all the path to the directories index corresponding the given (space, component) pairs. |
protected org.apache.lucene.search.TermRangeQuery |
getRangeQueryOnCreationDate(QueryDescription query)
|
protected org.apache.lucene.search.TermRangeQuery |
getRangeQueryOnLastUpdateDate(QueryDescription query)
|
protected org.apache.lucene.search.TermQuery |
getTermQueryOnAuthor(QueryDescription query)
|
protected org.apache.lucene.search.PrefixQuery |
getTermQueryOnFolder(QueryDescription query)
|
MatchingIndexEntry[] |
search(QueryDescription query)
Search the documents of the given component's set. |
MatchingIndexEntry |
search(String component,
String objectId,
String objectType)
Searches the Lucene index for a specific object, by giving the PK of the index entry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.apache.lucene.queryParser.QueryParser.Operator defaultOperand
public static int maxNumberResult
Constructor Detail |
---|
public WAIndexSearcher()
Method Detail |
---|
public static int getFactorFromProperties(String propertyName, int defaultValue)
propertyName
- defaultValue
-
public MatchingIndexEntry search(String component, String objectId, String objectType)
component
- objectId
- objectType
-
public MatchingIndexEntry[] search(QueryDescription query) throws ParseException
query
-
ParseException
public Set<String> getIndexPathSet(Set<SpaceComponentPair> spaceComponentPairSet)
protected org.apache.lucene.search.TermRangeQuery getRangeQueryOnCreationDate(QueryDescription query)
protected org.apache.lucene.search.TermRangeQuery getRangeQueryOnLastUpdateDate(QueryDescription query)
protected org.apache.lucene.search.TermQuery getTermQueryOnAuthor(QueryDescription query)
protected org.apache.lucene.search.PrefixQuery getTermQueryOnFolder(QueryDescription query)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |