From 31f6a0b22b1109cc162d323e89375deb3ba3d55c Mon Sep 17 00:00:00 2001 From: James Agnew Date: Tue, 4 Dec 2018 20:29:20 -0500 Subject: [PATCH] One more bit of logic for the reindexer --- .../fhir/jpa/model/entity/ResourceIndexedSearchParamString.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-jpaserver-model/src/main/java/ca/uhn/fhir/jpa/model/entity/ResourceIndexedSearchParamString.java b/hapi-fhir-jpaserver-model/src/main/java/ca/uhn/fhir/jpa/model/entity/ResourceIndexedSearchParamString.java index bc664473e32..9eee9e7269c 100644 --- a/hapi-fhir-jpaserver-model/src/main/java/ca/uhn/fhir/jpa/model/entity/ResourceIndexedSearchParamString.java +++ b/hapi-fhir-jpaserver-model/src/main/java/ca/uhn/fhir/jpa/model/entity/ResourceIndexedSearchParamString.java @@ -164,7 +164,7 @@ public class ResourceIndexedSearchParamString extends BaseResourceIndexedSearchP @Override @PrePersist public void calculateHashes() { - if (myHashNormalizedPrefix == null && myModelConfig != null) { + if ((myHashIdentity == null || myHashNormalizedPrefix == null || myHashExact == null) && myModelConfig != null) { String resourceType = getResourceType(); String paramName = getParamName(); String valueNormalized = getValueNormalized();