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
Comment #1
drunken monkeyUnfortunately, 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()orhook_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.
Comment #2
reptilex commentedThanks 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.
Comment #3
OanaIlea commentedThis 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.