Undefined 'indexing_options' at EmbeddingBase.php
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3501821. -->
Reported by: [yago elias](https://www.drupal.org/user/3398112)
Related to !426
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Server doesnt index correctly metadata.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>- Install module <a href="https://www.drupal.org/project/ai_vdb_provider_pinecone">https://www.drupal.org/project/ai_vdb_provider_pinecone</a> as a vdb provider.<br>
- Create AI server. (see images for configuration)<br>
- Create Index for contents, and point to the vdb server, using 'Save' rather than 'Save and add fields'<br>
- Index content without configuring Fields<br>
- Check message "Successfully indexed X items."<br>
- Check Pinecone database, you will see that there is no records.</p>
<p>I'm still investigating why I'm having this issue and I know its an experimental module, but I was expecting at least to get my documents indexed.</p>
<p>The point I'm looking at is the line of code that throws this warning:</p>
<blockquote><p>Warning: Undefined array key "indexing_options" in Drupal\ai_search\Plugin\EmbeddingStrategy\EmbeddingBase->buildBaseMetadata() (line 317 of /var/www/html/web/modules/contrib/ai/modules/ai_search/src/Plugin/EmbeddingStrategy/EmbeddingBase.php)</p></blockquote>
<div class="codeblock">
<pre><span style="color: #000000"><span style="color: #0000BB"><?php<br> $index_config </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">configFactory</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #DD0000">'ai_search.index.' </span><span style="color: #007700">. </span><span style="color: #0000BB">$index</span><span style="color: #007700">-></span><span style="color: #0000BB">id</span><span style="color: #007700">())-></span><span style="color: #0000BB">getRawData</span><span style="color: #007700">();<br></span><span style="color: #0000BB">?></span></span></pre></div>
<p>apparently this doesnt return anything.</p>
issue