Does SearchBlox support faceted search results?

Yes. SearchBlox supports out-of-the-box faceted search results. The facets allow you to filter data through multiple paths and different ordering and also click on any combination of facets to get the desired results.

The SearchBlox faceted search can be accessed through the following URL:
localhost:8080/searchblox/plugin/index.html

Reference: https://developer.searchblox.com/docs/faceted-search

Adding a Facet in Searchblox:

SearchBlox supports Collection, Title, Description, Language, Author, and Subject as facets. The last two facets (author and subject) are applicable for only pdf files.
facet.js is the configuration file that provides options that can be configured to provide search results as required. The path for the facet.js file, after placing the plugin folder in SearchBlox, is ../webapps/searchblox/plugin/facet.js. To add a new facet filter, define the field name, display name and the size of the filter values to be shown in facet.js. Facet filters can be string, number, or date types. Except for the predefined facets such as keywords, title, description, size, or date, if you need add more custom facets, you can add them in facet.js (eg: facet field: "group").

  • If you need a meta field as facet, then the field has to be mapped in mapping.json. For CSV, database, MongoDB, and AWS collections, the values need to be mapped in csv.json, jdbc.json, mongodb.json, amazonS3.json respectively here: ../webapps/searchblox/WEB-INF/.
  • If you need to add a facet field for type number or date, the field needs to be updated in ../webapps/searchblox/WEB-INF/mapping.json for web and file collections. For CSV, database, MongoDB and AWS collections, the values need to be mapped in csv.json, jdbc.json, mongodb.json, amazonS3.json respectively here: ../webapps/searchblox/WEB-INF/

Reference: https://developer.searchblox.com/docs/custom-fields-in-search

 



To learn more about SearchBlox please visit our developer document site https://developer.searchblox.com/docs

Have more questions? Submit a request

Comments