Ideas for Arc XP

add `_id` in Filterable list for Content API

we want use _id in the must_not fields in ES query to filter out some articles from the search result.

one scenario:

we have article page, and the article will be the global content.

and then we will get the article's primary section's article. for this call, the article id in global content will be passed to be filtered out in order do dedupe the article.

Currently we are using revsion.revision_id as a workaround. but revision_id will change if the article has a newer revision and that will cause the cache between pagebuilder and content source api cannot be hit.

  • Guest
  • Sep 4 2020
  • Future consideration
  • Attach files
  • Megan DeLaunay commented
    October 23, 2020 18:06

    Hi! Thanks for the idea. Generally, for this use case (excluding the current article from a search result), we recommend using the current story's URL instead. Totally agree that filtering by _id would be nice as well, so I'll move this idea to Future Consideration. Until then, please consider using URL instead. Thank you!