Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

109
Vistas
Opensearch nested multi_match query not working properly

I'm trying to run a multi_match nested query using javascript and opensearch. Here is what the query looks like:

const { body } = await client.search({
        index,
        body: {
            size: 25,
            query: {
                nested: {
                    path: "questions",
                    query: {
                        multi_match: {
                            query: searchText,
                            fields: ["question", "comments", "label", "user_answer"],
                        },
                    },
                },
            },
        },
    });

and here is my schema:

 questions: {
    type: "nested",
    properties: {
        question: { type: "text" },
        comments: { type: "text" },
        label: { type: "text" },
        user_answer: { type: "text" },
    },
}

I have other queries that are working properly and the actual search is just returning no hits, so I know the problem isn't with opensearch and the setup. It seems that I just am doing the query wrong? Any help on this would be greatly appreciated, I can't find examples on SO that work in my case and the documentation isn't helping me much with this issue.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda