public class ExplainServiceHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExplainServiceHelper.Options |
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
REGEXR_PATTERN |
| Constructor and Description |
|---|
ExplainServiceHelper() |
| Modifier and Type | Method and Description |
|---|---|
String |
extractMatchedWords(org.apache.lucene.search.Explanation[] explanations) |
Set<String> |
findMatchedWords(org.apache.lucene.search.Explanation explanation)
This method is able to recursively collect all the matched words from ElastisSearch Explanation document
|
Map<String,Double> |
findMatchQueries(String matchedWordsString,
Map<String,String> collectExpandedQueryMap)
This method is able to find the queries that are used in the matching.
|
String |
getMatchedWord(String description) |
boolean |
reachLastLevel(org.apache.lucene.search.Explanation explanation) |
String |
removeBoostFromQuery(String description) |
public static final Pattern REGEXR_PATTERN
public Set<String> findMatchedWords(org.apache.lucene.search.Explanation explanation)
explanation - public String extractMatchedWords(org.apache.lucene.search.Explanation[] explanations)
public boolean reachLastLevel(org.apache.lucene.search.Explanation explanation)
public Map<String,Double> findMatchQueries(String matchedWordsString, Map<String,String> collectExpandedQueryMap)
matchedWordsString - collectExpandedQueryMap - Copyright © 2016. All Rights Reserved.