I am new to the ELK stack, and am in need of some help with querying with Elasticsearch. In essence what I am trying to do is perform a query like such:
select * from source where (message = abc-def OR def-ghi OR abc-jkl OR ...)
The problem I am having though is I can get to a point where I can successfully find matches for just one hyphenated tern, but not multiples. I was wondering if there is a query related solution that wouldn't involve me skipping analysing the field, or changing the mappings?
Thanks for the quick reply dadoonet. The match phrase helped me match on one term. I ended up following the idea in the "Combining Filters" guide which - with the match phrase - seems to have solved my problem.
Hmm, I guess I haven't run into a case where they are flipped because I don't have that in my test data. Any suggestions on how to fix my match phrase? Do I need to create a custom analyser? (I'm not entirely familiar with the analyser / mapping features)
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.