StandardTokenizer and split tokens

2012-06-22 Thread Mansour Al Akeel
Hello all, I am tying to write a simple autosuggest functionality. I was looking at some auto suggest code, and came over this post http://stackoverflow.com/questions/120180/how-to-do-query-auto-completion-suggestions-in-lucene I have been stuck with the some strange words, trying to see how they

Re: StandardTokenizer and split tokens

2012-06-22 Thread Mansour Al Akeel
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); Thank you. On Fri, Jun 22, 2012 at 6:26 PM, Mansour Al Akeel wrote: > Hello all, > > I am tying to write

Re: StandardTokenizer and split tokens

2012-06-23 Thread Mansour Al Akeel
Uwe, thank you for the advice. I updated my code. On Sat, Jun 23, 2012 at 3:15 AM, Uwe Schindler 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); > > Pleas