1) Get the latest groovy script bundle and upload to vm. http://confluence.ri.thesearchagency.com/display/CIBUILDS/OPS+Scripts+BETA+-+Build+35 2) Create a reseller realm to test with. 3) check the elastic search console and observe a new, empty search index is present 3) Create a merchant 4) Create an order with a location extension. Add a value for StreetLine2 that will confuse elastic search into thinking it could be a date value. For example: 3-2-1 5) Save the order 6) Re-start Tomcat 7) Create a new merchant 8) Create a new order with a location extension. This time enter something like “Suite 122” in street line #2 9) Save the order. Order should fail to save, and the aml.log should report an error like: … [campaignDataList.attributes.streetAddress2]]; nested: MapperParsingException[failed to parse date field [], tried both date format [dateOptionalTime], and timestamp number]; nested: IllegalArgumentException[Invalid format: ""]; ] 10) check the elastic search console and observe that the index is now borked with a “.temp” suffix 11) Execute the order-search-sync.groovy script:
12) check the elastic search console and observe that the index is now re-created w/o the temp suffix 13) Create new/ edit existing orders using either input format and saving of order should work again.