Excluding content from the Free text search results

Using the Admin UI, you can specify exclusion of specific content from getting indexed in to the Free text search.

Prerequisites

  • You have configured Admin UI and Persona-based UI successfully.
  • You have started and configured Free text search services (pimcollector and indexer) successfully.
  • Hazelcast and Elasticsearch started and configured successfully.

Excluding items of a catalog

To exclude all the items of a catalog from getting indexed into the Elasticsearch, proceed as follows:
  1. Log in to the Admin UI.
  2. In the Modules tab on the left, right-click and select Catalog Attributes. The right pane displays the Catalog Detail for '<catalog name>' pane.
  3. In the Catalog Detail for '<catalog name>' section, add an attribute with the following value, and click Add.
    Exclude from Free Text Search=True
    The custom attribute gets associated to the catalog.
Important:
  • If you add or remove Exclude from Free Text Search from the Catalog attributes, reschedule full indexing else the catalog might still appear in the search results.

Excluding attribute

To exclude an attribute, proceed as follows:
  1. Log in to the Admin UI.
  2. Go to Data model manager > Spec console and Attribute collection > Spec console.
  3. For the spec you want to modify, click Edit.
  4. Click <attribute name> that you want to exclude.
  5. Select Exclude from Free Text Search from the list.
  6. Click Select a type as the spec node type to associate with the selected attribute. The right pane now displays Exclude from Free Text Search attribute.
  7. To enable, select the Exclude from Free Text Search checkbox, and click Save.
Important:
  • Children attributes (Grouping or Multi occurrence) if any, also get excluded.
  • If you select or clear Exclude from Free Text Search checkbox for an attribute, reschedule full indexing else the attribute might still appear in the search results.
  • Searching for excluded attributes might return an invalid result.