Multi-valued fields in AI Search indexed without any separator
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3470477. -->
Reported by: [vivek panicker](https://www.drupal.org/user/3540616)
Related to !52
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Multi-valued fields are currently indexed without any separator.<br>
The following screenshot shows the moment during indexing where the data is being processed and the multi-valued field is concatenated but without any spaces or any separator.<br>
<img src="https://www.drupal.org/files/issues/2024-08-27/Screenshot%20from%202024-08-27%2017-39-11.png" alt="alt"></p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>- Index any multi-valued field, like tags on article content.<br>
- Check the data in the vector database</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add code to provide a default separator. Later it can be made configurable.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>NA</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>NA</p>
<h3 id="summary-api-changes">API changes</h3>
<p>NA</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>Multi-valued fields will now be spearated with a separator.</p>
issue