Re: Implementing Autocomplete/Query Suggest using Solr

2010-01-04 Thread Prasanna R
On Mon, Jan 4, 2010 at 1:20 AM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Wed, Dec 30, 2009 at 3:07 AM, Prasanna R wrote: > > > I looked into the Solr/Lucene classes and found the required > information. > > Am summarizing the same for the benefit of those that might refer to t

Re: Implementing Autocomplete/Query Suggest using Solr

2010-01-04 Thread Shalin Shekhar Mangar
On Wed, Dec 30, 2009 at 3:07 AM, Prasanna R wrote: > I looked into the Solr/Lucene classes and found the required information. > Am summarizing the same for the benefit of those that might refer to this > thread in the future. > > The change I had to make was very simple - make a call to getPre

Re: Implementing Autocomplete/Query Suggest using Solr

2009-12-29 Thread Prasanna R
> > > > > We do auto-complete through prefix searches on shingles. > > > > > > > Just to confirm, do you mean using EdgeNgram filter to produce letter > > ngrams > > of the tokens in the chosen field? > > > > > >> No, I'm talking about prefix search on tokens produced by a ShingleFilter. >> > > I d

Re: Implementing Autocomplete/Query Suggest using Solr

2009-12-28 Thread Prasanna R
On Wed, Dec 23, 2009 at 10:52 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Thu, Dec 24, 2009 at 2:39 AM, Prasanna R wrote: > > > On Tue, Dec 22, 2009 at 11:49 PM, Shalin Shekhar Mangar < > > shalinman...@gmail.com> wrote: > > > > > > > > > I am curious how an approach that sim

Re: Implementing Autocomplete/Query Suggest using Solr

2009-12-23 Thread Shalin Shekhar Mangar
On Thu, Dec 24, 2009 at 2:39 AM, Prasanna R wrote: > On Tue, Dec 22, 2009 at 11:49 PM, Shalin Shekhar Mangar < > shalinman...@gmail.com> wrote: > > > > > > I am curious how an approach that simply uses the wildcard query > > > functionality on an indexed field would work. > > > > > > It works fi

Re: Implementing Autocomplete/Query Suggest using Solr

2009-12-23 Thread Prasanna R
On Tue, Dec 22, 2009 at 11:49 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > > > I am curious how an approach that simply uses the wildcard query > > functionality on an indexed field would work. > > > It works fine as long as the terms are not repeated across documents. > > I do n

RE: Implementing Autocomplete/Query Suggest using Solr

2009-12-23 Thread Ankit Bhatnagar
@lucene.apache.org Subject: Re: Implementing Autocomplete/Query Suggest using Solr On Wed, Dec 23, 2009 at 6:14 AM, Prasanna R wrote: > > I am curious how an approach that simply uses the wildcard query > functionality on an indexed field would work. It works fine as long as the terms are not

Re: Implementing Autocomplete/Query Suggest using Solr

2009-12-22 Thread Shalin Shekhar Mangar
On Wed, Dec 23, 2009 at 6:14 AM, Prasanna R wrote: > > I am curious how an approach that simply uses the wildcard query > functionality on an indexed field would work. It works fine as long as the terms are not repeated across documents. > While Solr does not support > wildcard queries out o

Implementing Autocomplete/Query Suggest using Solr

2009-12-22 Thread Prasanna R
There seem to be a couple of approaches that people have adopted in implementing a query suggestion / auto completion feature using Solr. Depending on the situation, one might use the terms component or go the way of using EdgeNGramFilters and then creating querying the index on the ngrammed field