mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 13:14:07 -08:00
ca1bbcea5d
* 🎉 Initial node scaffolding
* ⚡ Implement index operations
* ⚡ Implement document operations
* 🔨 Clean up details
* 🔨 Fix casing
* 🔨 Fix indentation
* ⚡ Minor fixes
* ✏️ Update descriptions
* 🔥 Remove wrong placeholder
* ⚡ Refactor to implement specifyIndexBy
* 👕 Appease linter
* Revert "⚡ Refactor to implement specifyIndexBy"
This reverts commit 02ea0d3080
.
* 🔥 Remove unused file
* ⚡ Return source always in document:get and getAll
* ⚡ Rename to options in document:getAll
* ⚡ Rename to options in document:get
* ⚡ Send content as JSON
* ⚡ Add simplify param to document:get
* ⚡ Rename docvalue fields
* ⚡ Make document ID optional in document:index
* ⚡ Implement sendInputData
* 👕 Fix lintings
* Add define and automap to document:index
* WIP on document:update
* 🔨 Adjust document:update per feedback
* 🔥 Remove logging
* ⚡ Improve Elasticsearch node
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
44 lines
721 B
TypeScript
44 lines
721 B
TypeScript
export const indexSettings = `{
|
|
"settings": {
|
|
"index": {
|
|
"number_of_shards": 3,
|
|
"number_of_replicas": 2
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const mappings = `{
|
|
"mappings": {
|
|
"properties": {
|
|
"field1": { "type": "text" }
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const aliases = `{
|
|
"aliases": {
|
|
"alias_1": {},
|
|
"alias_2": {
|
|
"filter": {
|
|
"term": { "user.id": "kimchy" }
|
|
},
|
|
"routing": "shard-1"
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const query = `{
|
|
"query": {
|
|
"term": {
|
|
"user.id": "john"
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const document = `{
|
|
"timestamp": "2099-05-06T16:21:15.000Z",
|
|
"event": {
|
|
"original": "192.0.2.42 - - [06/May/2099:16:21:15 +0000] \"GET /images/bg.jpg HTTP/1.0\" 200 24736"
|
|
}
|
|
}`;
|