Drupal Search API Module

To assist in connecting a Drupal website faster with the Vragen.ai platform, we have released a Drupal module. By installing and configuring this Drupal module, you can easily modify the standard search to semantic search that retrieves results from our knowledge base.

  1. search_api_vragen_ai (Official)

  2. swisnl/vragenai-drupal-search-api-module (Deprecated)

Installation Steps

  1. Install the module

    # Installeer Search API module
    composer require swisnl/vragenai-drupal-search-api-module
    
    # Zet module aan
    drush pm:enable vragen_ai
    # Installeer Search API module
    composer require swisnl/vragenai-drupal-search-api-module
    
    # Zet module aan
    drush pm:enable vragen_ai
    # Installeer Search API module
    composer require swisnl/vragenai-drupal-search-api-module
    
    # Zet module aan
    drush pm:enable vragen_ai


  2. Create a new “Search API” server with the backend: Vragen.ai

  3. Create a new index for this new server and adjust the following fields:

    1. Data sources → “Content”

    2. Bundles for Content → The content types you want indexed.

    3. Languages → Dutch

    4. d. Index items immediately: “off”
      (You can also leave this on, but you will deal with an HTTP request)

  4. Configure the fields

    We recommend rendering items to HTML.

    This ensures that Vragen.ai takes the semantics of the HTML markup into account for the new search.

    You can configure a display where you truly render only the fields you actually want indexed.

  5. Have the entire website indexed once to build the index.

Indexing Documents

If you want to index PDF documents alongside content, it is important to also enable "Media" in data sources. Then, in the settings for the datasource, select the bundle that contains the PDFs.

Frequently Asked Questions

Why do I explicitly set "Dutch" in languages?

Vragen.ai is multilingual by default. Indexing multiple languages only results in duplicate content in the index, and this decreases the accuracy of semantic search.

I have made many changes to my website, can I delete my index all at once?

We have disabled support for completely clearing the index. We found it was often executed by accident. Building all vectors is quite an extensive process. Contact us if this is still desired.

Support

By following the above steps, you should be able to install the module and perform the necessary configuration. If you have any questions, contact our support team at info@vragen.ai.