algoliasearch to card model