org.hibernate.search.query
Class QueryHits
java.lang.Object
org.hibernate.search.query.QueryHits
public class QueryHits
- extends Object
A helper class which gives access to the current query and its hits. This class will dynamically
reload the underlying TopDocs
if required.
- Author:
- Hardy Ferentschik
Constructor Summary |
QueryHits(org.apache.lucene.search.Searcher searcher,
org.apache.lucene.search.Query preparedQuery,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.Sort sort)
|
QueryHits(org.apache.lucene.search.Searcher searcher,
org.apache.lucene.search.Query preparedQuery,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.Sort sort,
Integer n)
|
Method Summary |
org.apache.lucene.document.Document |
doc(int index)
|
org.apache.lucene.document.Document |
doc(int index,
org.apache.lucene.document.FieldSelector selector)
|
int |
docId(int index)
|
org.apache.lucene.search.Explanation |
explain(int index)
|
float |
score(int index)
|
org.apache.lucene.search.ScoreDoc |
scoreDoc(int index)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
preparedQuery
public final org.apache.lucene.search.Query preparedQuery
searcher
public final org.apache.lucene.search.Searcher searcher
filter
public final org.apache.lucene.search.Filter filter
sort
public final org.apache.lucene.search.Sort sort
totalHits
public final int totalHits
topDocs
public org.apache.lucene.search.TopDocs topDocs
QueryHits
public QueryHits(org.apache.lucene.search.Searcher searcher,
org.apache.lucene.search.Query preparedQuery,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.Sort sort)
throws IOException
- Throws:
IOException
QueryHits
public QueryHits(org.apache.lucene.search.Searcher searcher,
org.apache.lucene.search.Query preparedQuery,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.Sort sort,
Integer n)
throws IOException
- Throws:
IOException
doc
public org.apache.lucene.document.Document doc(int index)
throws IOException
- Throws:
IOException
doc
public org.apache.lucene.document.Document doc(int index,
org.apache.lucene.document.FieldSelector selector)
throws IOException
- Throws:
IOException
scoreDoc
public org.apache.lucene.search.ScoreDoc scoreDoc(int index)
throws IOException
- Throws:
IOException
docId
public int docId(int index)
throws IOException
- Throws:
IOException
score
public float score(int index)
throws IOException
- Throws:
IOException
explain
public org.apache.lucene.search.Explanation explain(int index)
throws IOException
- Throws:
IOException
Copyright © 2011 Hibernate. All Rights Reserved.