Title: iwasa's Replies | WordPress.org

---

# iwasa

  [  ](https://wordpress.org/support/users/iwasa/)

 *   [Profile](https://wordpress.org/support/users/iwasa/)
 *   [Topics Started](https://wordpress.org/support/users/iwasa/topics/)
 *   [Replies Created](https://wordpress.org/support/users/iwasa/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/iwasa/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/iwasa/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/iwasa/engagements/)
 *   [Favorites](https://wordpress.org/support/users/iwasa/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Inquiry Regarding Search Result Order Change After Plugin Update](https://wordpress.org/support/topic/inquiry-regarding-search-result-order-change-after-plugin-update/)
 *  Thread Starter [iwasa](https://wordpress.org/support/users/iwasa/)
 * (@iwasa)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/inquiry-regarding-search-result-order-change-after-plugin-update/#post-18312702)
 * Thank you very much for your prompt response and for providing clear instructions
   on resolving the issue. Your guidance has been extremely helpful.
 * I truly appreciate your swift replies, as they have greatly assisted me in addressing
   this matter efficiently. I will proceed with implementing the suggested changes
   and monitor the results.
 * Once again, thank you for your valuable support. I sincerely appreciate your 
   time and effort.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Inquiry Regarding Search Result Order Change After Plugin Update](https://wordpress.org/support/topic/inquiry-regarding-search-result-order-change-after-plugin-update/)
 *  Thread Starter [iwasa](https://wordpress.org/support/users/iwasa/)
 * (@iwasa)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/inquiry-regarding-search-result-order-change-after-plugin-update/#post-18312648)
 * [@msaari](https://wordpress.org/support/users/msaari/)
 * Dear Mikko Saari
 * Thank you very much for your prompt response and for providing valuable insights
   regarding the issue. I sincerely appreciate your support.
 * Upon reviewing our `functions.php` file, I found the following code:
 *     ```wp-block-code
       // Sorting search results for the Relevanssi plugin
       add_filter('relevanssi_orderby', custom_relevanssi_orderby);
       function custom_relevanssi_orderby() {
           return 'relevance';
       }
   
       // Matching inside words for the Relevanssi plugin
       add_filter( 'relevanssi_fuzzy_query', 'rlv_match_inside_words' );
       function rlv_match_inside_words( $query ) {
           return "(relevanssi.term LIKE '%#term#%') ";
       }
       ```
   
 * In order to implement the solution you kindly suggested, would it be appropriate
   to add the following code?
 *     ```wp-block-code
       add_filter( 'relevanssi_orderby', function ( $orderby ) {
           return array( 'relevance' => 'desc' );
       } );
       ```
   
 * I would be grateful for your confirmation on whether this adjustment is correct.
   Please let me know if there are any additional modifications or considerations
   I should be aware of.
 * Once again, I truly appreciate your assistance and look forward to your response.

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