2024-11-28 - SearchResult linkPath comparison setting

From Izara Wiki
Jump to navigation Jump to search

Service - Search Results

Overview

Performs a comparison on the results of a SortResult request at this link step. Comparison can be >/</>=/<=/high/low/highLow and can result in multiple identifiers being saved into IntermediateIds table.

Idea

  • LinkStep sets comparison property with value one of: >, <, >=, <=, high, low, highLow.
  • LinkStep sets comparisonValue property.
  • if LinkStep has comparison then it must also have sortFields settings.
  • if comparison is >/</>=/<= flow is the same as combined+aggregate because results for all parent identifiers can be mixed together before performing the comparison, adding combined=true will make no difference to the results.
  • if comparison is high/low/highLow then must also consider combined setting, if combined=true then same as combined+aggregate. If combined=false then must perform comparison for each parent identifier (multiple SortResult requests and Comparison result for each gets saved into IntermediateId table).
  • validation in link path: if is final step and has comparison must set combined=true, unless comparison is high or low and hasMany=false (which only return one id).