question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Move `message` fields to `match_only_text`

See original GitHub issue

7.14 is introducing a new field type called match_only_text which is meant as a more space-efficient variant of the text field type. Its only downsides are the following:

  • no support for scoring: queries ignore index statistics and produce constant scores,
  • span queries are unsupported,
  • phrase and intervals queries run slower.

Other than that, this field supports the same feature set as text, and like text it doesn’t support aggregations. See https://www.elastic.co/guide/en/elasticsearch/reference/master/text.html#match-only-text-field-type if you would like to know more.

We are in the process of changing our built-in templates in Elasticsearch so that message fields get mapped as match_only_text rather than text. I think we should do the same in ECS as of Elasticsearch 7.14 (when this field gets released)?

Please let me know if there’s anything I can do to help.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ebeahancommented, Aug 20, 2021

RFC 0023 is finished and the changes implemented in https://github.com/elastic/ecs/pull/1584

1reaction
ebeahancommented, May 5, 2021

Thanks, @jpountz! We had been excitedly following the progress of match_only_text to see where we could adopt it once it was ready. 😄

I agree with looking to update message in ECS as well, and I think we may even consider additional fields within ECS where it makes sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Text type family | Elasticsearch Guide [8.5] | Elastic
A field to index full-text values, such as the body of an email or the description of a product. ... Parameters for match-only...
Read more >
Elasticsearch match_only_text Field Type (For Storage ...
That's why we'll index our message field as match_only_text field type. First we set the mappings: PUT match-only-text-test. {. "mappings": {.
Read more >
text - match_only_text fields do not support sorting and ...
I would like to count and sort the number of occurred message on a field of type match_only_text. Using a DSL query the...
Read more >
How to change text custom field to rich text editor | Jira
Now access the project you are using the custom field on. Move to Project settings > Fields; Click Actions > Edit fields; Click ......
Read more >
SQLite - Quick Guide - Tutorialspoint
TABLE? Dump the database in an SQL text format. If TABLE specified, only dump tables matching LIKE pattern TABLE. 5 .echo ON ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found