java.lang.Object
com.gentics.contentnode.rest.model.response.search.IndexModel
All Implemented Interfaces:
Serializable

public class IndexModel extends Object implements Serializable
REST Model of a search index
See Also:
  • Constructor Details

    • IndexModel

      public IndexModel()
  • Method Details

    • getName

      public String getName()
      Index name
      Returns:
      name
    • setName

      public IndexModel setName(String name)
      Set name
      Parameters:
      name - name
      Returns:
      fluent API
    • isFound

      public boolean isFound()
      True when the index exists
      Returns:
      existence flag
    • setFound

      public IndexModel setFound(boolean found)
      Set existence flag
      Parameters:
      found - flag
      Returns:
      fluent API
    • isSettingsValid

      public boolean isSettingsValid()
      True when the index settings are valid
      Returns:
      settings validity flag
    • setSettingsValid

      public IndexModel setSettingsValid(boolean settingsValid)
      Set settings validity flag
      Parameters:
      settingsValid - flag
      Returns:
      fluent API
    • isMappingValid

      public boolean isMappingValid()
      True when the index mapping is valid
      Returns:
      mapping validity flag
    • setMappingValid

      public IndexModel setMappingValid(boolean mappingValid)
      Set mapping validity flag
      Parameters:
      mappingValid - flag
      Returns:
      fluent API
    • getIndexed

      public int getIndexed()
      Count of indexed objects
      Returns:
      index count
    • setIndexed

      public IndexModel setIndexed(int indexed)
      Set index count
      Parameters:
      indexed - count
      Returns:
      fluent API
    • getObjects

      public int getObjects()
      Count of objects that must be indexed
      Returns:
      object count
    • setObjects

      public IndexModel setObjects(int objects)
      Set object count
      Parameters:
      objects - count
      Returns:
      fluent API
    • getQueued

      public int getQueued()
      Number of documents queued to be indexed
      Returns:
      queue size
    • setQueued

      public IndexModel setQueued(int queued)
      Set queued documents
      Parameters:
      queued - count
      Returns:
      fluent API
    • getPending

      public int getPending()
      Get pending documents
      Returns:
      pending documents
    • setPending

      public IndexModel setPending(int pending)
      Set pending documents
      Parameters:
      pending - documents
      Returns:
      fluent API