Title: Search Details
Last modified: October 15, 2019

---

# Search Details

 *  [doyuk](https://wordpress.org/support/users/doyuk/)
 * (@doyuk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/search-details/)
 * Hi,
    There is a product with the code “TRIDENT”. It doesn’t come up when you 
   search for “trıdent.”
 * Since I don’t use “ı, ö, ş ..” etc in product codes, can I make “i” instead of“
   ı”?
 * Regards
    -  This topic was modified 6 years, 11 months ago by [doyuk](https://wordpress.org/support/users/doyuk/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsearch-details%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/search-details/#post-12033468)
 * Yes. The easiest solution is to just convert all cases of “ı” to “i” automatically:
 *     ```
       add_filter( 'relevanssi_punctuation_filter', 'rlv_i' );
       function rlv_i( $array ) {
           $array['ı'] = 'i';
           return $array;
       }
       ```
   
 * Add this to your theme functions.php and rebuild the index, and now “ı” and “
   i” are the same as far as Relevanssi is concerned.
 * If you want to make this product code specific, it gets slightly trickier this
   way (it’d be easier to make “trıdent” match “trident” than to make “trident” 
   match “trident” and “trıdent”).
 *  Thread Starter [doyuk](https://wordpress.org/support/users/doyuk/)
 * (@doyuk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/search-details/#post-12033907)
 * Dear Mikko,
    Thank you for your support.
 * Can I only do this for SKU?
 * Best Regards
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/search-details/#post-12037349)
 * It gets more complicated, but instead of the other function, use this:
 *     ```
       add_filter( 'relevanssi_custom_field_value', 'rlv_i_customfield', 10, 2 );
       function rlv_i_customfield( $values, $field ) {
           if ( '_sku' !== $field ) return $values;
           $new_values = array();
           foreach ( $values as $value ) {
               $new_value = str_replace( 'i', 'ı', relevanssi_strtolower( $value ) );
               if ( $new_value !== $value ) {
                   $new_values[] = $new_value;
               }
               $new_values[] = $value;
           }
           return $new_values;
       }
       ```
   
 * This will index values like “trident” as both “trident” and “trıdent” for the
   SKU field.

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

 The topic ‘Search Details’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/search-details/#post-12037349)
 * Status: not resolved