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

Switch to kibana4.5 but not_analyzed tax is not working #6739

Closed
kibanauser opened this issue Apr 1, 2016 · 1 comment
Closed

Switch to kibana4.5 but not_analyzed tax is not working #6739

kibanauser opened this issue Apr 1, 2016 · 1 comment

Comments

@kibanauser
Copy link

I created an index with a few not_analyzed fields, but when I try to create a pie chart or I do a simple search it says that my fields are analyzed.

I post

curl -XPUT localhost:9200/wwwpp_modsec_log12 -d'
{
"wwwpp_modsec_log12" : {
"aliases" : { },
"mappings" : {
"wwwpp_modsec_log12" : {
"properties" : {
"accuracy" : {
"type" : "string"
},
"client" : {
"type" : "string"
},
"data" : {
"type" : "string"
},
"datetime" : {
"type" : "string"
},
"file" : {
"type" : "string"
},
"hostname" : {
"type" : "string"
},
"id" : {
"type" : "string"
},
"iso8601" : {
"type" : "date",
"format" : "strict_date_optional_time||epoch_millis"

      },
      "line" : {
        "type" : "string"
      },
      "maturity" : {
        "type" : "string"
      },
      "message1" : {
        "type" : "string"
      },
      "message2" : {
        "type" : "string"
      },
      "msg" : {
        "type" : "string"
      },
      "pid" : {
        "type" : "string"
      },
      "rev" : {
        "type" : "string"
      },
      "severity" : {
        "type" : "string"
      },
      "mtag1" : {
        "type" : "string",
        "index":    "not_analyzed"
      },
      "mtag2" : {
        "type" : "string",
        "index":    "not_analyzed"
      },
      "mtag3" : {
        "type" : "string",
        "index":    "not_analyzed"
      },
      "mtag4" : {
        "type" : "string",
        "index":    "not_analyzed"
      },
      "mtag5" : {
        "type" : "string",
        "index":    "not_analyzed"
      },
      "type" : {
        "type" : "string"
      },
      "unique_id" : {
        "type" : "string"
      },
      "muri" : {
        "type" : "string",
        "index":    "not_analyzed"
      },
      "ver" : {
        "type" : "string"
      }
    }
  }
},
"settings" : {
  "index" : {
    "creation_date" : "1459531992288",
    "uuid" : "wA-K3lWaQJe5MR4T2y1whg",
    "number_of_replicas" : "1",
    "number_of_shards" : "5",
    "version" : {
      "created" : "2030099"
    }
  }
},
"warmers" : { }

}
}'

And when I query the index I get

