Hi, I need to know when a word or words are inside a field in my index, and have that document swith greater score.
My problem is that if i search for "Sherton Hotel" I get this as greatest results
- Petit Hotel
- Crzy cow
- Simmonss
And i would like this ones to have the greatest results
- Maui Sheraton Hotel near the moon
- A fantastic hotel that looks like Sheraton
I want that if the words Im searching or similar are inside, in this case, hotelName field they have a greater score.. besides the lenght of the field text.
I assume that for Lucene, "Seraton Hotel" has more similarity with "Crazy Cow" than with "A fantastic hotel that looks like Sheraton".
Thanks in advance!!