Back

Search parts of words doesn't work

  • 0
  • Databases
  • Web
  • Cloud
ThisIsStep2
2 Sep, 2024, 21:06

I work in Germany, so we have many connected words and i need to make sure that searching is including the part of the words. For example - the title is : "Primärenergieverbrauch" (Primärenergieverbrauch)

and the user is searching for energie. Currently it doesn't find it. What can i do ? I use Query.search

LOG query [ '{"method":"limit","values":[25]}', '{"method":"offset","values":[0]}', '{"method":"search","attribute":"title","values":["energie"]}' ]

TypeScript
          query.push(Query.search(key, searchParams[key]))

Is there something i can do ?

TL;DR
Issue: Search function is not finding parts of words in titles, causing inconvenience for German developers with connected words like "Primärenergieverbrauch". Solution: To allow searching for parts of words in titles, consider modifying the search function to use wildcard or partial matching. This can be achieved by adjusting the Query.search method to support either wildcard characters or partial matching of words. By implementing these changes, developers will be able to search and find relevant results more effectively even within connected words.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more