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

Reply via email to