Skip to main content

Using Custom Fields in AddSearch

Custom fields in AddSearch let you add specialized attributes to your search index, enabling more precise filtering and better content discovery beyond the standard filters. By mapping additional data from your pages into custom fields, you can tailor search results to match specific criteria relevant to your content or products.

What Are Custom Fields?

Custom fields are named data points with associated values extracted from your site's markup, such as meta tags or HTML elements. These values are included in search results and can be used to filter or sort those results.

How to Use Custom Fields

You can use custom fields to improve search relevance, especially when your site contains diverse or complex content. For example:

  • E-commerce: Filter products by attributes like color, size, or category.
  • Content sites: Organize articles or resources by topic, format, or audience.

By defining custom fields that reflect your site's structure or inventory, you make it easier for users to find exactly what they need.

Defining Custom Fields

Custom fields support various data types including dates, integers, keywords, and text. They can be added through meta tags or other markup on your pages. Once configured, you can use these fields to filter search results or influence their ranking.

Learn more about defining custom fields: Custom Field Documentation.

  • Custom fields are included in the API response, allowing you to show additional details about search results.
  • You can filter or rank results based on custom fields by passing parameters to the AddSearch API.
  • Custom fields also integrate with search suggestions to improve user guidance.

Refer to the API guide here: AddSearch API Reference

And learn about custom search suggestions: Search Suggestions.

Boosting Custom Fields

You can assign numeric weights to custom fields to prioritize them in search ranking. This setting requires assistance from AddSearch support.

Contact support for more details: AddSearch Support.

Additional Resources