Title: Search Problem
Last modified: August 31, 2016

---

# Search Problem

 *  [Uendi](https://wordpress.org/support/users/uendi/)
 * (@uendi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-problem-19/)
 * Hi
 * I have installed this great plugin Relevanssi. I notice whenever I make a search
   for one single letter (for example a, c to z), all the titles appear, is there
   any way to change it, let’s say “a” search with only title “a” example “art tea,
   art town…”
 * Another question : is not listed orderly. Suppose to be from Letter A on top 
   and Letter Z bottom. However, it listed inorderly and another way round. Is there
   any way to fix it ?
 * Thanks.
 * [https://wordpress.org/plugins/relevanssi/](https://wordpress.org/plugins/relevanssi/)

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

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-problem-19/#post-7292841)
 * Relevanssi by default only searches for words that are at least three characters
   long. You can adjust that from Relevanssi settings, but be warned, results for
   a one-character search will be pretty much absolutely pointless. After all, your
   every post will contain the letter “a” somewhere in it, so Relevanssi will just
   return all posts, and the order will be random.
 * Relevanssi doesn’t and shouldn’t return posts in alphabetical order. The results
   are returned in the order of relevancy. However, if you’re doing one-character
   searches, Relevanssi won’t have any idea which of the posts is more important
   than the other, so order will be effectively random.
 * If you want alphabetical ordering by post title, you can add this to your theme
   functions.php:
 *     ```
       add_filter('relevanssi_orderby', 'rlv_title_order');
       function rlv_title_order($orderby) {
           return "post_title";
       }
       add_filter('relevanssi_order', 'rlv_order_title');
       function rlv_order_title($order) {
           return "asc";
       }
       ```
   
 * That will return posts in alphabetical order by title. You’ll remove most of 
   the benefit you get from Relevanssi that way, though.
 *  Thread Starter [Uendi](https://wordpress.org/support/users/uendi/)
 * (@uendi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-problem-19/#post-7292889)
 * Thank you for your explanation and advise.
 * If that is the case, I won’t be adding this to my functions.php.
 * By the way, I notice that letter A has already been listed in the stopword. However,
   letter B to Z still can be seen in the search result even since I have set it
   to ” Minimum Word Length To index:3 “. Please advise.
 * Thanks.
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-problem-19/#post-7293013)
 * If you’ve set the minimum length to 3, then Relevanssi won’t index any words 
   shorter than that. You need to rebuild the index for that to have any effect,
   though. Once you rebuild the index, there shouldn’t be any one- or two-letter
   words in the index.
 *  Thread Starter [Uendi](https://wordpress.org/support/users/uendi/)
 * (@uendi)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/search-problem-19/#post-7293153)
 * I have clicked the “save indexing options, erase index and rebuild the index”
   button, but a single text b to z still show in search results.
 * I even changed and set the minimum length to 5, click the button and still a 
   single text is shown.
 * Thanks.
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/search-problem-19/#post-7293154)
 * What do you mean “single text is shown”? Shown where and how?
 * Even with the minimum word length set to a bigger value, you will find results
   with single-letter searches, and the letters will be highlighted in the search
   results pages. That still doesn’t mean Relevanssi is indexing those letters.

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

The topic ‘Search Problem’ 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/)

## Tags

 * [search problem](https://wordpress.org/support/topic-tag/search-problem/)

 * 5 replies
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/search-problem-19/#post-7293154)
 * Status: not resolved