Language metadata is not added to indexed items
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3554899. -->
Reported by: [fraserthompson](https://www.drupal.org/user/3277234)
Related to !980 !15 !14
>>>
<p>[Tracker]<br>
<strong>Update Summary: </strong>[One-line status update for stakeholders]<br>
<strong>Short Description: </strong>[One-line issue summary for stakeholders]<br>
<strong>Check-in Date: </strong>MM/DD/YYYY<br>
<em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br>
[/Tracker]</p>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>When items are indexed they are given a handful of metadata fields for the entity id etc, but nothing for the language. This makes filtering queries by language difficult for providers. </p>
<p>On the other hand, vector databases are by nature language agnostic as the semantic meaning in one language or another can be the same/similar vectors, so restricting to language like e.g. search api database is not necessarily desired. Anything we do here should not be forced on the user, only set up as a default.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add the language of the item when indexing as an auto-created field. Allow the user to subsequently delete it or change it to e.g. ignore. Sensible default essentially but not required...</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<ol>
<li>☑ Merge request</li>
</ol>
<h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3>
<p>N/A</p>
issue