Skip to content

Text-based filters in MAM queries do not apply correctly to Lucene-based searches #445

@guusdk

Description

@guusdk

The fixes in PR #443 addressed issues #439 and #422 for database-based MAM queries. However, these changes have not been applied to the Lucene-based lookup, which is always used whenever a MAM query includes a text-based filter.

As a result, some MAM queries with text filters do not return correct results, even though the same queries would work correctly if only the database were queried.

Steps to Reproduce

  • Enable MAM with the Monitoring plugin.
  • Create messages with specific text content across multiple users.
  • Execute a MAM query with a text-based filter.
  • Observe that results may be incomplete or incorrect due to Lucene search not applying the PR Fixes Inconsistent private messages in MAM #443 fixes.

Expected Behavior

  • Text-based filters should work correctly in all MAM queries, including those that rely on Lucene, returning all matching messages.

Actual Behavior
Lucene-based searches for MAM queries with text filters can omit messages or return incomplete results.

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