I have a pretty good installation with your modul. Thanks for the hard work.

Now I was wondering how I could bias results. I want to make a content type more relevant then others. I hear you can do that with apache solr. But I liked the way search api module works much better. Is there a way to achieve this?

Thanks for the help.

Comments

drunken monkey’s picture

Unfortunately, this is not possible out of the box with the Search API Solr module. Only if you want a strict ordering and that ordering happens to be alphabetical (or exactly in reverse) for the content type machine names, you can just add a sort in Views.

Otherwise, you'll have to manipulate the queries and/or documents sent to Solr, with hook_search_api_solr_query_alter() or hook_search_api_solr_documents_alter(), respectively.
Use either this tip or this one from the Solr Relevancy FAQ to find out what you will have to change.

reptilex’s picture

Thanks drunken monkey, that was fast and precise. I will look into it when I have a bit more time. If I find something useful I will post it back here for others to have.

OanaIlea’s picture

Status: Active » Closed (outdated)

This issue was closed due to lack of activity over a long period of time. If the issue is still acute for you, feel free to reopen it and describe the current state.