Can search results be returned in XML or JSON format, rather than in HTML?

Yes, use the query parameter xsl=xml or xsl=json in your HTTP request to see your results in XML or JSON format.

Example:-

http://localhost:8080/searchblox/servlet/SearchServlet?query=web&xsl=xml

http://localhost:8080/searchblox/servlet/SearchServlet?query=web&xsl=json

Have more questions? Submit a request

Comments