amateescu / search_api_solr

11 stars 14 forks source link

More like this is called to late #36

Closed Berdir closed 9 years ago

Berdir commented 9 years ago

Was getting very weird results (always only the same content) in my install profile, that I reinstalled over and over again...

When debugging it, I noticed that mlt replaces the solarium query object but runs after we set the index and site hash. So it was finding results from earlier installations in my case ;)

I'm not sure if this is the right place, but it seems to be working for me.

amateescu commented 9 years ago

The current place for the code is probably because that's where it was placed in 7.x-1.x, but it makes sense to do it sooner now that we're doing the query via Solarium.