matrix-org / matrix-org/seshat

Search for exact strings

Open
#100 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
127
Forks
29
Avg merge
22h 40m
Merged PRs (30d)
3

Description

**Description:**

I'd like to be able to search for exact strings.

For example, right now I'm looking for the string "\ logging" in all our rooms. I know that `logging` is the exact word I want to match (it's actually the title of an internal bug and so likely to be cited exactly like that), but unfortunately the PostgreSQL full text search will stem `logging` to `log`, and this will pollute my result list with lots and lots of irrelevant matches like `AudioLog`, `Log`, `Dateilog`, `Changelog,` `bash_log`, `dialog`, `Login`, `Logparser`, ... which makes it practically impossible to actually find what I'm looking for.

I've attempted to quote `loggging` (`"logging"`) to force an exact match, but that doesn't seem to have any effect.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is identified in the issue. Start by reviewing the PostgreSQL full-text search behavior described in the report and determine how exact-string matching should differ from stemming; done means quoted or otherwise exact searches exclude the unrelated matches listed.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, rust
Domain
databases, search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.