-
Notifications
You must be signed in to change notification settings - Fork 10
Description
There was some confusion about semantic of insert, update and delete concerning index and doctable.
I guess we've never really defined this, at least not written it down.
The idea of this ticket is to discuss the current state and define how it should work in the future.
Here are my thoughts for the DocTable:
DocTable
I think the document table should get a rest-like interface. This interface should expose the document table in a way that it is possible to retrieve single documents without the need of a query. Think: GetDocumentByUri
Insert would still happen with index inserts, but the interface could provide operations for update in a restful way:
- update: Updates the whole resource
- patch: Updates parts of the resource
So with update it would be possible to actually remove properties from the document (which is not possible with the current API). Patch could be used by Hayoo to update the Weights, by just patching the Weight field.