I have aws dynamo db table as follows.

Now I want to filter it as follows.

For that I used the following code and i get 0 results in my code.what's wrong with my code.how to fix it?
public ScanResult getAllMemos() {
ScanRequest scanRequest = new ScanRequest()
.withTableName(DB_NAME)
.withFilterExpression("contains(imgName,thumbnail)");
return util.getAmazonDynamoDBClient(getActivity()).scan(scanRequest);
}
Without filter expression I get all results.
"contains(imgName, :search)"and then additionally callwithExpressionAttributeValues("thumbnail")on theScanRequest, see docs.aws.amazon.com/amazondynamodb/latest/developerguide/… for an example. By the way: you know thatscanoperations should really not be used in any production environment, it defeats the purpose of dynamodb as a key-value store, it actually is quite "expensive" when your db contains a few million records.:searchthis gives error and cannot passStringtowithExpressionAttributeValues.it expects a mapexpressionAttributeValues.put("imgName", new AttributeValue().withS("thumbnail"));like this?":imgName"if you use"contains(imgName, :imgName)"