SearchBlox

SearchBlox Developer Hub

Welcome to the SearchBlox developer hub. Here you will find comprehensive guides and documentation to help you start working with SearchBlox as quickly as possible, as well as support if you get stuck. Let's jump right in!

Guides

Using Filters, you can restrict search to URL or domain, meta fields, file type or content type, language, size ranges, intervals based on date, etc. Filtered search can be implemented for a subset of a collection, or on a group of collections.

Filters can be directly implemented from queries. The different filter options are listed below.

Filters can be given as URL params or facet filters using UI. Follow the links below for more information.
http://developer.searchblox.com/docs/search-parameters
http://developer.searchblox.com/docs/faceted-search

Filters for URL

You can use this filter to restrict results based on the URL, domain or subpaths.
If you want results with the domain name www.bbc.com, the query can be given as
Ex:
url:"en.wikipedia.org"

To filter the results based on domain, you can also search subpaths:
Ex:
url:"/travel"

If you dont want results from a particular domain or subpath, us the prefix - in the beginning of the field
Ex:
-url:"en.wikipedia.org"
or
-url:"/travel"

Example URLs
http://localhost:8080/searchblox/servlet/SearchServlet?query=* AND url:"en.wikipedia.org"
or
http://localhost:8080/searchblox/servlet/SearchServlet?query=*&filter=url:"en.wikipedia.org"

Filters for Language

Filtering can be done based on language using the following filters:
Ex:
language:en
for filtering results in English

language:ja
for filtering results in Japanese

Please refer to this page for different language codes.
http://developer.searchblox.com/docs/search-parameters

Example URL
http://localhost:8080/searchblox/servlet/SearchServlet?query=* AND language:en
or
http://localhost:8080/searchblox/servlet/SearchServlet?query=*&filter=language:ja

Filters for File Types

File types can be filtered using the following filters:
contenttype:pdf
for filtering pdf files

contenttype:word
for filtering word files

For the file formats supported, refer to
http://developer.searchblox.com/docs/supported-file-formats.

Example URL
http://localhost:8080/searchblox/servlet/SearchServlet?query=* AND contenttype:pdf
or
http://localhost:8080/searchblox/servlet/SearchServlet?query=*&filter=contenttype:word

Filters for Meta Tags

Based on meta tags indexed, filtering can be done using the following filter parameters.
For example, if the meta tag is category, you can use filter:
category:fruit

Example URL
http://localhost:8080/searchblox/servlet/SearchServlet?query=* AND category:fruit
or
http://localhost:8080/searchblox/servlet/SearchServlet?query=*&filter=category:fruit

Filters can also be given for title, keywords, description and any other fields indexed in collections in SearchBlox.

Filters


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.