php frontend for meilisearch
-
set the
$url
variable and optionally the$title
variable -
make a function called
handleItem
that accepts a single result row -
stick
require('melp.php');
at the end
for an example of this, see example.php
if you have a json object thats a dictionary instead of a list, you can rearrange it to a list by piping into this, so that meilisearch accepts it
jq -f dic2meili.jq
note that this reads the entire object into ram, so it is not suitable for massive datasets. help wanted on making this a jq stream so it can accept arbitrarily large stuff