Hi Glyn, Thanks.
I considered this, but I have a field of search keywords... If I did a prefix query, I would miss quite a bit of stuff. Many of the terms are going to be in the middle of the field. I think this is where the n-grams and word counts come in... but clearly I'm feeling a bit over my head. -----Original Message----- From: Glyn Darkin [mailto:[email protected]] Sent: Thursday, January 07, 2010 11:36 AM To: [email protected] Subject: Re: Suggest Search Terms Hi Heath, I have implement this using a prefix query against a particular field. Good luck. Glyn 2010/1/7 Heath Aldrich <[email protected]>: > Hello all... > > > > I'm looking for some guidance on how to get suggested search terms going from > the lucene.net perspective. > > I have seen a few concepts using SOLR, but I'm trying to figure out how to > make it happen using lucene. > > > > I would like to be able to suggest the rest of a search term, much as Google > does when searching. I can figure the AJAX part of displaying the results no > problem, but I really don't know how to make lucene provide the results that > I should be displaying. > > > > I "think" it is done using n-grams, but that's really about as far as I have > found thus far. > > > > Any guidance is appreciated... > > > > Thanks. > > Heath Aldrich > > -- Glyn Darkin Darkin Systems Ltd Mob: 07961815649 Fax: 08717145065 Web: www.darkinsystems.com Company No: 6173001 VAT No: 906350835
