Elastic Path Commerce Development

Testing the Search Server

Testing the Search Server

To determine if the searchserver web application is running, enter the following URL in your browser:

http://<host>:<port>/<path_to_searchserver>/product/select?q=*:*

If it is running, it will return an XML document similar to the following:

<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">62</int>
<lst name="params">
<str name="q">\*.\*</str>
</lst>
</lst>
<result name="response" numFound="0" start="0"/>
</response>

If the product index is populated, numFound attribute in the result element will contain a number greater than zero. For example, if the Snap It Up demo store is correctly set up, this number will be over 3000.

To test if other indexes are populated, replace product in the URL with one of the following:

  • category
  • customer
  • order
  • orderreturn
  • promotion