com.atlassian.confluence.search.v2.lucene
Class SearcherAction
java.lang.Object
com.atlassian.confluence.search.v2.lucene.SearcherAction
- All Implemented Interfaces:
- com.atlassian.bonnie.ILuceneConnection.SearcherAction
public class SearcherAction
- extends Object
- implements com.atlassian.bonnie.ILuceneConnection.SearcherAction
Encapsulates all the untestable direct Lucene access performed by the LuceneSearcher. Do not put anything
in this class that you could conceivably do outside the class in a testable way.
Constructor Summary |
SearcherAction(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter luceneFilter,
org.apache.lucene.search.Sort sort,
LuceneResultFilter resultsFilter,
Set<String> requestedFields)
|
SearcherAction
public SearcherAction(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter luceneFilter,
org.apache.lucene.search.Sort sort,
LuceneResultFilter resultsFilter,
Set<String> requestedFields)
perform
public void perform(org.apache.lucene.search.IndexSearcher searcher)
throws IOException
- Specified by:
perform
in interface com.atlassian.bonnie.ILuceneConnection.SearcherAction
- Throws:
IOException
getResults
public List<SearchResult> getResults()
getUnfilteredResultsCount
public int getUnfilteredResultsCount()
equals
public boolean equals(Object o)
- Two searcher actions are equal if they have the same search terms. The search results are ignored
as part of the comparison.
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object