Skip to content

Commit

Permalink
Bump to 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtaylor committed Sep 7, 2022
1 parent 7ee4aed commit e0ba995
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/snap/multi/multi.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ defmodule Snap.Multi do
This returns a `Snap.Multi.Response`, with a `searches` field containing a
list of responses.
{:ok, %Snap.Multi.Response{searches: [
{"query-1", %Snap.SearchResponse{...}},
{"query-2", %Snap.SearchResponse{...}}
]}}
Each query can be named, using any value you like, by passing an `id: "foo"`
into `Multi.add`. The list in `Snap.Multi.Response` contains tuple pairs where
the first value is the ID and the second is the result of the query.
Expand Down
6 changes: 5 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Snap.MixProject do
use Mix.Project

@github_url "https://github.com/breakroom/snap"
@version "0.7.0"
@version "0.8.0"

def project do
[
Expand Down Expand Up @@ -102,6 +102,10 @@ defmodule Snap.MixProject do
Snap.Bulk.Action.Update,
Snap.Bulk.Action.Delete
],
"Multi search API": [
Snap.Multi,
Snap.Multi.Response
],
"Response structs": [
Snap.SearchResponse,
Snap.Hits,
Expand Down

0 comments on commit e0ba995

Please sign in to comment.