lambdaworks / zio-elasticsearch

ZIO Elasticsearch is a type-safe and streaming-friendly ZIO native Elasticsearch client.
https://lambdaworks.github.io/zio-elasticsearch/
Apache License 2.0
60 stars 18 forks source link

How to do an Index Pattern search/lookup #310

Closed ianlintner closed 1 year ago

ianlintner commented 1 year ago

Can you help me figure out how to use index patterns with zio-elasticsearch?

Elastic Search Index Pattern Search

GET categories*/_search
{
  "query": {
    "match_all": {}
  }
}

Intuitively I tried something like this

elasticSearch.execute(getById(IndexName("categories*"),DocumentId("documentId")))

This is blocked because IndexName does not allow "*".

I have indexes: categories_1, categories_2, categories_i+1

drmarjanovic commented 1 year ago

Hi, @ianlintner!

Thanks for pointing that out!

Unfortunately, it's not supported at the moment.

However, we are going to think about this and resolve it as fast as possible.

dbulaja98 commented 1 year ago

Hello @ianlintner!

This issue is resolved now, feel free to try it and ask if you need any help.