Before using Elasticsearch queries in a Viewtool, RESTful services call, etc., queries can be tested using the ES Search Portlet.
Using the ES Search Portlet
Select System -> ES Search to view the ES Search Portlet on the dotCMS back end.
Enter the full Elasticsearch query into the ES Query box, and click the Query button to fetch results. The Live checkbox can be checked to exclude unpublished content and the User ID or Email can be set to query content created by a specific dotCMS user.