Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

In-Portal is capable of searching across whole Catalog data (e.g. categories, links, products, etc.). Each searchable entity has:

  • site-wide unique identifier - the "ResourceId" column
  • type - the "ItemType" setting is associated unit config

Using above information it's possible to count found entities of a given type. When displaying found entities the "ItemType" isn't taken into account, because "ResourceId" column is unique.

Unfortunately such approach results in incorrect counters on custom projects, where items without site-wide unique identifier are found and we're forced to use they auto-increment primary key value, which overlaps for multi-entity searches.

Solution

  1. in the "\kCatDBEventHandler::getTypeClauses" method, when joining "search_result" table also apply "search_result.ItemType = ..." filter in the "ON" clause
  2. in the "\CategoriesEventHandler::SetCustomQuery" method, when joining "search_result" table also apply "search_result.ItemType = ..." filter in the "ON" clause

Related Tasks

  • No labels