Reputation: 3980
I am using solr search and everything is working fine, but if I put "video camera" synonym for "camcorder", it shows me all the results containing video, camera and camcorders which is perfectly fine.But is there a way to bring results for camcorder on the top and then show the rest.
Please help.Thanks
Upvotes: 0
Views: 94
Reputation: 14800
You can create a separate field textWithoutSynonyms without synomym filter and boost that field:
<field name="text" type="text_general"/>
<field name="textWithoutSynonyms" type="text_general_without_synonyms"/>
<copyField source="text" dest="textWithoutSynonyms" />
Then Your search handler config may look like that:
<str name="qf">text textWithoutSynonyms^100</str>
Upvotes: 1