It’s me again with more info 
Now after fixing TextID
and having remarkable less unneeded indexing, I found out the connection (except TextID
which is now fixed) which causes reindexing: Provider
entity and Manufacturer
entity.
First item on the list is the one being updated. The provider for this item is “Wolt Zagreb”.
All other items that does not need reindexing has the same Provider
in their provider list.
And the specific thing with Provider
is that it has many annotations as a class property:
When I remove a price from given article which means no Provider
is given, then all articles from the same Manufacturer
are indexed.
@IndexedEmbedded @Reference @JsonBackReference @ManyToOne
private Provider provider;
@ManyToOne(fetch = FetchType.LAZY)
@IndexedEmbedded
@AssociationInverseSide(inversePath =
@ObjectPath(@PropertyValue(propertyName = "articles"))
)
private Manufacturer manufacturer;
Note: Few minutes ago tried with 6.2.2 and it has the same “bug” - if we are allow to call it a bug.
Log snippet while updating article “Tapir 0,33 l”:
### Article route(): Indexing ID 21104 'Tapir 0,33 l' [Wolt Zagreb]
### Article route(): Indexing ID 21094 'Tortilja valja zbilja!' [Wolt Zagreb, Wolt Zagreb, Glovo Zagreb]
### Article route(): Indexing ID 21095 'Njoke, vi�e od OK!' [Glovo Zagreb, Wolt Zagreb]
### Article route(): Indexing ID 21096 'Pastu pesto �elim ?esto!' [Wolt Zagreb, Glovo Zagreb]
### Article route(): Indexing ID 21097 'Bolonjez, mesa bez!' [Glovo Zagreb, Wolt Zagreb]
### Article route(): Indexing ID 21098 'Ave, Cezar Tofu!' [Wolt Zagreb, Glovo Zagreb]
### Article route(): Indexing ID 21099 'Sushirrito se naljutio!' [Wolt Zagreb, Glovo Zagreb]
### Article route(): Indexing ID 21100 'Sushirrito se zazelenio!' [Wolt Zagreb, Glovo Zagreb]
### Article route(): Indexing ID 21101 'Tortilja vege izobilja!' [Wolt Zagreb]
### Article route(): Indexing ID 21102 'Chia desert, Golden milk ekspert!' [Wolt Zagreb]
### Article route(): Indexing ID 21103 'Kornja?a 0,33 l' [Wolt Zagreb]
### Article route(): Indexing ID 15947 'Zagi ?izi' [Wolt Zagreb, Sve najbolje]
### Article route(): Indexing ID 18653 'Margherita verde (large)' [Wolt Zagreb, Caruso catering & pizza]
### Article route(): Indexing ID 15946 'Zagi salama' [Sve najbolje, Wolt Zagreb]
### Article route(): Indexing ID 18651 '�okica (velika)' [Wolt Zagreb, Caruso catering & pizza]
### Article route(): Indexing ID 18652 'Samoborka (large)' [Wolt Zagreb]
### Article route(): Indexing ID 16194 'Zagi ?izi gurme' [Sve najbolje, Wolt Zagreb]
### Article route(): Indexing ID 18648 'Rambo Vegan (large)' [Wolt Zagreb, Caruso catering & pizza]
### Article route(): Indexing ID 15945 'Zagi kebab' [Sve najbolje, Wolt Zagreb]
### Article route(): Indexing ID 2059 'Tofu burger' [Vegehop, Glovo Zagreb, Wolt Zagreb]
### Article route(): Indexing ID 16195 'Vege purger' [Wolt Zagreb, Sve najbolje]
### Article route(): Indexing ID 18650 'Patron (large)' [Wolt Zagreb]
### Article route(): Indexing ID 18654 'Verde funghi (large)' [Wolt Zagreb]
### Article route(): Indexing ID 15944 'Zagi burger' [Sve najbolje, Wolt Zagreb]