Disable _source field using spring data elasticsearch -
when indexing entity(document) default behavior index fields of entity. default source enabled , store disabled fields. if want index of fields instead of index fields, understood have disable source , explicitly mark fields store yes.
can disable source document/entity using spring data elasticsearch? support annotations?
if want prevent field being indexed can add field annotation this:
@field(store = false) private yourobject yourobject
Comments
Post a Comment