logo

English

Search

Search & Feedback

    const response = await client.search({
        query: 'building',
        itemURLSchema: 'https://www.my-website.com/all-tasks/all-items/{id}'
    });

    /**
    * when your users see the results, you register an event like onclick, that will 
    *  a feedback request to Lableb in case the user clicked on it.
    * 
    * here's an example in case the first item get clicked by the user
    */
    client.searchFeedbackFromURL(response.results[0].feedbackUrl);