deconst / content-service

An API for storing, indexing and retrieving documentation
MIT License
4 stars 9 forks source link

Don't index envelopes that specify "unsearchable: true". #63

Closed smashwilson closed 8 years ago

smashwilson commented 8 years ago

Allow individual metadata envelopes to opt out of full-text search indexing. This is useful for:

  1. Content like the RSS or Atom feeds.
  2. Content that's being prepared, but is not yet mapped.

Note that until I get to deconst/deconst-docs#133, you won't be able to retroactively remove something from the search index by flipping unsearchable to true on existing documents. We'd have to manually delete them from Elasticsearch.

I think this is the last bit of deconst/deconst-docs#187.