lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.76k stars 2.28k forks source link

Team search not giving expected results #15740

Open eikob opened 4 months ago

eikob commented 4 months ago

Exact URL of where the bug happened

https://lichess.org/team/all

Steps to reproduce the bug

  1. Go to https://lichess.org/team/all
  2. Search for "The main thing"

What did you expect to happen?

The team "The main thing in atomic!" should show up (https://lichess.org/team/the-main-thing-in-atomic)

What happened instead?

The team is not found in the results (no results at all).

Operating system

macOS

Browser and version (or alternate access method)

Safari, current

Additional information

This bug was described here: https://lichess.org/forum/lichess-feedback/clubs-2?page=1

The team is not found if one includes "the" or "in" during search. For example "main thing" or "main thing atomic" finds the team, but "The main thing" or "main thing in atomic" does not.

lenguyenthanh commented 4 months ago

The issue seems to be our query to elasticsearch, I'll investigate more.

ornicar commented 1 month ago

Search requests containing "the" or "in" just return no results at all @lenguyenthanh

shimsangjoon commented 1 month ago

I tried to reproduce this on my local setup with no luck. Created the team and ingested all documents in elastic. Queries all looks good and the yielded the expected results.

Team(The in), from=0, size=15

Screenshot 2024-10-20 at 12 04 42

Team(The main thing), from=0, size=15

Screenshot 2024-10-20 at 12 04 20

I was running elasticsearch:8.8.0.

Not sure what else to try to reproduce this but posting this in case it's helpful