Re: Why Two Levels of Indirection in BytesRefHash class ?

2016-12-11 Thread Toke Eskildsen
Adrien Grand wrote: > That would work if you are only interested in using BytesRefHash as a hash > set for byte[]. However these incremental ids are useful if you want to > associate data with each byte[]: you can create parallel arrays and use the > ids returned by the BytesRefHash as indices in

How to highlight and fragment Multi-value field

2016-12-11 Thread V. Svetov
Hi all How to provide highlighting for fragmented string which is created from multi-value field using Lucene 5.3.2 ? Is any known solution for it? 1. Or first approach - merge all multi-value into one single value and apply highlighter.getBestTextFragments(tokenStream, text, false, maxNumFragm