clean code
This commit is contained in:
parent
d12c757824
commit
4a9c7d672e
|
@ -78,7 +78,7 @@ public class HighlightPhase implements SearchPhase {
|
||||||
if (mapper != null) {
|
if (mapper != null) {
|
||||||
indexName = mapper.names().indexName();
|
indexName = mapper.names().indexName();
|
||||||
}
|
}
|
||||||
String[] fragments = null;
|
String[] fragments;
|
||||||
try {
|
try {
|
||||||
fragments = highlighter.getBestFragments(fieldQuery, context.searcher().getIndexReader(), docId, indexName, parsedHighlightField.fragmentCharSize(), parsedHighlightField.numberOfFragments());
|
fragments = highlighter.getBestFragments(fieldQuery, context.searcher().getIndexReader(), docId, indexName, parsedHighlightField.fragmentCharSize(), parsedHighlightField.numberOfFragments());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in New Issue