Skip to content

SmartSearch tuning

Choose a tag to compare

@zozlak zozlak released this 15 Mar 07:35
· 11 commits to v5 since this release

acdhOeaw\arche\lib\SmartSearch changes:

  • Default weight value can be specified per facet (with a defaultWeight property)
  • The search() method accepts additional int $matchesLimit = 10000 parameter limiting the number of resources matching the search. The limit is applied after sorting the matches by initial weight so only less relevant matches are skipped. It allows avoiding collecting facet values for unmanageably high number of resources.
  • search() skips resources for which at least facet weight is 0. This allows to exclude resources having a given facet value from the search.