Domino Data Service - get document(s) by searching with field value

475 views Asked by At

I tried everything, but it woudn't work, I knew there are some similar questions out there with answers, but the questions were asked 5 years ago and aren't up to date and arent't working.

My Question is: How can I search for field values by using the Domino Data Service Rest-Api.

The url I am using: GET http(s)://{database}/api/data/documents?search=[fieldname]%20CONTAINS%20VALUE

This URl doesn't work. I get always an error.

Error:

"code":400,
"text":"Bad Request",
"message":"Database is not full text indexed.",
"type":"text",
"data":"com.ibm.domino.services.ServiceException: Database is not full text indexed.\r\n\tat...

thanks in advance!

1

There are 1 answers

0
teleman On BEST ANSWER

From the Notes desktop or Domino Designer, open the Database Properties for the database. Click on the Search tab:

Document Properties box Search tab

Click the Create Index button to create the index, or find an administrator who has permission to do it.