Get WPFTS Pro today with 25% discount!

languages

Suggested Topics

  • 0 Votes
    2 Posts
    57 Views
    EpsilonAdminE

    Hi @marcellosalass

    Actually WPFTS could be not that great for you in case you have millions of records (e.g. posts).
    The whole Wordpress could be not good for you either, because to handle such amount of data you will need to use specific optimization and caching algorithms and even clustering.

    I would like to propose you to use full-text solutions based on Apache Solr or Elastic Search - those tools are implemented in Java and work way faster than PHP+MySQL solution provided by WPFTS and they are especially good for big data.

    Alternatively you can wait until we release a new WPFTS version (in 1-2 months) that can use self-hosted Elastic Search engine to keep full-text index and uses WPFTS data collecting algorithms.

    Thank you for the question.

  • Indexing add-on blocks

    General Discussion
    2
    0 Votes
    2 Posts
    335 Views
    L

    Here is the accordion.php code that creates the faq entries.

    accordion.php.txt

    I added the code from the documentation to my function.php in the child theme, but of course this is not a post type I'm dealing with, but a page with an add-on.

    /** * This snippet adds metadata of "employee" post to search index */ add_filter('wpfts_index_post', function($index, $post) { global $wpdb; // Basic tokens /* * This piece of code was commented out intentionally to display things * which was already done before in the caller code $index['post_title'] = $post->post_title; $index['post_content'] = strip_tags($post->post_content); */ if ($post->post_type == 'employee') { // Adding new token "employee_data" specially for posts of type "employee" $data = array(); $data[] = get_post_meta($post->ID, 'address', true); $data[] = get_post_meta($post->ID, 'phone', true); $data[] = get_post_meta($post->ID, 'name', true); $data[] = get_post_meta($post->ID, 'function', true); $index['employee_data'] = implode(' ', $data); } return $index; }, 3, 2);
  • How long should indexing take?

    General Discussion
    10
    0 Votes
    10 Posts
    1k Views
    EpsilonAdminE

    @paulf Hi, yes, please. You can put me a message directly to my email [hidden] also

  • Custom Directory

    General Discussion
    2
    0 Votes
    2 Posts
    554 Views
    EpsilonAdminE

    Hi @rgm_b

    Currently, the plugin works with the database, not with the physical location of the files. Actually, it does not matter where the file is stored - it will index all the files that are in WP Media Library.

    So the best way to index the folder with files - just to upload these files into the WP Media Library. Is it a problem to do that with your app?

  • Adding woocommerce SKU and taxonomy

    General Discussion
    2
    0 Votes
    2 Posts
    927 Views
    EpsilonAdminE

    Yes, it looks correct. I think there should be a better way to get taxonomy (using WP native methods). Also, I see a bit strange names for custom post meta names (MPN Number and MPN2 Number) - please be sure they are stored in a database like this exactly.

    You can check your hook using Sandbox / Test Index. Just put the product post ID into the input and press the button. It should show you all cluster values, including 'sku' and 'product taxonomy'. Next, you can go to Edit one product and press Update to force WPFTS to rebuild index for this product. After that, this product should become searchable by sku and taxonomy.

    If so, you can press Rebuild Index to rebuild an index for all products.

Be the first to read the news!

We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

Join Us Now!

We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

ewm-logo-450

The forum powered by NodeBB | Contributors