/** * If enabled, the server will support the use of :contains searches, * which are helpful but can have adverse effects on performance. * <p> * Default is <code>false</code> (Note that prior to HAPI FHIR * 3.5.0 the default was <code>true</code>) * </p> * <p> * Note: If you change this value after data already has * already been stored in the database, you must for a reindexing * of all data in the database or resources may not be * searchable. * </p> */ public boolean isAllowContainsSearches() { return this.myModelConfig.isAllowContainsSearches(); }
public static long calculateHashNormalized(ModelConfig theModelConfig, String theResourceType, String theParamName, String theValueNormalized) { /* * If we're not allowing contained searches, we'll add the first * bit of the normalized value to the hash. This helps to * make the hash even more unique, which will be good for * performance. */ int hashPrefixLength = HASH_PREFIX_LENGTH; if (theModelConfig.isAllowContainsSearches()) { hashPrefixLength = 0; } return hash(theResourceType, theParamName, left(theValueNormalized, hashPrefixLength)); }
/** * If enabled, the server will support the use of :contains searches, * which are helpful but can have adverse effects on performance. * <p> * Default is <code>false</code> (Note that prior to HAPI FHIR * 3.5.0 the default was <code>true</code>) * </p> * <p> * Note: If you change this value after data already has * already been stored in the database, you must for a reindexing * of all data in the database or resources may not be * searchable. * </p> */ public boolean isAllowContainsSearches() { return this.myModelConfig.isAllowContainsSearches(); }