RE: To exit the while loop if match is found

2009-11-27 Thread DHIVYA M
Anyways thanks for your suggestion sir --- On Fri, 27/11/09, Uwe Schindler wrote: From: Uwe Schindler Subject: RE: To exit the while loop if match is found To: java-user@lucene.apache.org Date: Friday, 27 November, 2009, 11:19 AM This question is out of the scope of Lucene. Try using some

RE: To exit the while loop if match is found

2009-11-27 Thread Uwe Schindler
IVYA M [mailto:dhivyakrishna...@yahoo.com] > Sent: Friday, November 27, 2009 12:17 PM > To: java-user@lucene.apache.org > Subject: RE: To exit the while loop if match is found > > Sir anyways i want this to happen in keypress event of the text box. > Can u suggest me a way for this

RE: To exit the while loop if match is found

2009-11-27 Thread DHIVYA M
Sir anyways i want this to happen in keypress event of the text box. Can u suggest me a way for this?   Thanks in advance, Dhivya.M --- On Fri, 27/11/09, Uwe Schindler wrote: From: Uwe Schindler Subject: RE: To exit the while loop if match is found To: java-user@lucene.apache.org Date: Friday

RE: To exit the while loop if match is found

2009-11-27 Thread Uwe Schindler
Another more simplier approach is to use http://lucene.apache.org/java/3_0_0/api/core/org/apache/lucene/search/Prefix TermEnum.html It is a wrapper term enumeration that lists all Terms with the supplied prefix. You do not need to filter anything manual, just use a while-loop: IndexReader reader

Re: To exit the while loop if match is found

2009-11-26 Thread fulin tang
Make sure your analyzer has called strToLower when index the data 2009/11/26 Savvas-Andreas Moysidis : > hi, > > maybe you could not break but rather collect them in an ordered collection. > If it's a web app you are having you can then pass it up your view layer > wrapped in json? > > savvas > >

Re: To exit the while loop if match is found

2009-11-26 Thread Savvas-Andreas Moysidis
hi, maybe you could not break but rather collect them in an ordered collection. If it's a web app you are having you can then pass it up your view layer wrapped in json? savvas 2009/11/26 DHIVYA M > Thanks for your suggested code sir. > > But it displays only one word. > > Ex: > if the input i