public class IndexSearcherHelperUtil
extends Object
Constructor and Description |
---|
IndexSearcherHelperUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getQueryString(SearchContext searchContext,
Query query) |
static Hits |
search(SearchContext searchContext,
Query query) |
static long |
searchCount(SearchContext searchContext,
Query query) |
static String |
spellCheckKeywords(SearchContext searchContext) |
static Map<String,List<String>> |
spellCheckKeywords(SearchContext searchContext,
int max) |
static String[] |
suggestKeywordQueries(SearchContext searchContext,
int max) |
public static String getQueryString(SearchContext searchContext, Query query)
public static Hits search(SearchContext searchContext, Query query) throws SearchException
SearchException
public static long searchCount(SearchContext searchContext, Query query) throws SearchException
SearchException
public static String spellCheckKeywords(SearchContext searchContext) throws SearchException
SearchException
public static Map<String,List<String>> spellCheckKeywords(SearchContext searchContext, int max) throws SearchException
SearchException
public static String[] suggestKeywordQueries(SearchContext searchContext, int max) throws SearchException
SearchException