removing unneeded fields from HRJ_RESOURCE table ()

This commit is contained in:
TipzCM 2024-09-13 12:33:40 -04:00 committed by GitHub
parent 699f863fe2
commit 02d38bce14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 30 deletions
hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_6_0
hapi-fhir-jpaserver-model/src/main/java/ca/uhn/fhir/jpa/model/entity

View File

@ -0,0 +1,10 @@
---
type: remove
issue: 6283
title: "Hibernate Search Fulltext fields which were unused
have been removed from indexing.
This will reduce storage usage in Lucene and Elasticsearch.
The fields that were removed are: `myNarrativeTextEdgeNGram`,
`myNarrativeTextNGram`, `myNarrativeTextPhonetic`, `myContentTextEdgeNGram`,
`myContentTextNGram`, `myContentTextPhonetic`.
"

View File

@ -119,21 +119,6 @@ public class ResourceTable extends BaseHasResource implements Serializable, IBas
searchable = Searchable.YES,
projectable = Projectable.YES,
analyzer = "standardAnalyzer")
@FullTextField(
name = "myContentTextEdgeNGram",
searchable = Searchable.YES,
projectable = Projectable.NO,
analyzer = "autocompleteEdgeAnalyzer")
@FullTextField(
name = "myContentTextNGram",
searchable = Searchable.YES,
projectable = Projectable.NO,
analyzer = "autocompleteNGramAnalyzer")
@FullTextField(
name = "myContentTextPhonetic",
searchable = Searchable.YES,
projectable = Projectable.NO,
analyzer = "autocompletePhoneticAnalyzer")
@OptimisticLock(excluded = true)
@IndexingDependency(derivedFrom = @ObjectPath(@PropertyValue(propertyName = "myVersion")))
private String myContentText;
@ -171,21 +156,6 @@ public class ResourceTable extends BaseHasResource implements Serializable, IBas
searchable = Searchable.YES,
projectable = Projectable.YES,
analyzer = "standardAnalyzer")
@FullTextField(
name = "myNarrativeTextEdgeNGram",
searchable = Searchable.YES,
projectable = Projectable.NO,
analyzer = "autocompleteEdgeAnalyzer")
@FullTextField(
name = "myNarrativeTextNGram",
searchable = Searchable.YES,
projectable = Projectable.NO,
analyzer = "autocompleteNGramAnalyzer")
@FullTextField(
name = "myNarrativeTextPhonetic",
searchable = Searchable.YES,
projectable = Projectable.NO,
analyzer = "autocompletePhoneticAnalyzer")
@OptimisticLock(excluded = true)
@IndexingDependency(derivedFrom = @ObjectPath(@PropertyValue(propertyName = "myVersion")))
private String myNarrativeText;