net.conquiris.search
Class Searchers

java.lang.Object
  extended by net.derquinse.common.base.NotInstantiable
      extended by net.conquiris.search.Searchers

public final class Searchers
extends NotInstantiable

Searchers support class.

Author:
Andres Rodriguez

Method Summary
static Searcher of(IndexSearcher searcher)
          Returns a searcher for a Lucene index searcher.
static SearcherService service(ReaderSupplier supplier)
          Returns a searcher service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

of

public static Searcher of(IndexSearcher searcher)
Returns a searcher for a Lucene index searcher. The searcher is never closed and all operations are performed with the provided searcher.

Parameters:
searcher - Index searcher to use.
Returns:
The requested object.

service

public static SearcherService service(ReaderSupplier supplier)
Returns a searcher service.

Parameters:
supplier - Reader supplier to use.
Returns:
The requested service.


Copyright © 2013 Derquinse Projects. All Rights Reserved.