Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

Not working for nested objects #46

Open
cordawyn opened this issue Jul 12, 2016 · 0 comments
Open

Not working for nested objects #46

cordawyn opened this issue Jul 12, 2016 · 0 comments

Comments

@cordawyn
Copy link

cordawyn commented Jul 12, 2016

It seems that the language detection does not work for the fields of nested objects.
Here's a sample mapping:

{
  mappings: {
    document: {
      properties: {
        title: {
          type: "string",
          copy_to: "l1"
        },
        l1: {
          type: "langdetect",
          store: true
        },
        chunks: {
          type: "nested",
          properties: {
            text: {
              type: "string",
              copy_to: "chunks.l2"
            },
            l2: {
              type: "langdetect",
              store: true
            }
          }
        }
      }
    }
  }
}

and the doc:

{
  title: "hello, world",
  chunks: [
    {
      text: "au revoir"
    }
  ]
}

It works for "l1" field, but it doesn't work for "l2" field. I tried the mapping without "copy_to" (just using those fields directly), to simplify the use case, but to no avail.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant