i want to get all the events which Item equal EUR=,in Kibana 4.4.1 search box,i input the filter like this Item:"ERU=",however i get the following
EUR=
EUR=Q
EUR=P
I mean i just want to get EUR= events, i check the HTML source code in chrome and find some interesting code:
I think your post got mangled somehow, specifically the = bits after "interesting code:" and "other fields are:". Can you edit your post so it displays what you were trying to show?
Hmm... that's interesting. Can you post the mapping of your Elasticsearch index here, please? You can view the mapping by calling the GET {index-name}/_mapping REST API.
Hi, after try some times, i find the only differences between "EUR=" and "XAUALL=" is there have some similar events to "EUR=" like "EUR=M" ,"EUR=W" and so on, but "XAUALL=" isn't.
I mean there is no events like "XAUALL=M" or " "XAUALL=W".
So this is Lucene bug?
This is not a bug but working as expected . Let me attempt to explain.
As indicated in your mapping, the "Item" field does not specify an analyzer to use. This means Elasticsearch (really Lucene) will use the default, which is the standard analyzer. This analyzer, amongst other things, tokenizes the input string on the = sign. So the string EUR= is analyzed into one token, eur, while the string EUR=W is analyzed into two tokens, eur and w. These analyzed tokens are stored in Lucene's inverted index, which is used at search time.
At search time, the string you want to search on goes through the same analysis process. So searching for the string EUR=W causes Lucene to search in the inverted index for eur or w. That's why you are seeing results with EUR=, EUR=W, EUR=Q, etc.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.