lbryio / lbryio/hub

Text search for `word` doesn't match `word,` and `word:`

Open
#118 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
15
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Example:
These return mostly different claims, only difference is the : at the end of the second params.
{"method":"claim_search","params":{"text":"avatar","order_by":["creation_height"],"duration":["<11400",">7200"]}}

{"method":"claim_search","params":{"text":"avatar:","order_by":["creation_height"],"duration":["<11400",">7200"]}}

If claim's title was Avatar: some text, would expect both queries to return it, but currently it's only returned by second one.


Also nice if this kinds of letters could be matched with the above: 𝔸𝕧𝕒𝕥𝕒𝕣

Contributor guide

No contributing guide indexed for this repository

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

Start at the claim_search entry point and reproduce the two JSON queries using a claim title such as “Avatar: some text.” Check how search text is tokenized or normalized, including punctuation and the mathematical-style letters shown in the issue. Done means equivalent queries match the same claim titles, with coverage for the examples described.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.