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, there is a custom meta field <meta name="section" content="WORLD">. It 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 searchable, add the following mapping to the collection mapping file(mapping<collection-ID>.json) found within the /ROOT/WEB-INF/mappings/collections folder, restart Searchblox and then create a new collection to index the pages:
"section":{
"type": "text",
"copy_to": "custom_all"
},
Now you can perform searches on the content of the custom field.
To learn more on custom fields in search read: Custom fields in Search in SearchBlox
Comments
1 comment
Where is the mapping.json file located when using the cloud version of Searchblox?
Please sign in to leave a comment.