Omitting records

Algolia records are json objects. Is there a way to…

  1. omit records from search results if they are missing specific attributes or
  2. if they contain a specific attribute with a specific value, for instance: status: pending?

I am new to Algolia. I’m reading through your docs. I suspect it’s something to do with Faceting?

Hi kickbk,

First off, please be sure to read over our getting started docs, as they’re a great way to gain understanding of how Algolia works: https://www.algolia.com/doc/guides/getting-started/how-algolia-works/

As for omitting records if they are missing an attribute or value – Algolia requires a value, which means that anything null or missing must be accounted for at indexing time. Since any data that Algolia has was indexed by you, this is something you’ll be able to have control over: https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/how-to/filter-by-null-or-missing-attributes/

For specific values, filters will help out here: https://www.algolia.com/doc/api-reference/api-parameters/filters/