Back

[Solved] issue using SEARCH query in Rest API

  • 0
  • Self Hosted
  • Databases
  • REST API
fafa
29 Nov, 2023, 09:52

Heyo.

I am trying to use this query: ?queries[]=search("multistores","db_nl")&queries[]=search("languages","nl") I get nothing back from the collection. However when I use ?queries[]=search("multistores","db_nl"), it works fine. Is there something wrong with the syntax or something?

I have both "multistores" and "languages" as indexes. It just gives me an empty array if I use both.

TL;DR
User encountered an issue using the SEARCH query in the Rest API. When using two search queries in the API, the user was not getting any results back from the collection. However, when using only one search query, it worked fine. User is wondering if there is something wrong with the syntax or if there are issues with using multiple search queries. A solution was found in the GitHub discussion linked in the conversation.
fafa
29 Nov, 2023, 10:56

Here's an example of 2 documents, both having "db_nl" and "nl" in multistores and languages.

fafa
29 Nov, 2023, 10:56

My attributes and indexes:

Drake
29 Nov, 2023, 14:03
fafa
29 Nov, 2023, 14:06

Bummer haha. Thanks!

fafa
29 Nov, 2023, 14:06

[Solved] issue using SEARCH query in Rest API

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