Skip to content

Commit

Permalink
Adding script to make a search pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Jan 17, 2025
1 parent b9ed325 commit 3bc2065
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
26 changes: 26 additions & 0 deletions scripts/create-pipeline.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash -e

curl -X PUT http://localhost:9200/_search/pipeline/hybrid_pipeline -H "Content-type: application/json" -d'
{
"request_processors": [
{
"filter_query" : {
"tag" : "tag1",
"description" : "This processor is going to restrict to publicly visible documents",
"query" : {
"term": {
"visibility": "public"
}
}
}
}
],
"response_processors": [
{
"rename_field": {
"field": "message",
"target_field": "notification"
}
}
]
}'
3 changes: 0 additions & 3 deletions scripts/get-metrics.sh

This file was deleted.

0 comments on commit 3bc2065

Please sign in to comment.