Hi, Without changing any of the internals a simple approach might be to take the query "pool" and expand the query with those other keywords, form query phrases in addition to just plain "pool" keyword, and boost those expanded phrases to make them bubble up - if they exist.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: "Manepalli, Kalyan" <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Wednesday, October 22, 2008 10:07:38 AM > Subject: Boosting Question > > Hi, > I am working on a usecase where I want to boost a document if > there are certain group of words near the keywords searched by the user. > > For eg: if the user is searching for keyword "pool", I want to boost the > documents which have words like "excellent pool", "nice pool", "awesome > pool", etc. > > The list of words can be very large. > Can anyone suggest an optimal solution to do this. > > Thanks > Kalyan