Searching documents with multiple fields

Hello,

Is it possible to search multiple fields in a query. For example find all of type fruit with color red and radius above 5 cm?

I could not find any reference to this here: https://prismic.io/docs/javascript/query-the-api/query-by-a-field

Cheers,
Gabe

Hey, how have you been?!

You can perform a Fulltext search, this predicate will search for documents for a given term or terms. The fulltext predicate searches the term in any of the following fields:

  • Rich Text
  • Title
  • Key Text
  • UID
  • Select

Hey Team,

You should also maybe look in to multiple predicates to narrow down your queries:

This issue has been closed due to inactivity. Flag to reopen.