animeyeet
animeyeet15mo ago

Filtering vs indexing

hey does filter: (q) => q.eq("cuisine", "French"), in vectorSearch means it only doing search where cuisine is French
3 Replies
erquhart
erquhart15mo ago
Indexes limit the number of rows scanned, filters do not - I think that’s the info you’re looking for, let me know if not.
lee
lee15mo ago
filter: in a ctx.vectorSearch({filter: ...}) does reduce the amount of rows searched. In the context of ctx.query(...)...filter(...) the filter doesn't reduce the amount of rows searched.
erquhart
erquhart15mo ago
Ah, thank you for clearing that up, I stand corrected!

Did you find this page helpful?