yassine safraouiY

Order of applying filter and withSearchIndex in queries

Hello, I have a question about writing queries, there is this section in the docs(https://docs.convex.dev/search/text-search#other-filtering) talking about how filtering works with search queries, my question is that should we apply the withSearchIndex first and then the filter like written in the docs or it doesn't matter. My guess is that it doesn't matter because this is the builder pattern but it also depends on your implementation so I'm asking just to be sure. Thanks.
image.png
Run search queries over your Convex documents
Full Text Search | Convex Developer Hub
Was this page helpful?