Immutable, plain implementation of IndexItem holding a document's fields ready to be indexed for vector search. Normally built by IndexItemBuilder rather than constructed directly.

Implements: IndexItem


Properties

PropertyReturnsDescription
contentStringFull text content of the document, indexed and embedded for search matching.
idStringUnique identifier for this document within its index. Blank if none was set on the builder.
pathStringPath of the document within the website, used to link back to the original item from search results.
titleStringTitle of the document, indexed and embedded alongside the content for search matching.
typeStringType name identifying what kind of content this document represents.
typesList<String>Asset type tags recorded against this document, used to restrict which users can see it in search results. May be null or empty if the document is not restricted.

Inherited from IndexItem

Methods

asMap()

Returns: Map<String,Object>

Builds a plain map of this item's title, content, type, path and types, keyed by property name. Used by the search service to assemble the document body sent to the index, before the embedding vectors are added.


Methods

getId()

Returns: String

Unique identifier for this document within its index. Blank if none was set on the builder.

getTitle()

Returns: String

Title of the document, indexed and embedded alongside the content for search matching.

getContent()

Returns: String

Full text content of the document, indexed and embedded for search matching.

getType()

Returns: String

Type name identifying what kind of content this document represents.

getPath()

Returns: String

Path of the document within the website, used to link back to the original item from search results.

getTypes()

Returns: List<String>

Asset type tags recorded against this document, used to restrict which users can see it in search results. May be null or empty if the document is not restricted.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.