Filter fields on list documents?

Is it possible to filter the list of returned fields when GETting ..../documents.json? I need a way to get a list of documents that are in the index without having to download the complete content of every document.

Hey @Sophistifunk, I unfortunately don't think that's possible.

You could probably get a smaller payload using the search endpoint with an empty query, and specifying that you only want the "id" field to be returned:

{
    "engine_key": "a4Al5UBHiDCDgqKawekA",
    "q": "",
    "fetch_fields":{
      "national-parks":["id"]
    },
    "sort_field":{"national-parks":"id"},
    "sort_direction":{"national-parks":"asc"}
}

This appears to work, thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.