Re: Need help regarding implementation of autosuggest using jquery

2009-12-01 Thread Weiwei Wang
riginal Message > > From: fulin tang > > To: java-user@lucene.apache.org > > Sent: Thu, November 26, 2009 9:10:41 PM > > Subject: Re: Need help regarding implementation of autosuggest using > jquery > > > > By the way , we search Chinese words, so Trie tr

Re: Need help regarding implementation of autosuggest using jquery

2009-12-01 Thread Otis Gospodnetic
November 26, 2009 9:10:41 PM > Subject: Re: Need help regarding implementation of autosuggest using jquery > > By the way , we search Chinese words, so Trie tree looks not perfect > for us either > > > 2009/11/27 fulin tang : > > We have the same needs in our musi

Re: Need help regarding implementation of autosuggest using jquery

2009-11-26 Thread fulin tang
, 2009 at 3:19 PM, Uwe Schindler wrote: >> >>> You can fix this if you just create the initial term not with "", instead >>> with your prefix: >>> TermEnum tenum = reader.terms(new Term(field,prefix)); >>> >>> And inside the while loop just br

Re: Need help regarding implementation of autosuggest using jquery

2009-11-26 Thread fulin tang
", instead >> with your prefix: >> TermEnum tenum = reader.terms(new Term(field,prefix)); >> >> And inside the while loop just break out, >> >> if (!termText.startsWith(prefix)) break; >> >> ----- >> Uwe Schindler >> H.-H.-Meier-Allee 63, D-2821

Re: Need help regarding implementation of autosuggest using jquery

2009-11-26 Thread Anshum
/www.thetaphi.de > eMail: u...@thetaphi.de > > > > -Original Message- > > From: DHIVYA M [mailto:dhivyakrishna...@yahoo.com] > > Sent: Thursday, November 26, 2009 10:39 AM > > To: java-user@lucene.apache.org > > Subject: RE: Need help regarding implement

RE: Need help regarding implementation of autosuggest using jquery

2009-11-26 Thread Uwe Schindler
remen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: DHIVYA M [mailto:dhivyakrishna...@yahoo.com] > Sent: Thursday, November 26, 2009 10:39 AM > To: java-user@lucene.apache.org > Subject: RE: Need help regarding implementation of autosugges

Re: Need help regarding implementation of autosuggest using jquery

2009-11-26 Thread Anshum
; up with the last word available in the index file. > > Kindly suggest me a solution for this problem > > Thanks in advance, > Dhivya > > --- On Wed, 25/11/09, Uwe Schindler wrote: > > > From: Uwe Schindler > Subject: RE: Need help regarding implementation of a

RE: Need help regarding implementation of autosuggest using jquery

2009-11-26 Thread DHIVYA M
regarding implementation of autosuggest using jquery To: java-user@lucene.apache.org Date: Wednesday, 25 November, 2009, 9:54 AM Hi Dhivya, you can iterate all terms in the index using a TermEnum, that can be retrieved using IndexReader.terms(Term startTerm). If you are interested in all terms from a spec

RE: Need help regarding implementation of autosuggest using jquery

2009-11-25 Thread DHIVYA M
rding TermEnum --- On Wed, 25/11/09, Uwe Schindler wrote: From: Uwe Schindler Subject: RE: Need help regarding implementation of autosuggest using jquery To: java-user@lucene.apache.org Date: Wednesday, 25 November, 2009, 9:54 AM Hi Dhivya, you can iterate all terms in the index using a Ter

RE: Need help regarding implementation of autosuggest using jquery

2009-11-25 Thread Uwe Schindler
Hi Dhivya, you can iterate all terms in the index using a TermEnum, that can be retrieved using IndexReader.terms(Term startTerm). If you are interested in all terms from a specific field, position the TermEnum on the first possible term in this field ("") and iterate until the field name changes