Yaylı veri-elasticsearch kullanıyorum ve her şey için iyi çalışıyor.Yaylı Veri Elasticsearch: Aynı Belge ile Çoklu İndeks
@Document(type = "products", indexName = "empty")
public class Product
{
...
}
public interface ProductRepository extends ElasticsearchRepository<Product, String>
{
...
}
Modelimde ürünlerimi arayabilirim.
@Autowired
private ProductRepository repository;
...
repository.findByIdentifier("xxx").getCategory());
Yani benim sorundur - Farklı endekslerde aynı Elasticsearch tip ettik ve tüm sorgular için aynı belgeyi kullanmak istiyorum. Bir havuz aracılığıyla daha fazla bağlantı kurabilirim - ancak bunu nasıl uygulayabileceğime dair hiçbir fikrim yok.
ProductRepository customerRepo = ElasticsearchPool.getRepoByCustomer("abc", ProductRepository.class);
repository.findByIdentifier("xxx").getCategory();
o, çalışma zamanında bir depo oluşturmak mümkün mü bir farklı indeksi:
Ben böyle bir şey istiyorum?
Çok teşekkürler Marcel