Skip to content

[CD]: Search Fails When Query Includes Lucene Special Characters #33722

Closed

Description

@rjvelazco

Problem Statement

The Content Drive search fails when the search term includes Lucene special characters (e.g., +, -).
For example, searching for dotcms works as expected, but searching for dotcms- or dotcms+ returns no results, even though matching content exists.

This issue is specific to the Content Drive, the legacy content search can handle these special characters correctly.

Steps to Reproduce

  1. Navigate to Content Drive

  2. Search for a term containing a Lucene special character:

    • dotcms-
    • dotcms+
  3. Observe that no results are returned, even when content matches

  4. Repeat the same term in the old search

  5. Observe that it works correctly there

Video

video-search-content-drive.mov

Acceptance Criteria

  • Searching with special characters like + and - returns correct results
  • Search behavior is consistent between Content Drive and legacy search
  • Escaping/query handling updated to support Lucene syntax safely
  • Add test cases for queries with Lucene characters (e.g., +, -, *, :)

dotCMS Version

main / trunk

Severity

Medium - Some functionality impacted

Activity

  1. added theissue type on Nov 4, 2025
  2. moved this from New to Next Sprint in dotCMS - Product Planningon Nov 4, 2025
  3. self-assigned this
    on Nov 4, 2025
  4. moved this from Next Sprint to In Progress in dotCMS - Product Planningon Nov 4, 2025
  5. github-actions commented on Nov 4, 2025

    @github-actions
    Contributor
  6. moved this from In Progress to No status in dotCMS - Product Planningon Nov 4, 2025
  7. added a commit that references this issue on Nov 5, 2025
    e41085a
  8. removed their assignment
    on Nov 5, 2025
  9. moved this from Done to QA in dotCMS - Product Planningon Nov 5, 2025
  10. reopened this on Nov 5, 2025
  11. self-assigned this
    on Nov 11, 2025
  12. rjvelazco commented on Nov 11, 2025

    @rjvelazco
    MemberAuthor

    Passed QA

    • dotCMS Docker Image: [dotcms/dotcms:trunk_f74e78b]

    Video

    passed-search-with-lucene-special-characters.mov
  13. removed their assignment
    on Nov 11, 2025
  14. added a commit that references this issue on Dec 9, 2025
    473d726
  15. added a commit that references this issue on Feb 20, 2026
    6570d65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions