objectbox-java
objectbox-java copied to clipboard
Querying with Turkish characters
@Entity
public class City {
@Id
public long id;
public String ;
}
For city entries like these İzmir Ankara İstanbul Çorum
While querying like
boxStore.boxFor(City.class).query().contains(City_.name, "I"); --> want to get İzmir and İstanbul
boxStore.boxFor(City.class).query().contains(City_.name, "C"); -->want to get Çorum
is there a collation or some way to get results like this case ?
At this point, you would have to supply all international variations with an or condition. Alternatively you could maintain an artificial property that uses only a-z.
PS.: startsWith would be faster than contains
Also see #46 about ordering.
Moving the discussion about improving support for other languages to #46.