The title field not found if machine name is different
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3553711. -->
Reported by: [calmforce](https://www.drupal.org/user/915444)
>>>
<h3 id="summary-problem-motivation">Problem</h3>
<p>The bug is found in EmbeddingBase.php, function groupFieldData(), lines 181-182. The call $field->getFieldIdentifier() returns the field machine name that can be set to anything during the Index creation, and it will not be equal to $label_key in this case. It should be the call $field->getPropertyPath() which will always return 'title' for the node title field, same as $label_key.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4>
<p>1. Specify machine name for the title field to be different from 'title', e.g. 'entity_title'.<br>
2. Index a node.<br>
3. Verify that 'content' column in your Vector DB doesn't have the node title prepended to a chunk text.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Replace <strong>$field->getFieldIdentifier() </strong>on the line 181 of the file EmbeddingBase.php (ver. 1.2.1) by <strong>$field->getPropertyPath()</strong></p>
issue