curl -XGET 'http://localhost:9200/wwwpp_modsec_log12?pretty'
{
"wwwpp_modsec_log12" : {
"aliases" : { },
"mappings" : {
"wwwpp_modsec_log12" : {
"properties" : {
"accuracy" : {
"type" : "string"
},
"client" : {
"type" : "string"
},
"data" : {
"type" : "string"
},
"datetime" : {
"type" : "string"
},
"file" : {
"type" : "string"
},
"hostname" : {
"type" : "string"
},
"id" : {
"type" : "string"
},
"iso8601" : {
"type" : "date",
"format" : "strict_date_optional_time||epoch_millis"
},
"line" : {
"type" : "string"
},
"maturity" : {
"type" : "string"
},
"message1" : {
"type" : "string"
},
"message2" : {
"type" : "string"
},
"msg" : {
"type" : "string"
},
"mtag1" : {
"type" : "string"
},
"mtag2" : {
"type" : "string"
},
"mtag3" : {
"type" : "string"
},
"mtag4" : {
"type" : "string"
},
"mtag5" : {
"type" : "string"
},
"muri" : {
"type" : "string"
},
"pid" : {
"type" : "string"
},
"rev" : {
"type" : "string"
},
"severity" : {
"type" : "string"
},
"type" : {
"type" : "string"
},
"unique_id" : {
"type" : "string"
},
"ver" : {
"type" : "string"
}
}
}
},
"settings" : {
"index" : {
"wwwpp_modsec_log12" : {
"settings" : {
"index" : {
"creation_date" : "1459531992288",
"uuid" : "wA-K3lWaQJe5MR4T2y1whg",
"number_of_replicas" : "1",
"number_of_shards" : "5",
"version" : {
"created" : "2030099"
}
}
},
"mappings" : {
"wwwpp_modsec_log12" : {
"properties" : {
"rev" : {
"type" : "string"
},
"muri" : {
"type" : "string",
"index" : "not_analyzed"
},
"maturity" : {
"type" : "string"
},
"mtag2" : {
"type" : "string",
"index" : "not_analyzed"
},
"client" : {
"type" : "string"
},
"mtag1" : {
"type" : "string",
"index" : "not_analyzed"
},
"mtag4" : {
"type" : "string",
"index" : "not_analyzed"
},
"mtag3" : {
"type" : "string",
"index" : "not_analyzed"
},
"data" : {
"type" : "string"
},
"mtag5" : {
"type" : "string",
"index" : "not_analyzed"
},
"hostname" : {
"type" : "string"
},
"line" : {
"type" : "string"
},
"severity" : {
"type" : "string"
},
"pid" : {
"type" : "string"
},
"ver" : {
"type" : "string"
},
"type" : {
"type" : "string"
},
"message1" : {
"type" : "string"
},
"msg" : {
"type" : "string"
},
"message2" : {
"type" : "string"
},
"unique_id" : {
"type" : "string"
},
"id" : {
"type" : "string"
},
"file" : {
"type" : "string"
},
"iso8601" : {
"type" : "date",
"format" : "strict_date_optional_time||epoch_millis"
},
"datetime" : {
"type" : "string"
},
"accuracy" : {
"type" : "string"
}
}
}
}
},
"creation_date" : "1459538378998",
"uuid" : "mpeLjRrrReaMKdAOhaMO9Q",
"number_of_replicas" : "1",
"number_of_shards" : "5",
"version" : {
"created" : "2030099"
}
}
},
"warmers" : { }
}
}

Using elastic search 2.2

@rashidkpc
Copy link
Contributor

Try going to Settings -> Indices -> SomeIndex -> Yellow button

That will refresh the cached mapping and should let you see your new fields. If you have any other questions, please join us to http://discuss.elastic.co

jbudz pushed a commit that referenced this issue May 15, 2023
## Summary

`eui@77.2.2` ⏩ `eui@79.0.1`

🦴 The primary changes in this upgrade are around the deprecated
`EuiLoadingContent` being removed in favor of `EuiSkeletonText`.
- Most instances have been a [direct swap of
usage](327626a),
but [some replacements were a bit more
opinionated](e6ceb36)
as I saw them as potential to take advantage of `EuiSkeletonText`'s
syntactical sugar and screen reader announcements for when state
switches to loaded.

---

## [`79.0.1`](https://github.com/elastic/eui/tree/v79.0.1)

**Bug fixes**

