Skip to content

twig search() on entry query doesnt return nested fields anymore since craft3.5 #6771

@RainerZarth

Description

@RainerZarth

Description

When searching through entries with twig query

{% set searchQuery = craft.app.request.getParam('q') %}
{% set result = craft.entries().section("sectionhandle").search(searchQuery).orderBy("score").all() %}

the result is no longer finding content of fields when nested in a Supertable. Normal matrix works fine.
this worked before at Craft version 3.4.25 and Supertable 2.5.1 (old version with postgres db)
with the new versions of craft and supertable it finds nothing, sadly.
i already tried to rebuild search index with php craft resave/entries --update-search-index didnt help

Steps to reproduce

  1. Put a supertable field inside a Matrix block
  2. put a matrix field inside the supertable
  3. put a texteditor (redactor) inside the nested matrix
  4. create entry with that matrix and add richt text into the editor field
  5. create search field like the documentation (https://craftcms.com/docs/3.x/dev/examples/search-form.html)
  6. search a word in content, result will be null

Additional info

  • Plugin version: supertable 2.6.2, redactor 2.7.3
  • Craft version: 3.5.7
  • Multi-site: No
  • Database: MySQL 5.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions