Skip to content

Commit

Permalink
removing unneeded fields from HRJ_RESOURCE table (hapifhir#6284)
Browse files Browse the repository at this point in the history
  • Loading branch information
TipzCM authored Sep 13, 2024
1 parent 699f863 commit 02d38bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -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`.
"
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 02d38bc

Please sign in to comment.