- Fixed broken push `EuiFlyout` behavior
([#6764](elastic/eui#6764))


## [`79.0.0`](https://github.com/elastic/eui/tree/v79.0.0)

- Updated all `EuiSkeleton` components with new props that allow for
more control over screen reader live announcements:
`announceLoadingStatus`, `announceLoadedStatus`, and `ariaLiveProps`
([#6752](elastic/eui#6752))
- Improved keyboard accessibility in `EuiPageHeader` by ensuring the
right side menu items come into focus from left to right.
([#6753](elastic/eui#6753))

**Breaking changes**

- Removed deprecated `EuiLoadingContent`. Use the `EuiSkeleton`
components instead. ([#6754](elastic/eui#6754))


## [`78.0.0`](https://github.com/elastic/eui/tree/v78.0.0)

- Improved the contrast ratio of `EuiCheckbox`, `EuiRadio`, and
`EuiSwitch` in their unchecked states to meet WCAG AA guidelines.
([#6729](elastic/eui#6729))
- Added React Testing Library `*ByTestSubject` custom commands to
`within()`. RTL utilities can be imported from
`@elastic/eui/lib/test/rtl`.
([#6737](elastic/eui#6737))
- Updated `EuiAvatar` to support a new letter `casing` prop that allow
customizing text capitalization
([#6739](elastic/eui#6739))
- Updated `EuiFocusTrap` to support the `gapMode` prop configuration
(now defaults to `padding`)
([#6744](elastic/eui#6744))

**Bug fixes**

- Fixed inconsistency in `EuiSearchBar`'s AND/OR semantics between DSL
and query string generation
([#6717](elastic/eui#6717))
- Fixed `EuiFieldNumber`'s native browser validity detection causing
extra unnecessary rerenders
([#6741](elastic/eui#6741))
- Fixed the `scrollLock` property on `EuiFocusTrap` (and other
components using `EuiFocusTrap`, such as `EuiFlyout` and `EuiModal`) to
no longer block scrolling on nested portalled content, such as combobox
dropdowns ([#6744](elastic/eui#6744))

**Breaking changes**

- `EuiAvatar`s with the default `user` type will now default to
capitalizing all initials in uppercase
([#6739](elastic/eui#6739))

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jasonrhodes pushed a commit that referenced this issue May 17, 2023
## Summary

`eui@77.2.2` ⏩ `eui@79.0.1`

🦴 The primary changes in this upgrade are around the deprecated
`EuiLoadingContent` being removed in favor of `EuiSkeletonText`.
- Most instances have been a [direct swap of
usage](327626a),
but [some replacements were a bit more
opinionated](e6ceb36)
as I saw them as potential to take advantage of `EuiSkeletonText`'s
syntactical sugar and screen reader announcements for when state
switches to loaded.

---

## [`79.0.1`](https://github.com/elastic/eui/tree/v79.0.1)

**Bug fixes**

- Fixed broken push `EuiFlyout` behavior
([#6764](elastic/eui#6764))


## [`79.0.0`](https://github.com/elastic/eui/tree/v79.0.0)

- Updated all `EuiSkeleton` components with new props that allow for
more control over screen reader live announcements:
`announceLoadingStatus`, `announceLoadedStatus`, and `ariaLiveProps`
([#6752](elastic/eui#6752))
- Improved keyboard accessibility in `EuiPageHeader` by ensuring the
right side menu items come into focus from left to right.
([#6753](elastic/eui#6753))

**Breaking changes**

- Removed deprecated `EuiLoadingContent`. Use the `EuiSkeleton`
components instead. ([#6754](elastic/eui#6754))


## [`78.0.0`](https://github.com/elastic/eui/tree/v78.0.0)

- Improved the contrast ratio of `EuiCheckbox`, `EuiRadio`, and
`EuiSwitch` in their unchecked states to meet WCAG AA guidelines.
([#6729](elastic/eui#6729))
- Added React Testing Library `*ByTestSubject` custom commands to
`within()`. RTL utilities can be imported from
`@elastic/eui/lib/test/rtl`.
([#6737](elastic/eui#6737))
- Updated `EuiAvatar` to support a new letter `casing` prop that allow
customizing text capitalization
([#6739](elastic/eui#6739))
- Updated `EuiFocusTrap` to support the `gapMode` prop configuration
(now defaults to `padding`)
([#6744](elastic/eui#6744))

**Bug fixes**

- Fixed inconsistency in `EuiSearchBar`'s AND/OR semantics between DSL
and query string generation
([#6717](elastic/eui#6717))
- Fixed `EuiFieldNumber`'s native browser validity detection causing
extra unnecessary rerenders
([#6741](elastic/eui#6741))
- Fixed the `scrollLock` property on `EuiFocusTrap` (and other
components using `EuiFocusTrap`, such as `EuiFlyout` and `EuiModal`) to
no longer block scrolling on nested portalled content, such as combobox
dropdowns ([#6744](elastic/eui#6744))

**Breaking changes**

- `EuiAvatar`s with the default `user` type will now default to
capitalizing all initials in uppercase
([#6739](elastic/eui#6739))

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
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

2 participants