Can SearchBlox index custom meta fields found within HTML pages?

Yes, SearchBlox will automatically index custom meta fields within HTML pages, and these custom fields will be returned as part of the search results. You can also perform fielded searches against these fields.

For example, in an HTML page, the custom meta field <meta name="section" content="WORLD"> will be automatically indexed, and you can narrow your search results by doing a search section:WORLD to get all pages that contain this meta information.

If you need the content from meta field or custom fields to be searched, add the following mapping to the mapping.json file found within the /searchblox/WEB-INF folder, restart Searchblox and then create a new collection to index the pages:

 

"section":{
"type": "string",
"copy_to": "custom_all"
},

Now you can perform searches on the content of custom field

 

 

Have more questions? Submit a request

Comments