Kishen Ravichandran
Kishen Ravichandran

Reputation: 89

How to query data from GAE datastore with the value escaped?

I have a entity saved in the DB with the property "Name" using value "Test".

I want to know, how to get this entity with a query with the value being lowercase.

This is the query to execute: query = "Name == test"

Upvotes: 0

Views: 49

Answers (1)

Jim Morrison
Jim Morrison

Reputation: 2887

You'll need to add a new indexed property, e.g. name_lowercase that only has the altered (lowercased) values.

Upvotes: 1

Related Questions