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

java.lang.Object
  extended by 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)
           
 
Method Summary
 LuceneSearchResults search(org.apache.lucene.search.Query query, org.apache.lucene.search.Sort sort, org.apache.lucene.search.Filter searchFilter, LuceneResultFilter resultFilter)
          Deprecated. 
 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)
          Performs a lucene search.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSearcherImpl

public LuceneSearcherImpl(com.atlassian.bonnie.ILuceneConnection luceneConnection)
Method Detail

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 run
sort - the sort to perform sorting by
searchFilter - the filter that is run during the search
resultFilter - 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 run
sort - the sort to perform sorting by
searchFilter - the filter that is run during the search
resultFilter - the filter that is run after a search once the results have returned
requestedFields - - the fields to load into the search result, if this is null or empty all fields will be loaded
Returns:
search results


Copyright © 2003-2012 Atlassian. All Rights Reserved.