2024-11-28 - SearchResult linkPath comparison setting: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 11: Line 11:
* LinkStep sets comparisonValue property.
* LinkStep sets comparisonValue property.


* if LinkStep has comparison then it must also have aggregate (sortResult) settings.
* 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 >/</>=/<= 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.
Line 17: Line 17:
* 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).
* 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 (which only return one id).
* 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).


[[Category:Working documents| 2024-11-28]]
[[Category:Working documents| 2024-11-28]]
[[Category:Working documents - Search Results| 2024-11-28]]
[[Category:Working documents - Search Results| 2024-11-28]]

Latest revision as of 05:55, 28 November 2024

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).