bjonnh
04/26/2019, 8:02 PMbjonnh
04/26/2019, 8:15 PM@SolrDocument(solrCoreName ="indexedcitation")
data class IndexedCitation (
@Id
@Indexed(name = "id", type = "string")
private val id: String? = null,
@Indexed(name = "title", type = "string")
private val title: String? = null
)
bjonnh
04/26/2019, 8:15 PMbjonnh
04/26/2019, 8:51 PM@SolrDocument(solrCoreName ="indexedcitation")
class IndexedCitation {
@Id
@Indexed(name = "id", type = "string")
private var id: String? = null
@Indexed(name = "title", type = "string")
private var title: String? = null
fun getId(): String? {
return id
}
fun setId(id: String?) {
this.id = id
}
fun getTitle(): String? {
return title
}
fun setTitle(title: String?) {
this.title = title
}
}
bjonnh
04/26/2019, 10:08 PMthanksforallthefish
04/29/2019, 6:36 AMspring-data-solr
works, but you can try to annotate with @field:Id @field:Indexed
etc etc to force the annotation to be placed on the fieldbjonnh
04/29/2019, 8:36 PM