Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
Elastic app search add source engine in a meta-engine in NodeJS

I'm using elastic-app-search REST API to create engine and add it in a meta engine

const axios = require("axios")
const private_key = process.env.elastic_private_key
const search_key = process.env.elastic_search_key

    async addSourceEng(metaName, source_engine) {

        try {
            const response = await axios.patch(process.env.elastic_url, {
                "name": metaName,
                "source_engines":[source_engine]
            }, {
                headers: {
                    Authorization: `Bearer ${private_key}`,
                },
            });
            return data
        } catch (error) {
            console.log(error);
            return error
        }


    }

I'm using npm package @elastic/app-search-node I've successfully created the engine but can't add it in meta.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!