From 13ea1d15b9416bed758d559df9d77e2c340f21cd Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 23 Oct 2018 18:18:24 -0400 Subject: [PATCH] bib-search indexing wip Signed-off-by: Bill Erickson --- Open-ILS/examples/elastic-search-example.json | 15 +- Open-ILS/examples/opensrf.xml.example | 12 + Open-ILS/src/perlmods/lib/OpenILS/Elastic.pm | 181 +++++++++ .../src/perlmods/lib/OpenILS/Elastic/BibSearch.pm | 407 +++++++++++++++++++++ .../perlmods/lib/OpenILS/Utils/ElasticSearch.pm | 405 -------------------- .../sql/Pg/upgrade/XXXX.schema.elastic-search.sql | 133 +++++++ Open-ILS/src/support-scripts/elastic-index.pl | 15 +- .../support-scripts/test-scripts/elastic-search.pl | 117 ++++++ 8 files changed, 861 insertions(+), 424 deletions(-) create mode 100644 Open-ILS/src/perlmods/lib/OpenILS/Elastic.pm create mode 100644 Open-ILS/src/perlmods/lib/OpenILS/Elastic/BibSearch.pm delete mode 100644 Open-ILS/src/perlmods/lib/OpenILS/Utils/ElasticSearch.pm create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.schema.elastic-search.sql create mode 100755 Open-ILS/src/support-scripts/test-scripts/elastic-search.pl diff --git a/Open-ILS/examples/elastic-search-example.json b/Open-ILS/examples/elastic-search-example.json index 3621f96b6d..b5f4eaee43 100644 --- a/Open-ILS/examples/elastic-search-example.json +++ b/Open-ILS/examples/elastic-search-example.json @@ -114,24 +114,19 @@ "type": "nested", "properties": { "status": { - "type": "integer", - "index": "false" + "type": "integer" }, "circ_lib": { - "type": "integer", - "index": "false" + "type": "integer" }, "location": { - "type": "integer", - "index": "false" + "type": "integer" }, "circulate": { - "type": "boolean", - "index": "false" + "type": "boolean" }, "opac_visible": { - "type": "boolean", - "index": "false" + "type": "boolean" } } } diff --git a/Open-ILS/examples/opensrf.xml.example b/Open-ILS/examples/opensrf.xml.example index 156562b82b..b29f6b950b 100644 --- a/Open-ILS/examples/opensrf.xml.example +++ b/Open-ILS/examples/opensrf.xml.example @@ -145,6 +145,18 @@ vim:et:ts=4:sw=4: 1 + + + + Pg + localhost + 5432 + evergreen + evergreen + evergreen + Elastic Search Indexer + +