Class IndexModel
java.lang.Object
com.gentics.contentnode.rest.model.response.search.IndexModel
- All Implemented Interfaces:
Serializable
REST Model of a search index
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Count of indexed objectsgetName()
Index nameint
Count of objects that must be indexedint
Get pending documentsint
Number of documents queued to be indexedboolean
isFound()
True when the index existsboolean
True when the index mapping is validboolean
True when the index settings are validsetFound
(boolean found) Set existence flagsetIndexed
(int indexed) Set index countsetMappingValid
(boolean mappingValid) Set mapping validity flagSet namesetObjects
(int objects) Set object countsetPending
(int pending) Set pending documentssetQueued
(int queued) Set queued documentssetSettingsValid
(boolean settingsValid) Set settings validity flag
-
Constructor Details
-
IndexModel
public IndexModel()
-
-
Method Details
-
getName
Index name- Returns:
- name
-
setName
Set name- Parameters:
name
- name- Returns:
- fluent API
-
isFound
public boolean isFound()True when the index exists- Returns:
- existence flag
-
setFound
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
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
Set mapping validity flag- Parameters:
mappingValid
- flag- Returns:
- fluent API
-
getIndexed
public int getIndexed()Count of indexed objects- Returns:
- index count
-
setIndexed
Set index count- Parameters:
indexed
- count- Returns:
- fluent API
-
getObjects
public int getObjects()Count of objects that must be indexed- Returns:
- object count
-
setObjects
Set object count- Parameters:
objects
- count- Returns:
- fluent API
-
getQueued
public int getQueued()Number of documents queued to be indexed- Returns:
- queue size
-
setQueued
Set queued documents- Parameters:
queued
- count- Returns:
- fluent API
-
getPending
public int getPending()Get pending documents- Returns:
- pending documents
-
setPending
Set pending documents- Parameters:
pending
- documents- Returns:
- fluent API
-