Support » Plugins and Hacks » Relevanssi - A Better Search » [Plugin: Relevanssi – A Better Search] sort results by custom type than by category

  • Resolved Modesty

    (@modesty)


    is there a way for Relevanssi to display custom type posts first and than the rest of the posts sorted by category?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mikko Saari

    (@msaari)


    I’ve built a mod like this for someone and it’s definitely doable. There’s a filter hook called relevanssi_hits_filter, which lets you adjust the order of the results. Just go through the array of hits and rebuild it the way you want.

    If doing it yourself is too difficult, I can do it for you. Contact me at mikko at mikkosaari.fi for more details.

    ok, I’ve figured this one out, but now I have another very straneg problem… if I do a search for a single word with diacritics the search returns nothing?!?! any idea how to fix this?

    Plugin Author Mikko Saari

    (@msaari)


    Is your database collation charset correct?

    Now that you’ve mentioned it -I’ve checked and the Relevanssi fields have different collation than the rest of the database?!? I’m affraid if I try to change it that it will break my database… will it?

    Plugin Author Mikko Saari

    (@msaari)


    No, go ahead and change the Relevanssi field collations. It doesn’t harm anything and even in the worst case you’ll just reindex and it’s fine.

    Did. Works now. Thnx.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] sort results by custom type than by category’ is closed to new replies.