Gets all the attributes associated with the specified indexed document.
defget_attributes(self,document_key):...
Parameter
Type
Description
document_key
str
The document key.
Returns: list[str]: The attributes associated with the specified indexed document.
Example
fromgroupdocs.search.scalingimportIndexer# `indexer` should be an initialized Indexer instance# `doc_key` is the key of the document whose attributes you want to retrieveattributes=indexer.get_attributes(doc_key)print("Attributes:",attributes)
Aliases
These names call get_attributes too, limited to the overloads listed.