Search code examples
ibm-watsonwatsonwatson-discovery

How to get document ids from collection in Watson Discovery


Is there any way to list metadata(like id, filename etc.) about documents which belong to certain collection of Watson Discovery?

There are some API methods which need document id (like "delete document" for example), so obviously there should be a way to get this id. However I was not able to find how to do it (neither via UI nor via API).


Solution

  • Ok, the answer was obvious - to query the collection via Discovery Query Language.

    The query *.* will list all the documents in the collection.