Pono Press

  • Tutu – Block Theme
  • Plugins
  • Guides
  • Support
  • Blog

Get Started
  • Yuto Plugin Release 0.1.0: Introducing WP-CLI Support 🖥️

    Yuto Plugin Release 0.1.0: Introducing WP-CLI Support 🖥️

    We are excited to announce the release of Yuto Plugin version 0.1.0, which now includes support for WP-CLI! 🎉 For those unfamiliar, WP-CLI is a powerful command-line interface for managing WordPress installations, making it an essential tool for developers and administrators looking to streamline their workflow.

    What’s New?

    With this integration, Yuto empowers users to efficiently perform various tasks directly from the command line, such as indexing and deletion. This enhancement not only improves productivity but also opens up new possibilities for automation, allowing seamless execution of commands in scripts and integration with other automation tools. 🛠️

    WP-CLI Command Details

    Yuto introduces the following WP-CLI commands:

    NAME

    wp yuto

    DESCRIPTION

    Yuto CLI Commands.

    SYNOPSIS

    wp yuto

    OPTIONS

    • <action>: Action to perform. Options include:
      • build-index
      • delete-index
      • add-documents
    • <post-type>: Specify the post type to act upon.
    • [--ids=]: A comma-separated list of post IDs to index (only for add-documents).

    EXAMPLES

    Here are some examples of how to use the new commands:

    Build an index for a specific post type:

    wp yuto build-index post_type
    

    Delete the index for a specific post type:

    wp yuto delete-index post_type

    Add documents to the index for a specific post type:

    wp yuto add-documents post_type --ids=1,2,3

    Delete documents from the index for a specific post type:

    wp yuto delete-documents post_type --ids=1,2,3
    

    The addition of WP-CLI support in Yuto Plugin version 0.1.0 significantly enhances its functionality, providing developers and administrators with the tools they need to manage their WordPress sites more effectively. Whether you’re looking to index documents or delete documents from Meilisearch, Yuto’s CLI commands make it easier than ever to automate your workflow. 🌟

    Be sure to check out the new features and streamline your WordPress management tasks with Yuto!

    ponopress

    March 2, 2025
    Announcement, Yuto
    meiliesearch, update, yuto
  • Increasing Batch Size for Faster Performance 🚀

    Increasing Batch Size for Faster Performance 🚀

    Why Increase the Batch Size?

    If you have a large number of posts, pages, or custom post types that need indexing, the process can take significant time. Increasing the batch size can help reduce indexing time by processing more documents per batch.

    By default, Yuto indexes up to 999 documents per batch because larger batches process faster than smaller ones. For example, indexing 100,000 documents in 2 batches of 50,000 is much quicker than using 4 batches of 25,000. However, Meilisearch limits the maximum payload size to 100MB, which is why the default batch size is set to 999.

    Enqueuing the JavaScript File for the Yuto Settings Page

    To apply these changes, you need to enqueue the JavaScript file containing the hooks on the Yuto settings page.

    How to Increase the Batch Size

    Starting from version 0.0.7, you can increase the batch size using the yuto_index_batch_size hook. This hook accepts two parameters:

    Parameters:

    • batchSize (Integer) – Defines the batch size. Default: 999
    • UID (String) – The index ID.

    Example Usage:

    Important Note:

    Re-indexing is necessary for the changes made through this hook to take effect.

    Increasing Beyond 999: Adjusting the REST API Limit

    By default, the WordPress REST API restricts per_page to 100 posts per request. Yuto increases this limit to 999 for all post types. If you want to use a batch size higher than 999, you must first adjust the REST API’s per_page limit.

    Adjusting the REST API per_page Limit

    Use the rest_{$post_type}_collection_params filter to increase the maximum per_page value.

    Once this change is applied, you can use a batch size greater than 999 within the yuto_index_batch_size hook.

    Summary

    • The default batch size is 999, but it can be increased using the yuto_index_batch_size hook.
    • To exceed 999, update the WordPress REST API’s per_page limit.
    • Ensure that JavaScript hooks are properly enqueued on the Yuto settings page.
    • Ensure to Index the documents again for the changes to take effect.

    By following these steps, you can optimize your indexing process for better performance in Yuto. 🚀

    ponopress

    January 29, 2025
    Tutorials, Yuto
    meiliesearch, tutorials, update, yuto
  • Introducing Yuto 0.0.4: New Features and Enhancements

    Introducing Yuto  0.0.4: New Features and Enhancements

    We are excited to announce the release of version 0.0.4, which brings a host of new features and improvements to enhance your experience. Here’s a detailed look at what’s new in this update:


    Important Note

    With new version, please be aware that the Autocomplete Block will display an “Attempt Block Recovery” warning in the Editor. If you encounter this warning, simply click the button provided to resolve the issue. This will ensure that the block functions correctly and continues to perform as expected.


    1. Include Featured Images in the Default Search Results

    In version 0.0.4, we’ve added support for including featured images in the default search results. This means that when users perform a search, the results will now display relevant featured images alongside other search information. This enhancement helps provide a richer and more visually appealing search experience, making it easier for users to find and recognize content.


    2. Index Documents During Post Updates, Deletions, and Bulk Edits

    To ensure that your search index remains up-to-date, we have introduced functionality to index documents automatically during post updates, deletions, and bulk edits. This means that any changes you make to your content will be reflected in your search index without needing additional manual intervention. This feature streamlines content management and ensures that search results are always current.


    3. Display a Loading Indicator While Indexing and Deleting Documents

    Version 0.0.4 introduces a new loading indicator that appears while indexing and deleting documents. This visual cue informs users that the system is processing their request, helping to improve the overall user experience. By providing clear feedback during these operations, we make it easier for users to understand the status of their actions and reduce any potential confusion.


    4. Enable Indexing for All Available Post Types (Excluding Default Types)

    We’ve expanded the indexing capabilities to support all available post types, except for default types like navigation, media, and others. This enhancement allows for greater flexibility in indexing content, enabling users to include a wider range of custom post types in their search indices. This means that any plugins providing custom post types, they can now be indexed and searched more effectively.


    5. Add Support for WooCommerce

    We’re pleased to announce that version 0.0.4 now includes full support for WooCommerce. This integration allows you to index your WooCommerce products directly into Meilisearch, providing a seamless search experience for your e-commerce store. With this update, you can ensure that product details are accurately indexed and easily searchable, enhancing the overall shopping experience for your customers.


    6. Add Autocomplete Theme Color Option for Block

    Finally, we’ve added a new theme color option for the autocomplete block. This feature allows you to customize the appearance of the autocomplete dropdown to match your site’s design aesthetics. You can now set a theme color that aligns with your branding, providing a more cohesive and visually integrated search experience.


    We hope you enjoy these new features and improvements in version 0.0.4. As always, we welcome your feedback and are committed to continually enhancing our product to meet your needs. Stay tuned for more updates and improvements in the future!

    ponopress

    September 7, 2024
    Announcement
    meiliesearch, update, yuto

Looking for Help?

Browse our Documentation or contact Support to get your questions answered. To report a bug, please post to our GitHub Issue Tracker.

See our Terms & Conditions for licensing and refund details.

Pono Press

  • Terms & Conditions
  • Guides
  • Support

Copyright@2020 Pono Press

Powered by crazy ideas and passion.