# HNSWQueryOptions

> **Class** in `langchain_postgres`

📖 [View in docs](https://reference.langchain.com/python/langchain-postgres/v2/indexes/HNSWQueryOptions)

## Signature

```python
HNSWQueryOptions(
    self,
    ef_search: int = 40,
)
```

## Extends

- `QueryOptions`

## Constructors

```python
__init__(
    self,
    ef_search: int = 40,
) -> None
```

| Name | Type |
|------|------|
| `ef_search` | `int` |


## Properties

- `ef_search`

## Methods

- [`to_parameter()`](https://reference.langchain.com/python/langchain-postgres/v2/indexes/HNSWQueryOptions/to_parameter)
- [`to_string()`](https://reference.langchain.com/python/langchain-postgres/v2/indexes/HNSWQueryOptions/to_string)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-postgres/blob/9d819182da7e3fb1b815e6c9a6b7c2cd1eb4bc0e/langchain_postgres/v2/indexes.py#L114)