Added a new match mode. With the existing match modes it was impossible to perform...
authorn.hoffmann <n.hoffmann@localhost>
Wed, 8 Dec 2010 17:56:01 +0000 (17:56 +0000)
committern.hoffmann <n.hoffmann@localhost>
Wed, 8 Dec 2010 17:56:01 +0000 (17:56 +0000)
Also fixes #1381

taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java

index a3fe790d59eb151599313b287103cee0ffe7ee8f..ee3fa7da39308103a41bbd5ebf772a04c26f9ed7 100644 (file)
@@ -281,10 +281,8 @@ public class PreferencesUtil implements IPreferenceKeys{
                                "titleCache", "name", "name.$", "synonymRelations.relatedTo.*"));
                
                // DEFAULT VALUES               
-               // match mode default only
-               configurator.setMatchMode(eu.etaxonomy.cdm.persistence.query.MatchMode.BEGINNING);
-               // i don't know what happens to sec at the moment
-               configurator.setSec(null);
+               // match mode is a simple like, actually all other match modes are kind of bogus
+               configurator.setMatchMode(eu.etaxonomy.cdm.persistence.query.MatchMode.LIKE);
                // we set page number and size here as this should always be unlimited
                configurator.setPageNumber(0);
                // TODO currently limit results to 10000