I have a tagging system and tags are like this:
italian kitchen
chinese kitchen
japanese kitchen
russian kitchen
vegeterian kitchen
When I query italian kitchen, I don't get the italian kitchen on top. I get russian and japanese all the time and other irrelevant results. In Solr schema, my tags field's type is string. I have no idea why this is happening. Can you share your ideas with me?
The field type of "string" means your fields aren't getting tokenized. So each field has a single token -- the entire string passed in. So unless there's an exact phrase query match on the entire field, no result will be more relevant than any other,
You probably want to use the type "text" in the default schema, this will break up the field into tokens. IE instead of "Italian kitchen" you'll have both "Italian" and "kitchen" terms indexed in the field.