InstitutionSearchDoc.kt 838 Bytes
Newer Older
1
2
package org.memobase.model

Jonas Waeber's avatar
Jonas Waeber committed
3
import com.fasterxml.jackson.annotation.JsonIgnore
4
5
6
7
import com.fasterxml.jackson.annotation.JsonInclude

@JsonInclude(JsonInclude.Include.NON_EMPTY)
data class InstitutionSearchDoc(
Jonas Waeber's avatar
Jonas Waeber committed
8
    @JsonIgnore
9
10
    val institutionId: String,
    val published: Boolean,
11

12
13
    // Full Text Search
    val name: LanguageContainer,
14
15
16
17
    val description: LanguageContainer,
    val city: List<LanguageContainer>,
    val address: List<String>,
    val postalCodes: List<String>,
18
19

    // Facettes
Jonas Waeber's avatar
Jonas Waeber committed
20
21
22
    val canton: List<FacetContainer>,
    val type: List<FacetContainer>,
    val documentType: List<FacetContainer>,
23
24
25
26

    // Search Result Display
    val keyVisualLink: String,
    val numberOfRecordSets: Int,
Jonas Waeber's avatar
Jonas Waeber committed
27
28
29
    val numberOfDocuments: Int,
    val teaserColor: String,
    val teaserColorComputed: String
30
) : Schema(institutionId)