org.apache.lucene.gdata.search
Class StandardGdataSearcher

java.lang.Object
  extended by org.apache.lucene.gdata.search.StandardGdataSearcher
All Implemented Interfaces:
GDataSearcher<String>

public class StandardGdataSearcher
extends Object
implements GDataSearcher<String>

Standard implementation of GDataSearcher

Author:
Simon Willnauer

Constructor Summary
StandardGdataSearcher(ReferenceCounter<IndexSearcher> searcher)
          constructs a new GdataSearcher
 
Method Summary
 void close()
          Destroys this Searcher
protected  List<String> collectHits(Hits hits, int hitcount, int offset)
           
 List<String> search(Query query, int hitcount, int offset, String feedId)
          executes an Query and returns a list of defined return values of type T
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardGdataSearcher

public StandardGdataSearcher(ReferenceCounter<IndexSearcher> searcher)
constructs a new GdataSearcher

Parameters:
searcher - - the current lucene searcher instance
Method Detail

search

public List<String> search(Query query,
                           int hitcount,
                           int offset,
                           String feedId)
                    throws IOException
Description copied from interface: GDataSearcher
executes an Query and returns a list of defined return values of type T

Specified by:
search in interface GDataSearcher<String>
Parameters:
query - - the query to apply to the searcher
hitcount - - the amount of hits returned by this search
offset - - the hit count offset
Returns:
List of T
Throws:
IOException - - if the underlying lucene searcher throws an IO Exception
See Also:
GDataSearcher.search(org.apache.lucene.search.Query, int, int, java.lang.String)

collectHits

protected List<String> collectHits(Hits hits,
                                   int hitcount,
                                   int offset)
                            throws IOException
Throws:
IOException

close

public void close()
Description copied from interface: GDataSearcher
Destroys this Searcher

Specified by:
close in interface GDataSearcher<String>
See Also:
GDataSearcher.close()


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.