Speed and priority

This topic contains 14 replies, has 2 voices, and was last updated by

3 years, 9 months ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
  • #17394

    On the home page I setup a Search
    • First all the search take to long to show results

    Please try to Search for … KM5
    • How can give priority to this post https://welcometoibiza.com/restaurantes/san-jose/km5-ibiza/ now don’t apear on the results

    Also if you search fo PACHA

    this post should be the first to apear
    How can i solve this ??



    1. The front-page search is set to look within many post types, within over 40 000 posts and contents. That is a very big amount of data, and the database cannot handle that easily.
    I did the following steps to optimize it:
    Generated and enabled the index table engine
    – Only enabled the keywords for titles and custom keywords, as there are already 650 000 keywords from these fields, which is enough. With the content and excerpt this would be over 10 million, which is too much in my opinion.

    Now the search should be almost instant.

    2. Using the individual priority options you can do it: Individual Priorities

    Look for that post, and set the priority to 101. In that case it will always be displayed as first, if matched.

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    Thanks ,, i delete 24.000 post that was unused and know works better


    I just try the priority …. Works with more than one word ?’ where search in ?? jut title ??
    I want to give same priority to “Restaurants” for ” comer paella ” but only one post with ” comer paella ” in the title apear




    It looks only within the title as exact matches. You can also try the group priorities if you want to, it allows prioritizing multiple items at once from same categories.

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    Sorry but thats not clear

    How can i priority same post for the search “comer paella ” when “Comer Paella” its not on the title of the post

    By now only one post apear on the result




    You mean it does not show up in the list on the priority options? And if you try to search for the other post title? It should show up then.

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    I don’t know if you understand me ..
    the priority tool works only for ONE WORD on the POST TITLE but .. what about this cases ???

    1 – GENERAL SEARH ON HOME PAGE ( search in all post and custom post)

    Search for ” COMER PAELLA”
    The only good result its the first one .. the rest are more just for the word COMER .. not COMER PAELLA
    What I need its to show same RESTAURANT that have also “PAELLA” as you can see on the RESTAURANTS SEARCH

    Also If you search for paella .. NO RESTAURANT APEAR

    Search for COMER PAELLA .. thats not in any title …

    I want to set priority on “COMER PAELLA” search to same of this post .. set which post to show first for that particular search


    You must be logged in to view attached files.


    I’m afraid this is not possible. The individual priorities apply on every search phrase, it is not possible to set different prirorities for different search phrases.

    For group priorities you can set search phrases, as those work differently, but not for individual priorities.

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    One again .. you see whats the problem ???

    There is any way to SHOW post related with ” COMER PAELLA” when you search for that ???

    Worsk on restaurants Search .. why no for all general search ??



    And there its no way to set priority to same words that are not in the Post title ?
    I dont really understant how to use GRUOPS an what for it use ???



    I think I understand now.

    The ‘global’ search is only searching the titles via the index table -> remember, I have changed that for a better performance (see my first reply), as there are over 35 000 posts in total, and even the titles generate over 300 000 keywords: https://i.imgur.com/pis982e.png

    The restaurant search only looking within the restaurants, which is only ~400 posts, so the content search is also enabled.

    I can try to re-create the index table to index the post contents as well, but the keyword count can go over 5+ million easily. It may affect the performance greatly. Do you want me to try that?

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    I did the indexing in the meantime, 1.5 million keywords, not that bad after all. The performance is still almost the same, you have a great server.

    Now I’m seeing totally different results, based on the content as well: https://i.imgur.com/Dk7bYGD.png
    There are a few restaurants there as well. They might not be the most relevant, but it should be much better than before.

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    I dint know you change to index …
    i will try the both options to see how works better ..
    by noway index its Success. ” 947369 new keywords were added to the database. ” I take of the index the old post ( 1news)

    And on this point

    Da i have any way to give more relevance to same of post it show ????




    You can increase the relevance of certain fields, and also estabilish an order by post type.

    – So if you need certain post type results first, you can give an order: https://i.imgur.com/OVHbkcg.png
    – and also make have the limit separated between the post types: https://i.imgur.com/kHDNXbR.png

    This configuration is good when you want to prioritize certain post types over others, but also have roughly the same number of results for each post type.

    The index table engine calculates the relevance based on how many times the keyword occurs in each field, and that value is also multiplied by the relevance value. By default the titles have the highest relevance.
    – You can adjust these as well, here: https://i.imgur.com/VVXkYft.png

    To prioritize a certain post over others, you have the priority options, which I already detailed in my previous post. If you want to prioritize only a few posts, then I recommend using only the individual priority options, that is the easiest, and the most performance friendly.

    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.