Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Search lower bound parameter

hayden-t edited this page Apr 21, 2017 · 3 revisions

Currently the lower_bound option is part of a code block that adds an extra filter to your filters that checks if internalIdNumber is greater than lower_bound.

Searcher.prototype.generateLowerBoundFilter = function() {
  searchFilterData = {};
  searchFilterData[this.SEARCH_FILTER_NAME_KEY]     = 'internalidnumber';
  searchFilterData[this.SEARCH_FILTER_OPERATOR_KEY] = 'greaterthan';
  searchFilterData[this.SEARCH_FILTER_VALUE_KEY]    = this.lowerBound;
  searchFilterData[this.SEARCH_FILTER_JOIN_KEY]     = null;

  lowerBoundFilterObject = this.getSearchFilterObject(searchFilterData)
  this.searchFilters[this.lowerBoundFilterIndex] = lowerBoundFilterObject;
}
Clone this wiki locally