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
| Property | Returns | Description |
|---|---|---|
| content | String | Full text content of the document, indexed and embedded for search matching. |
| id | String | Unique identifier for this document within its index. Blank if none was set on the builder. |
| path | String | Path of the document within the website, used to link back to the original item from search results. |
| title | String | Title of the document, indexed and embedded alongside the content for search matching. |
| type | String | Type name identifying what kind of content this document represents. |
| types | 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. |
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.