Coder Social home page Coder Social logo

Comments (2)

keehun avatar keehun commented on June 26, 2024

So when I blow away the index and rebuild everything, I do seem to get a nested type for movements_set.

However, when I search using a nested query, I see this error message:

{
  "took" : 6,
  "timed_out" : false,
  "_shards" : {
    "total" : 2,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 1,
    "failures" : [
      {
        "shard" : 0,
        "index" : ".kibana_1",
        "node" : "tDYuEcAYSUuGFY3Z3veYVg",
        "reason" : {
          "type" : "query_shard_exception",
          "reason" : "failed to create query: [nested] failed to find nested object under path [movements_set]",
          "index_uuid" : "i7BugJo4QKu600dXjIwGDQ",
          "index" : ".kibana_1",
          "caused_by" : {
            "type" : "illegal_state_exception",
            "reason" : "[nested] failed to find nested object under path [movements_set]"
          }
        }
      }
    ]
  }

I seem to get proper nested results but it's incomplete. Is it possible to ensure that the mapping is correct on all shards?

from django-elasticsearch-dsl.

keehun avatar keehun commented on June 26, 2024

Of course, it turns out to be user error. Looking at the error message closer, I realized it was complaining about the .kibana_1 index which I didn't intend to query against. When I execute my search against /index_name/_search rather than /_search, then there are no failure messages.

from django-elasticsearch-dsl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.