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.
Enter 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
http://localhost:8080/searchblox/onesource/dept?query=finance
http://localhost:8080/searchblox/onesource/maps?query=ridge
http://localhost:8080/searchblox/onesource/offices?query=international
Updated over 4 years ago