Skip to content

Search fails for documents exceeding Elasticsearch highlighting limit #154

Description

@tsmilan

Global search fails when searching for documents that contain content fields exceeding Elasticsearch's highlighting limit (index.highlight.max_analyzed_offset). The default is 1 MB, but this varies by platform and configuration.

Steps to replicate:

  1. Create a forum post with 3 MB+ of text in the description. For example, you can go to https://elementor.com/tools/lorem-ipsum-generator/ and generate 7,000 paragraphs (around 3.4 MB).
  2. Execute the search indexer (core\task\search_index_task) to index the forum post.
  3. Search for a keyword from that content via global search
  4. Error is displayed instead of search results
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions