You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object UserDoc : Document() {
val id by long()
val name by string()
overrideval dynamicTemplates :DynamicTemplates() {
val ids by template(
mapping = long(index =false).subFields(::IdSubFields),
match ="*_id",
)
)
}
classUserDocSource : DocSource() {
val id by UserDoc.id
val name by UserDoc.name
val ids by UserDoc.dynamicTemplates.ids
}
We should be able to filter source fields in a search query:
SearchQuery().source(UserDocSource())
The text was updated successfully, but these errors were encountered:
Having following document and its doc source:
We should be able to filter source fields in a search query:
The text was updated successfully, but these errors were encountered: