Fix "prepare_search" for empty criterion dictionnary
Add a basic example API
Fix search test