Matt, The first thing that came to my mind is that this might be interesting to try with a dictionary (of city names) if this example is not a made-up one.
Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ ----- Original Message ---- > From: Matt Mitchell <goodie...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Fri, October 8, 2010 11:22:36 AM > Subject: dynamic "stop" words? > > Is it possible to have certain query terms not effect score, if that > same query term is present in a field? For example, I have an index of > hotels. Each hotel has a name and city. If the name of a hotel has the > name of the city in it's "name" field, I want to completely ignore > that and not have it influence score. > > Example: > > Doc 1 > name => "Holiday Inn" > city => "Denver" > > Doc 2 > name => "Holiday Inn, Denver" > city => "Denver" > > q=name:(Holiday Inn, Denver) > > I'd like those docs to have the same score in the response. I don't > want Doc2 to have a higher score, just because it has all of the query > terms. > > Is this possible without using stop words? I hope this makes sense! > > Thanks, > Matt >