# Error while reindexing with inference processor and ELSER v1 in version 8.10

**URL:** <https://discuss.elastic.co/t/error-while-reindexing-with-inference-processor-and-elser-v1-in-version-8-10/353687>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [February 20, 2024, 12:30pm UTC](https://discuss.elastic.co/t/error-while-reindexing-with-inference-processor-and-elser-v1-in-version-8-10/353687 "2024-02-20T12:30:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ardi](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@ardi](https://discuss.elastic.co/u/ardi)\
**Post date:** [February 20, 2024, 12:30pm UTC](https://discuss.elastic.co/t/error-while-reindexing-with-inference-processor-and-elser-v1-in-version-8-10/353687/1 "2024-02-20T12:30:43Z")

</div>

I tried to set up an inference processor for 8.10 with ELSER v1, with following definitions:

Mapping for search index, where results of ELSER v1 have to be stored

```auto
{
  "mappings": {
    "properties": {
      "ml.tokens": { 
        "type": "rank_features" 
      },
      "text": { 
        "type": "text" 
      }
    }
  }
}'

```

Inference processor with ELSER v1

```auto
{
  "processors": [
    {
      "inference": {
        "model_id": ".elser_model_1",
        "target_field": "ml",
        "field_map": { 
          "text": "text_field"
        },
        "inference_config": {
          "text_expansion": { 
            "results_field": "tokens"
          }
        }
      }
    }
  ]
}'

```

Reindexing with previous defined pipeline:

```auto
{
  "source": {
    "index": "p.pdf" #is just the name of the index
  },
  "dest": {
    "index": "search-test",
    "pipeline": "elser-v1-test"
  }
}'

```

I get an error if I call the task status with task ID,

```auto
 "index" : "search-test",
        "id" : "76abc827-a530-4ba6-be09-08d2d475750d",
        "cause" : {
          "type" : "status_exception",
          "reason" : "Input field [body_content_field] does not exist in the source document",
          "caused_by" : {
            "type" : "status_exception",
            "reason" : "Input field [body_content_field] does not exist in the source document"

```

I have no clue why this happens, does someone of you have an idea?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![mmcmahon](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mmcmahon](https://discuss.elastic.co/u/mmcmahon)\
**Post date:** [February 21, 2024, 3:51pm UTC](https://discuss.elastic.co/t/error-while-reindexing-with-inference-processor-and-elser-v1-in-version-8-10/353687/2 "2024-02-21T15:51:23Z")

</div>

I had the same issue. In the inference processor change the field map to read body\_content\_field versus text\_field.

```auto
{
  "processors": [
    {
      "inference": {
        "model_id": ".elser_model_1",
        "target_field": "ml",
        "field_map": { 
          "text": "body_content_field"
        },
        "inference_config": {
          "text_expansion": { 
            "results_field": "tokens"
          }
        }
      }
    }
  ]
}'

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 20, 2024, 3:51pm UTC](https://discuss.elastic.co/t/error-while-reindexing-with-inference-processor-and-elser-v1-in-version-8-10/353687/3 "2024-03-20T15:51:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
