Announcement Announcement Module
No announcement yet.
Disable _source field using spring data elasticsearch Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable _source field using spring data elasticsearch


    When indexing the entity(document) the default behavior is to index all the fields of the entity.
    by default source is enabled and store is disabled to all fields.
    But If I want to index some of the fields only instead of index all the fields,
    As I understood I have to disable the source and explicitly mark the fields as store yes.

    Can I disable the source for document/entity using spring data elasticsearch?
    Does it support by annotations?
    Last edited by yogya; May 26th, 2014, 10:57 PM.

  • #2
    Please, move your question to the StackOverflow - we are going to close this forum soon and rely on SO.
    We need to clean this forum (old unanswered question) before close it.

    Thanks for understanding