public interface LuceneSearchQuery<H> extends ExtendedSearchQuery<H,LuceneSearchResult<H>>, LuceneSearchFetchable<H>
| Modifier and Type | Method and Description |
|---|---|
Explanation |
explain(String id)
Explain score computation of this query for the document with the given id.
|
Explanation |
explain(String indexName,
String id)
Explain score computation of this query for the document with the given id in the given index.
|
extension, getQueryStringfetch, fetch, fetch, fetchAllfetchAllHits, fetchHits, fetchHits, fetchHits, fetchSingleHit, fetchTotalHitCountExplanation explain(String id)
This is a shorthand for explain(String, String) when the query only targets one index.
id - The id of the document to test.Explanation describing the score computation for the hit.org.hibernate.search.util.common.SearchException - If the query targets multiple indexes,
or if the explain request fails.Explanation explain(String indexName, String id)
This feature is relatively expensive, use it only sparingly and when you need to debug a slow query.
indexName - The name of the index containing the document to test.id - The id of the document to test.Explanation describing the score computation for the hit.org.hibernate.search.util.common.SearchException - If the given index name does not refer to an index targeted by this query,
or if the explain request fails.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.