• Resolved kevinbrands

    (@kevinbrands)


    We accidentally stumbled upon a situation: the search function doesn’t search in patterns.

    For example: in the doc ‘https://andrekb.noesteprojecten.nl/docs/koptekst/‘ we have a text ‘6 stipjes’, which is in a pattern.

    When using the search function, this doc isn’t showing up.

    Is there a setting we missed to enable searching in patterns?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Zeba Afia Shama

    (@zebaafiashama)

    Hi @kevinbrands,

    Thanks for reaching out about the search function not working for “6 stipjes” within your patterns. You’re right, there’s a specific setting affecting the searchability of content in WordPress.

    The issue lies in using Synced Patterns for your document sections. Unfortunately, WordPress’ default search functionality doesn’t currently support searching within content stored as synced patterns.

    Here’s why:

    • When you use a synced pattern on a doc page, it gets added to the backend as a code block. This format isn’t readily searchable by the standard search bar.
    • BetterDocs also doesn’t support searching within synced patterns.

    There are two ways to ensure your search function picks up content within patterns:

    Use “p” Block or Non-Synced Patterns:

    • Instead of synced patterns, you can create regular patterns using the “p” block (paragraph block) within the Gutenberg editor. This allows your content to be directly included in the page, making it searchable.
    • Alternatively, you can create non-synced patterns. These maintain their own formatting but are treated as part of the page content for search purposes.

      For a clearer picture, I’ve included resources that demonstrate how synced and non-synced patterns affect search indexing:

      Please let me know if you have any questions or need further assistance.

      Thank you

      Plugin Support Ashikur Rahman

      (@ashikurwp)

      Hi @kevinbrands ,
      Greetings.

      We haven’t received any updates from you since then. Could you please provide us with an update?

      We eagerly await your response.
      Thanks!

      Thread Starter kevinbrands

      (@kevinbrands)

      Hi Ashikur,

      I think we’re going to use “p” blocks then. Would be nice if searching in Synched Patterns will be available in the future without a plugin or something.

      Thanks for the info!

      -Kevin

      Plugin Support Zeba Afia Shama

      (@zebaafiashama)

      Hi?@kevinbrands?,

      Thank you for your recommendations.

      We appreciate your interest in having this feature and will definitely consider implementing it in future updates. We take all customer feedback seriously and try our best to incorporate it into our product roadmap whenever possible.

      If you have any further feedback or suggestions, please do not hesitate to let us know. We are always looking for ways to improve our product and provide our customers with the best possible experience.

      Thank you again for bringing this to our attention, and we hope to continue serving you in the future.

    Viewing 4 replies - 1 through 4 (of 4 total)
    • You must be logged in to reply to this topic.