How to make a search query using @prismicio/client library

Hi,

I'm using the @prismicio/client library in a react project.
Knowing from this post, there are two kinds of queries:
1. Queries to retrieve the API Master Ref
2. Search queries

By reading examples in this documentation provided by you, I can only get responses with a high response time falling between 200ms~1000ms, which I believe to be a query type number 1.
The question here is, how can I make a search query with a much faster response time (with CDN) using the @prismicio/client library?

Thanks

Hello @phillip_pan

Welcome to the Prismic community, and thanks for posting this question to us.

If I understood your question correctly, you want to apply a search document for a given term or terms.
You can use the Fulltext predicate to search a document for a given term or terms.
Please find complete guidelines in the fulltext search article.

Let me know if you have any other questions.

Thanks,
Priyanka