Mercurial Hosting > luan
comparison src/luan/modules/lucene/LuceneIndex.java @ 1435:3aae37efbf40
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 06 Jan 2020 17:47:10 -0700 |
parents | 103d0ce70385 |
children | 851b9a48cc44 |
comparison
equal
deleted
inserted
replaced
1434:56fb5cd8228d | 1435:3aae37efbf40 |
---|---|
733 throws ParseException | 733 throws ParseException |
734 { | 734 { |
735 Query query = SaneQueryParser.parseQuery(mfp,queryStr); | 735 Query query = SaneQueryParser.parseQuery(mfp,queryStr); |
736 Formatter fmt = new Formatter() { | 736 Formatter fmt = new Formatter() { |
737 public String highlightTerm(String originalText,TokenGroup tokenGroup) { | 737 public String highlightTerm(String originalText,TokenGroup tokenGroup) { |
738 if( tokenGroup.getTotalScore() <= 0 ) | 738 if( tokenGroup.getTotalScore() <= 0 ) |
739 return originalText; | 739 return originalText; |
740 try { | 740 try { |
741 return (String)Luan.first(formatter.call(originalText)); | 741 return (String)Luan.first(formatter.call(originalText)); |
742 } catch(LuanException e) { | 742 } catch(LuanException e) { |
743 throw new LuanRuntimeException(e); | 743 throw new LuanRuntimeException(e); |