Skip to content

Semantic: Insert Update Delete #81

@chrisreu

Description

@chrisreu

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions