Re: FastVectorHighlighter StringIndexOutofBounds bug

2011-05-23 Thread Koji Sekiguchi
(11/05/23 14:36), Weiwei Wang wrote: > 1. source string: 7 > 2. WhitespaceTokenizer + EGramTokenFilter > 3. FastVectorHighlighter, > 4. debug info: subInfos=(777((8,11))777((5,8))777((2,5)))/3.0(2,102), > srcIndex is not correctly computed for the second loop of the outer for-loop > How

Re: FastVectorHighlighter StringIndexOutofBounds bug

2011-05-22 Thread Weiwei Wang
1. source string: 7 2. WhitespaceTokenizer + EGramTokenFilter 3. FastVectorHighlighter, 4. debug info: subInfos=(777((8,11))777((5,8))777((2,5)))/3.0(2,102), srcIndex is not correctly computed for the second loop of the outer for-loop 2011/5/23 Weiwei Wang > the following code has a bug

RE: FastVectorHighlighter StringIndexOutofBounds bug

2011-05-22 Thread Steven A Rowe
rg > Subject: FastVectorHighlighter StringIndexOutofBounds bug > > the following code has a bug of StringIndexOutofBounds when multiple > matched > terms need highlight > > private String makeFragment( WeightedFragInfo fragInfo, String src, int > s, > String[] preT

FastVectorHighlighter StringIndexOutofBounds bug

2011-05-22 Thread Weiwei Wang
the following code has a bug of StringIndexOutofBounds when multiple matched terms need highlight private String makeFragment( WeightedFragInfo fragInfo, String src, int s, String[] preTags, String[] postTags, Encoder encoder ){ StringBuilder fragment = new StringBuilder(); int srcIn