From: Jason Boyer Date: Fri, 24 Sep 2021 13:12:20 +0000 (-0400) Subject: LP1831803: Remove unused data types X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ab080c44847986358ad6b41a09c446fdf442096e;p=evergreen%2Ftadl.git LP1831803: Remove unused data types The search.search_args and search.search_result types appear to have only been used in combination with search.query_parser_qts, so they can also be retired. Signed-off-by: Jason Boyer Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/300.schema.staged_search.sql b/Open-ILS/src/sql/Pg/300.schema.staged_search.sql index 5e2bbee415..b3b41f9af1 100644 --- a/Open-ILS/src/sql/Pg/300.schema.staged_search.sql +++ b/Open-ILS/src/sql/Pg/300.schema.staged_search.sql @@ -61,10 +61,6 @@ CREATE TABLE search.relevance_adjustment ( ); CREATE UNIQUE INDEX bump_once_per_field_idx ON search.relevance_adjustment ( field, bump_type ); --- XXX not required in 3.0+ ? -CREATE TYPE search.search_result AS ( id BIGINT, rel NUMERIC, record INT, total INT, checked INT, visible INT, deleted INT, excluded INT, badges TEXT, popularity NUMERIC ); -CREATE TYPE search.search_args AS ( id INT, field_class TEXT, field_name TEXT, table_alias TEXT, term TEXT, term_type TEXT ); - CREATE OR REPLACE FUNCTION search.facets_for_record_set(ignore_facet_classes text[], hits bigint[]) RETURNS TABLE(id integer, value text, count bigint) AS $f$ SELECT id, value, count