objectbox-java icon indicating copy to clipboard operation
objectbox-java copied to clipboard

Querying with Turkish characters

Open bdeppy opened this issue 7 years ago • 2 comments

@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 ?

bdeppy avatar Jul 11 '18 06:07 bdeppy

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

greenrobot avatar Jul 11 '18 07:07 greenrobot

Also see #46 about ordering.

greenrobot-team avatar Sep 08 '20 14:09 greenrobot-team

Moving the discussion about improving support for other languages to #46.

greenrobot-team avatar Nov 15 '22 06:11 greenrobot-team