From dfca15395e26b310d5114a1d4a86110ae60d2a73 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 9 Feb 2021 19:05:10 -0300 Subject: [PATCH] claim id is also a keyword --- lbry/wallet/server/db/elastic_search.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lbry/wallet/server/db/elastic_search.py b/lbry/wallet/server/db/elastic_search.py index 6c9409b01..d6a1e09db 100644 --- a/lbry/wallet/server/db/elastic_search.py +++ b/lbry/wallet/server/db/elastic_search.py @@ -43,6 +43,12 @@ class SearchIndex: "mappings": { "properties": { "claim_id": { + "fields": { + "keyword": { + "ignore_above": 256, + "type": "keyword" + } + }, "type": "text", "index_prefixes": { "min_chars": 1,