Elastic search Query issue with case sensitive

Elastic search show result opposite to case requested

Below i have requested for lowercaset "test*" but it give output as upper case

Example :
{"query":{"bool":{"must":{"wildcard":{"partnerLocationCode":{"value":"test*"}}}}}}

output: hits": {

  • "total": 10,
  • "max_score": 1,
  • "hits": [
    • {
      • "_index": "partner_location",
      • "_type": "com.customer.model.customer.PartnerLocationEntity",
      • "_id": "1102241",
      • "_score": 1,
      • "_source": {
        • "id": "1102241",
        • "legalName": "TESTFGM Internal testing account 456",
          **** "partnerLocationCode": "TESTFGM",***
        • "lastUpdatedDate": "2019-07-16T07:00:00Z",
        • "partnerLocation": {
          • "partner_account": {
            • "PartnerAccountCode": "TESTFGM-A",
            • "PartnerAccountName": "TESTFGM Internal testing account test",
            • "PartnerAccount": {
              • "address": {
                • "city": "Honk",
                • "country": "MISC-COUNTRY-CA",
                • "address": "1234 Fake Fake",
                • "postalCode": "V7C1A1"},
              • "contact": {
                • "firstName": "ContactJoe",
                • "lastName": "ContactJoe",
                • "refId": "TU-ACCOUNTCONTACT-2444851"}

This is answer: https://stackoverflow.com/a/52752846/8312657

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.