I have used solr search in Magento but not find how to add specific attributes in search by Best Match.

I have tried to give it with bellow code in Solr\Block\Catalogsearch\Autocomplete.php in SEARCH_TYPE_STRING_COMPLETION but it is not working.

It works on if I search like "testsku" best match product should be first. If I search with "custom product" than best match of both word should be come first.

I have tried to find out solution but didn't found any.

Also I have shown that if I search with "customize" than Irrelevant product comes.

Need for specific attributes only.

Thanks for your time in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.