herd icon indicating copy to clipboard operation
herd copied to clipboard

Manage BDef indexing and view index status

Open nateiam opened this issue 7 years ago • 0 comments

As a Herd Administrator I want to trigger BDef indexing and be able to view index status so I can have visibility and confidence around the indexing process.

Currently there is one GET endpoint that triggers an index build. But then there is not any way to know how the indexing is proceeding or when it completes. This story introduces new endpoints for a more rich interface to the indexing process.

Acceptance Criteria

  • POST endpoint exists that triggers creation of index
    • If index already exists or build is already in progress, return appropriate error code and message
    • Else return unique ID for index and start index build process using name from global config
    • Index processing should log when it starts, ends, and every 100 rows it indexes
  • GET endpoint that obtains status
    • Required input of index ID
    • Return following about index: index ID, index name, start time, end time, documents created, last update time
  • DELETE endpoint that removes existing index
    • Remove index named in global config file

nateiam avatar Mar 14 '17 16:03 nateiam