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

Terms Panel is strippling Field contents with space #611

Closed
galindro opened this issue Oct 25, 2013 · 7 comments
Closed

Terms Panel is strippling Field contents with space #611

galindro opened this issue Oct 25, 2013 · 7 comments

Comments

@galindro
Copy link

If you put a Field where it content has space between two words (like Credential Validation), Terms Panel will strip it into two words, displaying a wrong information into graph.

@bobrik
Copy link

bobrik commented Oct 25, 2013

Here we go again: #364.

@galindro
Copy link
Author

Sorry, but the mapping of that field is String. Its correct, because it is a string. To what kind of type I need to change the field for the search ignore spaces?

@bobrik
Copy link

bobrik commented Oct 25, 2013

        "string_field" : {
          "type" : "string",
          "index" : "not_analyzed"
        }

notice not_analyzed

@galindro
Copy link
Author

Ok. I want to change my old indexes to this new one, but I've no success:

curl -XPUT 'http://localhost:9200/logstash-2013.10.25/logs/_mapping' -d '{"logs":{"properties":{"@timestamp":{"type":"date","format":"dateOptionalTime"},"@Version":{"type":"string"},"Category":{"type":"long"},"CategoryString":{"type":"string","index":"not_analyzed"},"ComputerName":{"type":"string"},"Data":{"type":"string"},"EventCode":{"type":"long"},"EventIdentifier":{"type":"long"},"EventType":{"type":"long"},"InsertionStrings":{"type":"string"},"Logfile":{"type":"string"},"RecordNumber":{"type":"long"},"SourceName":{"type":"string"},"TimeGenerated":{"type":"string"},"TimeWritten":{"type":"string"},"Type":{"type":"string"},"User":{"type":"string"},"host":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"}}}}'
{"error":"MergeMappingException[Merge failed with failures {[mapper [CategoryString] has different index values, mapper [CategoryString] has different tokenize values, mapper [CategoryString] has different index_analyzer]}]","status":400}

@rashidkpc
Copy link
Contributor

You can not change the analyzer of an existing field, you must reindex.

@galindro
Copy link
Author

hmm ok.

I'll try with this procedure:

http://www.elasticsearch.org/blog/changing-mapping-with-zero-downtime/

@abtpst
Copy link

abtpst commented Feb 1, 2016

this does not seem to be working for fields that have an array/list type. how should i specify the analyzer for such fields?

http://stackoverflow.com/questions/35137022/elasticsearch-es-index-changes-the-mapping-when-message-is-pushed

please advise

w33ble pushed a commit to w33ble/kibana that referenced this issue Sep 13, 2018
* Add default content for Markdown

Closes elastic/kibana-canvas#526

* simplify the fix
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

5 participants
@bobrik @rashidkpc @abtpst @galindro and others