com.jalios.jcms.search
Class LuceneUtils.IndexSearcherWrapper

java.lang.Object
  extended by org.apache.lucene.search.Searcher
      extended by org.apache.lucene.search.IndexSearcher
          extended by com.jalios.jcms.search.LuceneUtils.IndexSearcherWrapper
All Implemented Interfaces:
LuceneUtils.SearcherWrapper, org.apache.lucene.search.Searchable
Enclosing class:
LuceneUtils

public static class LuceneUtils.IndexSearcherWrapper
extends org.apache.lucene.search.IndexSearcher
implements LuceneUtils.SearcherWrapper

IndexSearcher wrapper providing base functionnality for refercence tracking.


Constructor Summary
LuceneUtils.IndexSearcherWrapper(org.apache.lucene.store.Directory path, boolean readOnly)
           
 
Method Summary
 void close()
           
 org.apache.lucene.search.Searcher getReference()
           
 
Methods inherited from class org.apache.lucene.search.IndexSearcher
doc, doc, docFreq, explain, gatherSubReaders, getIndexReader, maxDoc, rewrite, search, search, search, search, setDefaultFieldSortScoring
 
Methods inherited from class org.apache.lucene.search.Searcher
createWeight, docFreqs, explain, getSimilarity, search, search, search, search, search, search, search, search, search, search, search, search, setSimilarity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jalios.jcms.search.LuceneUtils.SearcherWrapper
setSimilarity
 

Constructor Detail

LuceneUtils.IndexSearcherWrapper

public LuceneUtils.IndexSearcherWrapper(org.apache.lucene.store.Directory path,
                                        boolean readOnly)
                                 throws IOException
Throws:
IOException
Method Detail

getReference

public org.apache.lucene.search.Searcher getReference()
Specified by:
getReference in interface LuceneUtils.SearcherWrapper

close

public void close()
           throws IOException
Specified by:
close in interface LuceneUtils.SearcherWrapper
Specified by:
close in interface org.apache.lucene.search.Searchable
Overrides:
close in class org.apache.lucene.search.IndexSearcher
Throws:
IOException


Copyright © 2001-2010 Jalios SA. All Rights Reserved.