|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.lucene.search.Searcher
org.apache.lucene.search.IndexSearcher
org.mtzky.lucene.LuceneIndexSearcher<E>
E - entitypublic class LuceneIndexSearcher<E>
| フィールドの概要 |
|---|
| クラス org.apache.lucene.search.IndexSearcher から継承されたフィールド |
|---|
docStarts, subReaders, subSearchers |
| コンストラクタの概要 | |
|---|---|
LuceneIndexSearcher(Directory d,
LuceneDocumentDesc<E> desc)
|
|
| メソッドの概要 | |
|---|---|
void |
close()
|
void |
closeWhenDone()
Signals that this instance may really close when all open()
calls have been balanced with a call to close(). |
LuceneIndexSearcherResponse<E> |
find(LuceneIndexSearcherRequest req)
Finds by LuceneIndexSearcherRequest. |
LuceneIndexSearcherResponse<E> |
find(Query query)
Finds the top LuceneIndexSearcherRequest.DEFAULT_LIMIT hits for
query. |
LuceneIndexSearcherResponse<E> |
find(String query)
Finds the top LuceneIndexSearcherRequest.DEFAULT_LIMIT hits for
query. |
FluentIndexSearcherRequest<E> |
findBy()
Returns FluentIndexSearcherRequest as the fluent interface. |
E |
findById(Object value)
Finds the specified (top one) hit by ID field with value. |
boolean |
isClosed()
|
protected void |
open()
This should be called whenever this instances is passed as a new IndexSearcher. |
| クラス org.apache.lucene.search.IndexSearcher から継承されたメソッド |
|---|
createWeight, doc, doc, docFreq, explain, explain, gatherSubReaders, getIndexReader, getSimilarity, getSubReaders, maxDoc, rewrite, search, search, search, search, search, search, search, search, search, search, setDefaultFieldSortScoring, setSimilarity |
| クラス org.apache.lucene.search.Searcher から継承されたメソッド |
|---|
docFreqs |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public LuceneIndexSearcher(Directory d,
LuceneDocumentDesc<E> desc)
throws CorruptIndexException,
IOException
d - Documentdesc - LuceneDocumentDesc
CorruptIndexException
IOException| メソッドの詳細 |
|---|
public FluentIndexSearcherRequest<E> findBy()
Returns FluentIndexSearcherRequest as the fluent interface. For
example:
LuceneIndexSearcherResponseres =searcher.findBy() .query("text: lucene") .query("text: mtzky",BooleanClause.Occur.MUST_NOT) .filter(...) .limit(100) .sort("id", true) .execute();
FluentIndexSearcherRequest
public LuceneIndexSearcherResponse<E> find(String query)
throws CorruptIndexException,
IOException,
ParseException
Finds the top LuceneIndexSearcherRequest.DEFAULT_LIMIT hits for
query.
query - to search
Entities hit by query
CorruptIndexException
IOException
ParseException
public LuceneIndexSearcherResponse<E> find(Query query)
throws CorruptIndexException,
IOException
Finds the top LuceneIndexSearcherRequest.DEFAULT_LIMIT hits for
query.
query - to search
Entities hit by query
CorruptIndexException
IOException
public LuceneIndexSearcherResponse<E> find(LuceneIndexSearcherRequest req)
throws CorruptIndexException,
IOException
Finds by LuceneIndexSearcherRequest.
req -
Entities hit by
LuceneIndexSearcherRequest
CorruptIndexException
IOExceptionfindBy()
public E findById(Object value)
throws CorruptIndexException,
IOException
Finds the specified (top one) hit by ID field with value. If not
hit, returns null.
value - to search
value
CorruptIndexException
IOExceptionprotected void open()
This should be called whenever this instances is passed as a new
IndexSearcher. Only when each call to open() is balanced with a
call to close(), and closeWhenDone() has been called,
will super.close() be called.
public boolean isClosed()
Closable 内の isClosed
public void close()
throws IOException
Closeable 内の closeSearchable 内の closeIndexSearcher 内の closeIOException
public void closeWhenDone()
throws IOException
Signals that this instance may really close when all open()
calls have been balanced with a call to close().
IOException
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||