What @Ivan suggests will work, but it will be a storage and performance hit to Elasticsearch if you change that.
Are you trying to search for exact text? Or just certain words?
If you have not overridden the default template management, or indexed to names other than logstash-YYYY.MM.DD, then you can do exact text searches with the message.raw field.
@theuntergeek Thanks for the hint, however my template is updated and *.raw is not there anymore. As amount of data is not big, I would go with indexing the positions and offsets.
However, when I do the same search using Kibana, within the timeframe "last 15 minutes", I receive the same error:
1.
Courier Fetch: 20 of 920 shards failed.
"reason": "QueryPhaseExecutionException[[logstash-2015.11.06][5]: query[filtered((message:\"starting the new registration process\"))->BooleanFilter(+cache(@timestamp:[1446801679498 TO 1446802579498]))],from[0],size[2500],sort[<custom:\"@timestamp\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@761db3ae>!]: Query Failed [Failed to execute main query]]; nested: IllegalStateException[field \"message\" was indexed without position data; cannot run PhraseQuery (term=starting)]; "
Should it work? Or it will start to work only when the old "indexes" would be removed?
I have updated the mapping yesterday, and tried to search "today" - within the interval of 15 minutes, so, in theory it should search by the new mapping. However, the search was not done.
The index is already "new", but the error is the same.
I am not a Kibana user, can you try executing the query directly against
the cluster? Are you using time based indices and is the query against all
indices?
Double check the mapping using the API, not by what you think you might
have used.
in your mapping would make phrase queries not work.
Term vectors are another, unrelated data structure that keep an uninverted (ie regular looking) view of the documents used in various advanced applications of Elasticsearch.
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.