removing unneeded fields from HRJ_RESOURCE table (#6284)
This commit is contained in:
parent
699f863fe2
commit
02d38bce14
|
@ -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`.
|
||||
"
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue