From 35a92f8ea8e869c30999df96315047ebdcb7fbb6 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Wed, 12 Jun 2024 14:35:47 -0400 Subject: [PATCH] Add shingled matcher, 6-7 index --- config/qa.env | 4 ++-- lib/resources.js | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config/qa.env b/config/qa.env index e62ebe85..b26ff765 100644 --- a/config/qa.env +++ b/config/qa.env @@ -1,7 +1,7 @@ # Greg built self-hosted production domain: ENCRYPTED_ELASTICSEARCH_URI=AQECAHh7ea2tyZ6phZgT4B9BDKwguhlFtRC6hgt+7HbmeFsrsgAAAHgwdgYJKoZIhvcNAQcGoGkwZwIBADBiBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDIYpOz/BbRlJZUul7gIBEIA1idumQ6fdf/j5/pzF4t96MGGH/eV1gD4WCyLUnScgNYqtRNK0ajRO6XVroswsrJtgCwUerDM= -# resources-2024-06-05: -ENCRYPTED_RESOURCES_INDEX=AQECAHh7ea2tyZ6phZgT4B9BDKwguhlFtRC6hgt+7HbmeFsrsgAAAHIwcAYJKoZIhvcNAQcGoGMwYQIBADBcBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDNFBC7jsxsE37l/bKQIBEIAvmz7hlPnSygznyXxiX9x/YWFBbeLDrKPBpNqwunQDTd1Y1TgS1eDdqJbBrK3avWc= +# resources-2024-06-07: +ENCRYPTED_RESOURCES_INDEX=AQECAHh7ea2tyZ6phZgT4B9BDKwguhlFtRC6hgt+7HbmeFsrsgAAAHIwcAYJKoZIhvcNAQcGoGMwYQIBADBcBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDGCD4H/9mg45Xe52jgIBEIAv+c8zw6vCnaLRRNvM0d9bsh97ZB7pwjn8Zim93cYTc0oKGs9G52G3HsJsGT855N8= ENCRYPTED_SCSB_URL=AQECAHh7ea2tyZ6phZgT4B9BDKwguhlFtRC6hgt+7HbmeFsrsgAAAH8wfQYJKoZIhvcNAQcGoHAwbgIBADBpBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDBKllElmWYLxGOGopQIBEIA8JJyKde/8m8iCJGKR5D8HoTJhXHeyvw9eIDeuUNKiXLfJwoVz+PDAZSxkCQtM9O91zGhXbe3l6Bk1RlYJ ENCRYPTED_SCSB_API_KEY=AQECAHh7ea2tyZ6phZgT4B9BDKwguhlFtRC6hgt+7HbmeFsrsgAAAGMwYQYJKoZIhvcNAQcGoFQwUgIBADBNBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDNw8KXkyN8HvtjAX0gIBEIAgX+XG2fxTj6kSchrd/dfHB05KU5pkT0LtPxUTuNCXoLc= diff --git a/lib/resources.js b/lib/resources.js index 4fcdda8b..65636f12 100644 --- a/lib/resources.js +++ b/lib/resources.js @@ -1300,6 +1300,14 @@ const buildElasticQuery = function (params) { } } }, + { + match_phrase: { + 'title.shingle': { + query: querySansQuotes, + boost: 75 + } + } + }, { term: { 'title.keywordLowercasedStripped': {