My field configuration on Sitecore:
<field fieldName="unifiedtitle" storageType="yes" indexType="tokenized" returnType="string">Project.Foundation.Indexing.ComputedFields.UnifiedTitleComputedField, Project.Foundation.Indexing</field>
Basically I'm facing the following situation when querying against my Solr index:
This is returning the expected result
keywordsFilter.Or(item => item.UnifiedTitle.Like("The Bentley Moose Jaw"))
keywordsFilter.Or(item => item.Content.Like("Bentley Moose"))
And as you can see here, this is the value of the
unifiedtitle field on Solr:
But this is not returning any result
keywordsFilter.Or(item => item.UnifiedTitle.Like("Bentley Moose"))
It looks like the
Like operator doesn't have the same behavior when I use the
UnifiedTitle field. Even weirder, if I use the exact value of this field as a filter, than it works as I showed above.
Any suggestion would be hugely appreciated. Thanks.