clean code

This commit is contained in:
kimchy 2010-08-13 23:50:16 +03:00
parent d12c757824
commit 4a9c7d672e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {