com.atlassian.confluence.search.v2.lucene
Class SearcherAction

java.lang.Object
  extended by com.atlassian.confluence.search.v2.lucene.SearcherAction
All Implemented Interfaces:
com.atlassian.bonnie.ILuceneConnection.SearcherAction

public class SearcherAction
extends java.lang.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.


Field Summary
static int MAX_RESULTS
           
static int MAX_START_OFFSET
           
 
Constructor Summary
SearcherAction(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter luceneFilter, org.apache.lucene.search.Sort sort, LuceneResultFilter resultsFilter, java.util.Set<java.lang.String> requestedFields)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Two searcher actions are equal if they have the same search terms.
 java.util.List<SearchResult> getResults()
           
 int getUnfilteredResultsCount()
           
 int hashCode()
           
 void perform(org.apache.lucene.search.IndexSearcher searcher)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_RESULTS

public static final int MAX_RESULTS
See Also:
Constant Field Values

MAX_START_OFFSET

public static final int MAX_START_OFFSET
See Also:
Constant Field Values
Constructor Detail

SearcherAction

public SearcherAction(org.apache.lucene.search.Query query,
                      org.apache.lucene.search.Filter luceneFilter,
                      org.apache.lucene.search.Sort sort,
                      LuceneResultFilter resultsFilter,
                      java.util.Set<java.lang.String> requestedFields)
Method Detail

perform

public void perform(org.apache.lucene.search.IndexSearcher searcher)
             throws java.io.IOException
Specified by:
perform in interface com.atlassian.bonnie.ILuceneConnection.SearcherAction
Throws:
java.io.IOException

getResults

public java.util.List<SearchResult> getResults()

getUnfilteredResultsCount

public int getUnfilteredResultsCount()

equals

public boolean equals(java.lang.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 java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2003-2013 Atlassian. All Rights Reserved.