please include a fully fledged reproducable example of how you index your documents, and also how you are writing your query, as this is crucial for getting a good answer.
My first hunch would be that the queries are combined as an OR query and that you query ends up being a query for mail OR example OR com which will return more hits than example OR com - but this is all just an assumption.
I simply indexed it using this command: curl -XPOST -H "Content-Type: application/json" http://localhost:9200/example/1/_create -d '{"text": "mail.example.com"}'
I guess what I want to know is, is there a way for both search results to match the same documents? Should I just pre-process the query to maybe replace it with something like `*example.com?
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.