You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The $reindex operation does not recreate the resourcetable index when advancedHSearchIndexing is enabled. Even though data is being indexed when writing resources using POST / PUT.
To Reproduce
Steps to reproduce the behavior:
Set up a server with elasticsearch index (using jpa starter enable: advanced_lucene_indexing, elasticsearch.*, hibernate.search.backend.type: elasticsearch)
Create some Resources (e.g. using POST / PUT)
Delete data from the elasticsearch index (or switch the options from above on at this point)
POST to /fhir/$reindex
Da a search e.g. using _contents
Expected behavior
It should return matching results after reindex, even though they have been manually removed from the index.
Environment (please complete the following information):
is being called inside the update method.
During reindex this dos not happen. reindex calls reindexSearchParameters which correctly updates the index tables but does not write the resource itself. Thus never reaching the search index logic.
The text was updated successfully, but these errors were encountered:
Describe the bug
The
$reindex
operation does not recreate theresourcetable
index whenadvancedHSearchIndexing
is enabled. Even though data is being indexed when writing resources using POST / PUT.To Reproduce
Steps to reproduce the behavior:
advanced_lucene_indexing
,elasticsearch.*
,hibernate.search.backend.type: elasticsearch
)_contents
Expected behavior
It should return matching results after reindex, even though they have been manually removed from the index.
Environment (please complete the following information):
Additional context
I did some debugging already. When updating an entity the lucene indexer creates a new elasticsearch document when
https://github.com/hapifhir/hapi-fhir/blob/master/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java#L2282
is being called inside the
update
method.During reindex this dos not happen.
reindex
callsreindexSearchParameters
which correctly updates the index tables but does not write the resource itself. Thus never reaching the search index logic.The text was updated successfully, but these errors were encountered: