# Question about indexing linestring without distance\_error\_pct

**URL:** <https://discuss.elastic.co/t/question-about-indexing-linestring-without-distance-error-pct/269387>\
**Category:** Elasticsearch\
**Created:** [April 7, 2021, 12:54am UTC](https://discuss.elastic.co/t/question-about-indexing-linestring-without-distance-error-pct/269387 "2021-04-07T00:54:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![whiteonyx\_go](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whiteonyx_go/32/59541_2.png) [@whiteonyx\_go](https://discuss.elastic.co/u/whiteonyx_go)\
**Post date:** [April 7, 2021, 12:54am UTC](https://discuss.elastic.co/t/question-about-indexing-linestring-without-distance-error-pct/269387/1 "2021-04-07T00:54:35Z")

</div>

Hi

Indexing `LineString` without specifying `precision` or `distance_error_pct` only hit the query at the start of LineString.  
If precision is specified, `distance_error_pct` is implicitly treated as 0, so I think that distance\_error\_pct is actually involved.  
Is this behavior as expected?  
I couldn't understand this behavior by looking at the documentation, so I asked a question.

> **[Geo-shape field type | Elasticsearch Guide \[7.12\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html)**

A Schema is like this.

- only hit start point of LineString

```auto
{
    "properties": {
        "line": {
            "type": "geo_shape"
        }
    }
}

```

- hit all point of linestring(query return results expected)

```auto
{
    "properties": {
        "line": {
            "type": "geo_shape",
            "distance_error_pct": 0
        }
    }
}

```

- Environment
  - [docker.elastic.co/elasticsearch/elasticsearch:7.7.0](http://docker.elastic.co/elasticsearch/elasticsearch:7.7.0)

---

<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:** [May 5, 2021, 12:55am UTC](https://discuss.elastic.co/t/question-about-indexing-linestring-without-distance-error-pct/269387/2 "2021-05-05T00:55:10Z")

</div>

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