Comments (2)
Here's the code I used and I'll try to open a PR at some point:
uri = "#{Elastix.config(:uri)}/index_name/type/#{id}/_update"
body = %{
script: %{
inline: "ctx._source.tags.add(params.tag)",
lang: "painless",
params: %{
tag: %{
name: name,
}
}
}
}
{_, response} = Elastix.HTTP.post(uri, Poison.encode!(body))
from elastix.
Would be a good next feature! I'll milestone it for the next version.
from elastix.
Related Issues (19)
- Set request headers/support non-shield authorization header? HOT 1
- Timeout on HTTP Request HOT 4
- Throwing away errors HOT 2
- Custom Headers/AWS auth. HOT 4
- Update the Hex repo with latest changes HOT 3
- Document.index_new is producing the wrong url HOT 3
- Release 0.5.0 dont have Count functionality in Elastix.search module HOT 1
- Elasticsearch host with path (http://myhost/namespacedir) is stripped of path (/namespacedir)
- Support for bulk indexing HOT 3
- API to update Settings HOT 1
- Search multiple indices HOT 2
- broken with latest version of HTTPoison HOT 2
- Wrong @spec for Index.exists?
- Comparison with elasticsearch-elixir? HOT 1
- Update poison version at the hex.pm
- Elasticsearch 7 Mapping HOT 7
- Is it possible to override default HTTP lib used in elastix?
- Can not perform delete without auth options
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elastix.