Skip to content

Commit

Permalink
Add shingled matcher, 6-7 index
Browse files Browse the repository at this point in the history
  • Loading branch information
nonword committed Jun 12, 2024
1 parent 1174576 commit 35a92f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/qa.env
Original file line number Diff line number Diff line change
@@ -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=
Expand Down
8 changes: 8 additions & 0 deletions lib/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,14 @@ const buildElasticQuery = function (params) {
}
}
},
{
match_phrase: {
'title.shingle': {
query: querySansQuotes,
boost: 75
}
}
},
{
term: {
'title.keywordLowercasedStripped': {
Expand Down

0 comments on commit 35a92f8

Please sign in to comment.