Skip to content

Full text search tuning

Choose a tag to compare

@zozlak zozlak released this 23 Aug 20:52
· 119 commits to master since this release
  • acdhOeaw\arche\lib\SearchConfig::$ftsProperty now properly handles id property (as set in the config schema mapping) and the acdhOeaw\arche\lib\SearchConfig::FTS_BINARY value.
  • acdhOeaw\arche\lib\SearchConfig::$fts* properties can now be arrays. This allows to specify multiple FTS highlighting queries and their settings.
  • To make it possible to determine which highlighted result comes from which property and highlighting query, a broader set of technical RDF triples is now returned by the acdhOeaw\arche\lib\RepoDb::getPdoStatementBySqlQuery():
    <{resourceId}> <{repoCfg}$.schema.searchFts{N}> "higlighted result"
    <{resourceId}> <{repoCfg}$.schema.searchFtsProperty{N}> <RDFpropertyOfTheCorrespondingHihglightedResult>
    <{resourceId}> <{repoCfg}$.schema.searchFtsQuery{N}> "FTShighlightQueryOfTheCorrespondingHihglightedResult"
    
  • acdhOeaw\arche\lib\SearchConfig::readFtsConfigFromTerms(array<acdhOeaw\arche\lib\SearchTerm> $terms) method added allowing to fill in acdhOeaw\arche\lib\SearchConfig::$ftsProperty and acdhOeaw\arche\lib\SearchConfig::$ftsQuery properties based on provided search terms.
  • acdhOeaw\arche\lib\SearchTerm::OPERATOR_FTS constant added