OneSource for SearchBlox
SearchBlox OneSource is a replacement for Google Search Appliance's OneBox feature. This feature allows you to submit a search query to an external source and output the search results XML in SearchBlox.
Add the following OneSource configuration into the ../webapps/searchblox/WEB-INF/web.xml file in SearchBlox:
<filter>
<filter-name>OneSource Filter</filter-name>
<filter-class>com.searchblox.search.OneFilter</filter-class>
<init-param>
<param-name>onesource/people</param-name>
<param-value>https://www.example.com/gsa_xml_services/dept/</param-value>
</init-param>
<init-param>
<param-name>onesource/office</param-name>
<param-value>https://www.example1.com/gsa_xml_services/offices/</param-value>
</init-param>
<init-param>
<param-name>onesource/maps</param-name>
<param-value>https://maps.example2.com/api/gsa</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>OneSource Filter</filter-name>
<url-pattern>/onesource/*</url-pattern>
</filter-mapping>
Then OneSource can be accessed using the following links
https://localhost:8443/searchblox/onesource/dept?query=finance
https://localhost:8443/searchblox/onesource/maps?query=ridge
https://localhost:8443/searchblox/onesource/offices?query=international
Updated over 3 years ago