digitalfabrik / integreat-app

React JS and React Native App for Integreat
https://integreat.app
MIT License
46 stars 15 forks source link

Search function finds pages that don't contain the search text. #2741

Open Docmale opened 6 months ago

Docmale commented 6 months ago

Describe the Bug

The search with strings of up to 4 characters finds pages in which the search text does not appear. I have found several examples of 3 and 4 long strings, but found no example for longer strings.

Steps to Reproduce

  1. Go to 'Landeshauptstadt München' (Deutsch)
  2. Enter search string 'asdf'
  3. Find page 'Arbeitsunfall'
  4. more:
  5. Enter search string 'DRK'
  6. Find page 'Alten- und Service-Zentren' and other

Expected Behavior

Search function should not display pages that does not contain the serch string

Additional Information

Search

osmers commented 6 months ago

https://chat.tuerantuer.org/digitalfabrik/pl/jrpcm3ar8tbh7kc3zawo5zsrxh There was a discussion about this already - it has to do with the fuzzy search properties.