Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for nested fields for Date field in the Time oriented option. #16

Open
pradeeppattamatta opened this issue Apr 8, 2023 · 1 comment
Assignees

Comments

@pradeeppattamatta
Copy link

Is your feature request related to a problem? Please describe.
In the time-oriented reindex algorithm, if the Date field that is meant to be used is part of the nested object, there will be a "The date field doesn't exists" error.

Describe the solution you'd like
The nested fields should be considered for time oriented algorithm.

Describe alternatives you've considered
None.

Additional context
None.

@dbeast-co
Copy link
Owner

For a clear understanding: when you talk about a "nested" object, do you mean the array of the object, that is defined as "nested" in the index mapping like:

{
  "mappings": {
    "properties": {
      "logs": {
        "type": "nested",
        "properties": {
          "timestamp": {
            "type": "date"
          },
          "field": {
            "type": "keyword"
          }
        }
      }
    }
  }
}

with the documents like:

{
  "logs": [
    {
      "timestamp": "2023-04-08T00:00:00",
      "field": "Some text"
    },
    {
      "timestamp": "2023-04-08T00:00:00",
      "field": "Some text"
    }
  ]
}

or the inner object with mapping like:

{
  "mappings": {
    "properties": {
      "logs": {
        "type": "nested",
        "properties": {
          "timestamp": {
            "type": "date"
          },
          "field": {
            "type": "keyword"
          }
        }
      }
    }
  }
}

and the document like:

{
  "log": {
    "timestamp": "2023-04-08T00:00:00",
    "field": "Some text"
  }
}

@dbeast-co dbeast-co assigned dbeast-co and tankha and unassigned dbeast-co Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants