# `Dagger.SearchResult`
[🔗](https://github.com/dagger/dagger/blob/v0.20.5/sdk/elixir/lib/dagger/gen/search_result.ex#L2)

Dagger.SearchResult

# `t`

```elixir
@type t() :: %Dagger.SearchResult{client: term(), query_builder: term()}
```

# `absolute_offset`

```elixir
@spec absolute_offset(t()) :: {:ok, integer()} | {:error, term()}
```

The byte offset of this line within the file.

# `file_path`

```elixir
@spec file_path(t()) :: {:ok, String.t()} | {:error, term()}
```

The path to the file that matched.

# `id`

```elixir
@spec id(t()) :: {:ok, Dagger.SearchResultID.t()} | {:error, term()}
```

A unique identifier for this SearchResult.

# `line_number`

```elixir
@spec line_number(t()) :: {:ok, integer()} | {:error, term()}
```

The first line that matched.

# `matched_lines`

```elixir
@spec matched_lines(t()) :: {:ok, String.t()} | {:error, term()}
```

The line content that matched.

# `submatches`

```elixir
@spec submatches(t()) :: {:ok, [Dagger.SearchSubmatch.t()]} | {:error, term()}
```

Sub-match positions and content within the matched lines.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
