InstitutionSearchDoc.kt 781 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
20
    val canton: List<LanguageContainer>,
21
22
23
24
25
26
27
28
    val type: List<LanguageContainer>,
    val documentType: List<LanguageContainer>,

    // Search Result Display
    val keyVisualLink: String,
    val numberOfRecordSets: Int,
    val numberOfDocuments: Int
) : Schema(institutionId)