Uwe, thank you for the advice. I updated my code.
On Sat, Jun 23, 2012 at 3:15 AM, Uwe Schindler <u...@thetaphi.de> wrote: >> I found the main issue. >> I was using ByteRef without the length. This fixed the problem. >> >> String word = new > String(ref.bytes,ref.offset,ref.length); > > Please see my other mail, using no character set here is the second problem > of your code, this is the correct way to do: > > String word = ref.utf8ToString(); > > Uwe > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org