RE: StandardTokenizer and split tokens

2012-06-24 Thread Uwe Schindler
> -Original Message- > From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] > Sent: Saturday, June 23, 2012 11:21 PM > To: java-user@lucene.apache.org > Subject: Re: StandardTokenizer and split tokens > > Uwe, > thank you for the advice. I updated my code. > > >

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

RE: StandardTokenizer and split tokens

2012-06-23 Thread Uwe Schindler
> 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:

RE: StandardTokenizer and split tokens

2012-06-23 Thread Uwe Schindler
Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] > Sent: Saturday, June 23, 2012 12:26 AM > To: java-user@lucene.apache.org > Subject: StandardTokenizer and split t

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 a simple autosugg

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