Giza.result_tuple_to_map
You're seeing just the function
result_tuple_to_map
, go back to Giza module for more information.
Link to this function
result_tuple_to_map(result)
Take a sphinx protocol giza result from the erlang tcp implementation's tuple and return it as a map easier to navigate in Elixir.
Examples
iex> Giza.result_tuple_to_map({:giza_query_result, ...})
{:ok,
%{attrs: [{"title", 7}, {"body", 7}],
fields: ["title", "body", "tags"],
matches: [{171,
[doc_id: 171, weight: 2,
attrs: [{"title", 7}, {"body", 7}]]}],
{190,
..
}],
status: 0,
time: 0.008,
total: 19,
total_found: 19,
warnings: [],
words: [{"test", 19, 23}]
}
}