Jeroen-G / Explorer

🗺️ Next-gen Elasticsearch driver for Laravel Scout.
https://jeroen-g.github.io/Explorer/
MIT License
360 stars 62 forks source link

Support for Ingest Pipelines #218

Open tduesterhus opened 1 year ago

tduesterhus commented 1 year ago

Hey there,

I had a look through the code and tried to find a way to add ingest pipelines to index-calls. I did not find an easy way to do so. However, it would be a great feature. E.g. for adding file-attachments to a model.

Best, Tobias

Jeroen-G commented 1 year ago

I don't know what they are, but if you can find a way to incorporate them I'll be happy to take a look at it.

tduesterhus commented 1 year ago

The ingest Pipelines are pre-defined post-processing steps that can be used to e.g. add attachments (https://www.elastic.co/guide/en/elasticsearch/reference/8.10/ingest.html). It is simply:

{
  "index": "some_index",
  "body": {...},
  "pipeline": "pipeline-id",
}

So maybe not a big deal to implement it so that one has a pipeline-id per model or so. I'll try to find some time and let you know

boss554 commented 7 months ago

Any update on this topic ? I am searching for same.

tduesterhus commented 7 months ago

Sorry, I am too busy at the moment and totally forgot about this.

boss554 commented 7 months ago

Hey there,

I had a look through the code and tried to find a way to add ingest pipelines to index-calls. I did not find an easy way to do so. However, it would be a great feature. E.g. for adding file-attachments to a model.

Best, Tobias

same I want to do ,I have epub file when I search than search it on file also .