Search code examples
amazon-web-servicesamazon-dynamodbaws-java-sdk

DynamoDB Search with HashKey


I have table with the following structure

HashKey: Place Name
Attribute: Place Data Class

now i would like to search with Place Name,

Ex: I have below data

Newyork {lat: x.xxxxx, lng: x.xxxxxx} Newzealand {lat: x.xxxxx, lng: x.xxxxxx} IndialaPolis {lat: x.xxxxx, lng: x.xxxxxx}

when i searching with keyword new, it should return Newyork and Newzealand, I searched google for this, i found that we can get all records by the HashKey


Solution

  • Thank you @mark-b and @bruno-buccolo, as you said it is not possible to Search hashkey field

    So i created Elastic Search Indexes for that table manually and updating each time the original record updates