Skip to content

Commit

Permalink
added db index for aggregatedVia
Browse files Browse the repository at this point in the history
  • Loading branch information
SrdjanStevanetic committed Apr 22, 2024
1 parent caf6a7a commit 0878840
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static eu.europeana.entitymanagement.definitions.EntityRecordFields.ENTITY_EXACT_MATCH;
import static eu.europeana.entitymanagement.definitions.EntityRecordFields.ENTITY_SAME_AS;
import static eu.europeana.entitymanagement.definitions.EntityRecordFields.ENTITY_AGGREGATED_VIA;
import static eu.europeana.entitymanagement.vocabulary.WebEntityFields.BASE_DATA_EUROPEANA_URI;
import static eu.europeana.entitymanagement.vocabulary.WebEntityFields.ID;
import java.util.ArrayList;
Expand All @@ -25,7 +26,8 @@

@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
@dev.morphia.annotations.Entity("EntityRecord")
@Indexes({@Index(fields = {@Field(ENTITY_EXACT_MATCH)}), @Index(fields = {@Field(ENTITY_SAME_AS)})})
@Indexes({@Index(fields = {@Field(ENTITY_EXACT_MATCH)}), @Index(fields = {@Field(ENTITY_SAME_AS)}),
@Index(fields = {@Field(ENTITY_AGGREGATED_VIA)})})
@EntityListeners(EntityRecordWatcher.class)
public class EntityRecord {

Expand Down

0 comments on commit 0878840

Please sign in to comment.