Mercurial Hosting > luan
changeset 1435:3aae37efbf40
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 06 Jan 2020 17:47:10 -0700 |
parents | 56fb5cd8228d |
children | 65d4afc9ad07 |
files | src/luan/modules/lucene/LuceneIndex.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/modules/lucene/LuceneIndex.java Sun Dec 29 15:25:07 2019 -0700 +++ b/src/luan/modules/lucene/LuceneIndex.java Mon Jan 06 17:47:10 2020 -0700 @@ -735,7 +735,7 @@ Query query = SaneQueryParser.parseQuery(mfp,queryStr); Formatter fmt = new Formatter() { public String highlightTerm(String originalText,TokenGroup tokenGroup) { - if( tokenGroup.getTotalScore() <= 0 ) + if( tokenGroup.getTotalScore() <= 0 ) return originalText; try { return (String)Luan.first(formatter.call(originalText));