Nijin Narayanan
Nijin Narayanan

Reputation: 2279

Get the Records which contains a word (Case insensitive) in Gql?

Is it possible to write a single Gql Query for retrieving the record which contains a searching string?

Data store Contains following Records:

addax
Crest
Addrest
Drest
Armrest
admix

I need to get the Records which contains the word "Rest" (Case insensitive)

Upvotes: 1

Views: 335

Answers (2)

Jayesh
Jayesh

Reputation: 235

You can get some full text search features using SearchableModel

Upvotes: 0

Chris Farmiloe
Chris Farmiloe

Reputation: 14185

Full-Text-Search is not supported in AE yet, it's on the roadmap so we can look forward to it.

If you are just trying to match single words in a case insensitive way, you could store all your words in a ListProperty, and ensure they are always stored in lowercase. That way you could easily query for them in a case insensitive mannor.

Upvotes: 2

Related Questions