What is the schema for case insensitive match for string type

Hi,

Example:

in Dgraph

Name:“energy”,
Id:123

If i search name= “Energy”,it should return “energy” node details and vice versa.

what is the schema(indexing type ) i should use ,exact indexing not working.

Thanks

Hi siva,

Instead of trying

query_name ( func : eq ( name@en ,  "Energy" ) )

try

query_name ( func : allofterms ( name@en ,  "Energy" ) )
1 Like

Adding to @Neeraj answer, allofterms require only term index.