From 2fd852d30dc995f5cabae435af1f440ed8859c27 Mon Sep 17 00:00:00 2001 From: Jeff Mataya Date: Wed, 7 Dec 2016 02:08:18 +0300 Subject: [PATCH] Hotfix mapping to cord ref that is preventing indexing in ES (#541) * Fix mapping to cord ref that is preventing indexing in ES * Ahh, typo! --- .../elastic/mappings/admin/GiftCardTransactionsSearchView.scala | 2 +- .../mappings/admin/StoreCreditTransactionsSearchView.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/green-river/src/main/scala/consumer/elastic/mappings/admin/GiftCardTransactionsSearchView.scala b/green-river/src/main/scala/consumer/elastic/mappings/admin/GiftCardTransactionsSearchView.scala index 421bf53584..6d529d8f79 100644 --- a/green-river/src/main/scala/consumer/elastic/mappings/admin/GiftCardTransactionsSearchView.scala +++ b/green-river/src/main/scala/consumer/elastic/mappings/admin/GiftCardTransactionsSearchView.scala @@ -22,7 +22,7 @@ final case class GiftCardTransactionsSearchView()(implicit ec: EC) extends AvroT field("giftCardCreatedAt", DateType).format(dateFormat), // Order Payment field("orderPayment").nested( - field("orderReferenceNumber", StringType).analyzer("upper_cased"), + field("cordReferenceNumber", StringType).analyzer("upper_cased"), field("orderCreatedAt", DateType).format(dateFormat), field("orderPaymentCreatedAt", DateType).format(dateFormat) ), diff --git a/green-river/src/main/scala/consumer/elastic/mappings/admin/StoreCreditTransactionsSearchView.scala b/green-river/src/main/scala/consumer/elastic/mappings/admin/StoreCreditTransactionsSearchView.scala index 117572ef52..0b47d060dc 100644 --- a/green-river/src/main/scala/consumer/elastic/mappings/admin/StoreCreditTransactionsSearchView.scala +++ b/green-river/src/main/scala/consumer/elastic/mappings/admin/StoreCreditTransactionsSearchView.scala @@ -22,7 +22,7 @@ final case class StoreCreditTransactionsSearchView()(implicit ec: EC) extends Av field("storeCreditCreatedAt", DateType).format(dateFormat), // Order Payment field("orderPayment").nested( - field("orderReferenceNumber", StringType).analyzer("upper_cased"), + field("cordReferenceNumber", StringType).analyzer("upper_cased"), field("orderCreatedAt", DateType).format(dateFormat), field("orderPaymentCreatedAt", DateType).format(dateFormat) ),