# SearchItem

> **Class** in `langgraph.store`

📖 [View in docs](https://reference.langchain.com/python/langgraph.store/base/SearchItem)

Represents an item returned from a search operation with additional metadata.

## Signature

```python
SearchItem(
    self,
    namespace: tuple[str, ...],
    key: str,
    value: dict[str, Any],
    created_at: datetime,
    updated_at: datetime,
    score: float | None = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `namespace` | `tuple[str, ...]` | Yes | Hierarchical path to the item. |
| `key` | `str` | Yes | Unique identifier within the namespace. |
| `value` | `dict[str, Any]` | Yes | The stored value. |
| `created_at` | `datetime` | Yes | When the item was first created. |
| `updated_at` | `datetime` | Yes | When the item was last updated. |
| `score` | `float \| None` | No | Relevance/similarity score if from a ranked operation. (default: `None`) |

## Extends

- `Item`

## Constructors

```python
__init__(
    self,
    namespace: tuple[str, ...],
    key: str,
    value: dict[str, Any],
    created_at: datetime,
    updated_at: datetime,
    score: float | None = None,
) -> None
```

| Name | Type |
|------|------|
| `namespace` | `tuple[str, ...]` |
| `key` | `str` |
| `value` | `dict[str, Any]` |
| `created_at` | `datetime` |
| `updated_at` | `datetime` |
| `score` | `float \| None` |


## Properties

- `score`

## Methods

- [`dict()`](https://reference.langchain.com/python/langgraph.store/base/SearchItem/dict)

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/1a9baae9592e0c21336f6e09c891ba75481fd657/libs/checkpoint/langgraph/store/base/__init__.py#L118)