Class NotFoundIndexable
java.lang.Object
com.broadleafcommerce.search.api.domain.NotFoundIndexable
Represents and indexable that was not found when querying a service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns the identifier for this object.The raw JSON map representing the Indexable object.Any translations present for this Indexable object.getType()
Provides a type or "namespace" for documents that are co-mingled in an index.boolean
Returns true if the item was not found when querying the service, otherwise false.void
void
setType
(IndexableType type)
-
Constructor Details
-
NotFoundIndexable
public NotFoundIndexable()
-
-
Method Details
-
getId
Description copied from interface:Indexable
Returns the identifier for this object. Typically a ULID, UUID, Long, or BigDecimal. -
getType
Description copied from interface:Indexable
Provides a type or "namespace" for documents that are co-mingled in an index. Allows for filtering by type. e.g. "PRODUCT", "CATEGORY", "ORDER", "STORE", etc. -
getJsonMap
Description copied from interface:Indexable
The raw JSON map representing the Indexable object.- Specified by:
getJsonMap
in interfaceIndexable<Object>
- Returns:
- raw JSON map representing the Indexable object
-
getTranslations
Description copied from interface:Indexable
Any translations present for this Indexable object. If the indexable type is not translatable, this will be empty.- Specified by:
getTranslations
in interfaceIndexable<Object>
- Returns:
- any translations present for this Indexable object
-
isNotFound
public boolean isNotFound()Description copied from interface:Indexable
Returns true if the item was not found when querying the service, otherwise false. This indicates that the indexable was deleted. In the case that this is true, onlyIndexable.getType()
andIndexable.getId()
will return values.- Specified by:
isNotFound
in interfaceIndexable<Object>
- Returns:
-
setId
-
setType
-