Releases: acdh-oeaw/arche-lib
Releases · acdh-oeaw/arche-lib
Allow passing SearchConfig to getResource*ById*() methods
RepoInterface::getResource*ById*() API changed The `?string $class` parameter replaced with `?SearchConfig $config` as in other `getResourcesBy*()` methods. This also allows to specify amount of metadata fetched by the `getResource*ById*()` calls
Repo::getResourceByIdsAsync(): metadata handling fix
Repo::getResourceByIdsAsync()
: remove technical search metadata before passing the meta to the resource
PHP 8.4 deprecation fixes
6.6.3 PHP 8.4 deprecation fixes
Repo::getResourceByIdsAsync(): set resource metadata from search response
Repo::getResourceByIdsAsync(): set resource metadata from search resp… …onse
SmartSearch performance tuning
SmartSearch::createFiltersTable(): materialize children ids For some reasons postgresql can not come with sane execution plans when combining get_children() (even when "with materialized"!) with other filters. Creating an explicit temporary table helps.
RepoDb searches skip resources which are not active
RepoDb::getPdoStatementBySqlQuery(): adjust the way only active resou… …rces are included in the search
Repo::begin() returns the transaction id
6.5.0 Repo::begin(): return the transaction id
SmartSearch tuning
acdhOeaw\arche\lib\SmartSearch
major rewrite of the search()
method:
- Search code split into smaller and easier to manage chunks.
- Named entities linking is now done separately for the FTS and the spatial search with results being joined only afterwords. This allows independent named entity links to FTS and spatial matches.
- Spatial search extracts geometry to make it easy to narrow down the map facet values to the ones matching the search.
- The
search()
method returnsfalse
on an empty search andtrue
otherwise.
Fix for PHP 8.3
6.4.3 RepoDb::parseMetadataReadMode(): fix for PHP 8.3
Allow PHP ^8.1
6.4.2 .github/workflows/test.yml: test also on php 8.4