animeyeet
animeyeet2y 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
erquhart2y 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
lee2y 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
erquhart2y ago
Ah, thank you for clearing that up, I stand corrected!

Did you find this page helpful?