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

    (@msaari)

    Unfortunately not, the relevanssi_hits_filter should return all posts that match the search and Relevanssi expects to have post objects.

    But here’s something you can try. Use this version of lib/search.php and have your relevanssi_hits_filter function return an array of post IDs instead of post objects. You probably have to replace get_posts with a direct database call, but it should be much faster.

    Thread Starter mallorydxw-old

    (@tomdxw)

    Thanks, I’ll try that.

    Plugin Author Mikko Saari

    (@msaari)

    Let me know if that works out for you, and I’ll make that change in the next version.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘relevanssi_hits_filter’ is closed to new replies.