# NousResearch/hermes-agent · session_search ranking for short CJK query tokens

## Open now

- 1 issue, 2 PRs open on GitHub.
- #161060: session_search: short CJK tokens force LIKE OR-scan ordered by timestamp DESC, so Japanese queries return only the newest sessions
- PR #161210: Session search with short Japanese/Chinese words finds the matching chat, not just the newest (#161060)
- PR #161656: fix(session_search): rank LIKE fallbacks by distinct tokens matched b…

The members appear to concern session_search behavior with short Japanese/Chinese tokens, where a LIKE fallback reportedly orders results by newest timestamp rather than relevance. One member seems to propose ranking LIKE fallbacks by distinct tokens matched; the titles don't confirm the outcome.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #161060: session_search: short CJK tokens force LIKE OR-scan ordered by timestamp DESC, so Japanese queries return only the newest sessions

## Prior & competing PRs

- **#161210: Session search with short Japanese/Chinese words finds the matching chat, not just the newest (#161060)**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `36f4e1793c693804302ad4aa04161e44a6212e1f`, `0fe8e407cc67947ea0e2134a94f44b50a1eac338`, `#161060`
  - files: `persistence/sqlite/conversation/_store/search.py`, `tests/contracts/_reference/conversation/search.py`, `tests/contracts/conversation/test_search_contract.py`, `tests/persistence_sqlite/conversation_store/test_message_search.py`
- **#161656: fix(session_search): rank LIKE fallbacks by distinct tokens matched b…**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `persistence/sqlite/conversation/_store/search.py`, `tests/persistence_sqlite/conversation_store/test_message_search.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
- Kind: `bug` (from the open issues' GitHub type labels).
