#[SOLVED] search is not working while adding multiple attributes

20 messages · Page 1 of 1 (latest)

dusk shuttle
#

It works when i am searching with one attribute

dusk shuttle
#

search is not working while adding multiple attributes

wooden wagon
#

What does mean "Not working", do you get an error? you don't the expected results?

FYI currently queries only support AND operator, that means, you are looking for title=x AND category=x

dusk shuttle
#

it means query only support AND operator

#

how can i use two attribute

wild cargo
#

your title and category search for the same query. is that intended?

dusk shuttle
#

yes

#

return the value whether it is in title or category attribute

wild cargo
#

Ahh. You are trying to use an or logic.

#

I think Query.or is added on 1.5x.

dusk shuttle
#

yes you are right

wild cargo
#

using what you are doing, it will search for documents where the category AND title contain your query.

dusk shuttle
#

i want to check whether that value is in either both the attribute or not

wild cargo
#

You'll have to do multiple calls for that atm. Once 1.5x is released, the or can be used.

dusk shuttle
#

I am very disappointed with appwrite version

wild cargo
#

Just a few more weeks for the release 🙂

dusk shuttle
#

sorry to say but who are you

patent stag
#

i see double post #1214905435170283541