com.atlassian.confluence.search.v2.lucene
Class LuceneSearcherImpl
java.lang.Object
com.atlassian.confluence.search.v2.lucene.LuceneSearcherImpl
- All Implemented Interfaces:
- LuceneSearcher
public class LuceneSearcherImpl
- extends Object
- implements LuceneSearcher
Constructor Summary |
LuceneSearcherImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneSearcherImpl
public LuceneSearcherImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection)
search
@Deprecated
public LuceneSearchResults search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort,
org.apache.lucene.search.Filter searchFilter,
LuceneResultFilter resultFilter)
- Deprecated.
- Description copied from interface:
LuceneSearcher
- Performs a lucene search, loading all fields into the search result. It is more performant to specify
which fields are required from the search result if they are known ahead of time.
- Specified by:
search
in interface LuceneSearcher
- Parameters:
query
- the query to runsort
- the sort to perform sorting bysearchFilter
- the filter that is run during the searchresultFilter
- the filter that is run after a search once the results have returned
- Returns:
- search results
- See Also:
LuceneSearcher#search(Query query, Sort sort, Filter searchFilter, LuceneResultFilter resultFilter)}
search
public LuceneSearchResults search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort,
org.apache.lucene.search.Filter searchFilter,
LuceneResultFilter resultFilter,
Set<String> requestedFields)
- Description copied from interface:
LuceneSearcher
- Performs a lucene search.
- Specified by:
search
in interface LuceneSearcher
- Parameters:
query
- the query to runsort
- the sort to perform sorting bysearchFilter
- the filter that is run during the searchresultFilter
- the filter that is run after a search once the results have returnedrequestedFields
- - the fields to load into the search result, if this is null or empty all fields will be loaded
- Returns:
- search results