Anyone has had issues with search
Anyone has had issues with search indexes filtering on 2 fields ?
seems to ignore the second filter
17 Replies
actually i think if the full text seach return an entry that is equal to
args.amount
it actually filters but if not it ignores the filter and return entries with amount
!= args.ammount
very strangeq doesn't have
.search
on it?
q
.search('search', args.search)
.eq('teamId', args.teamId)
.eq('amount', args.amount * -1)
Interface: IndexRangeBuilder<Document, IndexFields, FieldNum> | Con...
server.IndexRangeBuilder
like what i mean is you only use these methods on type q

its a search index!
oh! my bad! my eyes didn't read the search 🤣
can you share how you indexed the table in your schema?
amount is a number
yep that is strange, I've never encountered this before
any chance i can get a convex eng to look at this?
lol I am not one
any way to ping them on this thread?
@erquhart can you chip in here please?
Can you log the actual inputs and the result and share here
Hey not right now, but it's literally amount==30 and there no entry with 30 it get ignore and search returns other entries with 26, 29 etc
In other queries where theres actual entries with the amount I'm filtering it works
The logging is important - it basically allows us to determine definitively whether there’s a bug in your code or Convex. Both are understood to work as expected. The logs reveal all 🙂