bitemyapp / bitemyapp/bloodhound

Support more update options

Open
#116 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Haskell
Stars
435
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Currently `updateDocument` only uses `"doc"` option to partially replace document.
But ElasticSearch also supports [these](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html):
- `"script"`;
- `"upsert"`;
- `"script_upsert"`;
- `"detect_noop"`;
- `"doc_as_upsert"`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the updateDocument entry point and inspect how the existing "doc" option is represented and tested. Compare its request construction with the linked Elasticsearch update API; done means supporting script, upsert, script_upsert, detect_noop, and doc_as_upsert alongside doc.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, haskell
Domain
backend-api-design, search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.