Skip to content

odebase-memory-mcp search_code couldn't find it (semantic, not literal; returned raw_match_count:0). #1155

Open

Description

Version

codebase-memory-mcp 0.9.0

Platform

Linux (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

codebase-memory-mcp cli search_code --project DEV_COMMON_BRANCH --pattern "nsa_log_community: unauthorized SNMP community"
level=info msg=mem.init budget_mb=192775 total_ram_mb=385550
level=warn msg=search.slow elapsed_ms=6092
{"results":[],"raw_matches":[],"directories":{},"total_grep_matches":0,"total_results":0,"raw_match_count":0,"elapsed_ms":6092,"warnings":["search took 6092ms (>5s); narrow file_pattern/path_filter or use a more specific pattern"]}

codebase-memory-mcp cli search_code --project DEV_COMMON_BRANCH --pattern ":unauthorized SNMP community from "
level=info msg=mem.init budget_mb=192775 total_ram_mb=385550
level=warn msg=search.slow elapsed_ms=6072
{"results":[],"raw_matches":[],"directories":{},"total_grep_matches":0,"total_results":0,"raw_match_count":0,"elapsed_ms":6072,"warnings":["search took 6072ms (>5s); narrow file_pattern/path_filter or use a more specific pattern"]}

again exact matching string giving result ..if query has any extra word also results are not coming..
semantic search should be enabled.

following one given result...
codebase-memory-mcp cli search_code --project DEV_COMMON_BRANCH --pattern "unauthorized SNMP community"
level=info msg=mem.init budget_mb=192775 total_ram_mb=385550

Reproduction

codebase-memory-mcp cli index_repository --repo-path /data/src/repo --mode fast --name branch --persistence true

Logs


Diagnostics trajectory (memory / performance / leak issues)


Project scale (if relevant)

No response

Confirmations

  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.

Activity

  1. added
    questionFurther information is requested
    documentationImprovements or additions to documentation
    and removed
    bugSomething isn't working
    windowsWindows-specific issues
    on Jul 18, 2026
  2. added this to the 0.9.2-rc milestone on Jul 18, 2026
  3. added
    ux/behaviorDisplay bugs, docs, adoption UX
    priority/backlogValuable contribution, lower scheduling urgency; review when maintainer capacity opens.
    on Jul 18, 2026
  4. DeusData commented on Jul 18, 2026

    @DeusData
    Owner

    Thanks for the examples. The successful shorter phrase confirms the current contract: search_code is graph-augmented grep over indexed files, so extra words or punctuation that are not contiguous in source do not become semantic matches. Semantic vector search is exposed by search_graph through semantic_query, and it requires a moderate or full index; this repository was indexed in fast mode. I’ve reclassified this as a 0.9.2-rc usage/documentation and UX item rather than a Windows/runtime bug. A useful control is to reindex in moderate/full mode and query semantic_query with separate terms such as unauthorized, SNMP, and community.

  5. DeusData commented on Oct 19, 2026

    @DeusData
    Owner

    Thank you for the search examples. This remains a search-contract/documentation question: the literal phrase example and the request for semantic matching are different behaviors. I have no new change to search_code’s matching behavior to report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationpriority/backlogValuable contribution, lower scheduling urgency; review when maintainer capacity opens.questionFurther information is requestedux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions