'Jhipster 6.10.5 Elasticsearch doesn't work for relationship after insert, the same work after update

The search doesn't work after inserting a new entity, the same search work after updating the entity. it seems after the updating entity the indexing has been updated.

Model

  • Entity A
  • Entity B
  • Relationship oneToMany A to B

Steps to reproduce

  1. Log into backoffice
  2. Create the entity B with reference to A with id 100 Save is ok
  3. Try to search 100, no found result --> search doesn't work
  4. Open entity B, update and save
  5. Try to search 100 and found 1 result, --> search work

The issue occurs only for the relationship, if I search for a normal attribute is working fine.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source