# Auto Increment ID von Suchindex resetten

**URL:** <https://forum.shopware.com/t/auto-increment-id-von-suchindex-resetten/91171>\
**Category:** Shopware 5\
**Created:** [28. Oktober 2021 um 18:53 UTC](https://forum.shopware.com/t/auto-increment-id-von-suchindex-resetten/91171 "2021-10-28T18:53:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [28. Oktober 2021 um 18:53 UTC](https://forum.shopware.com/t/auto-increment-id-von-suchindex-resetten/91171/1 "2021-10-28T18:53:36Z")

</div>

Hi,  
die Tabellen

- s\_search\_index
- s\_search\_keywords  
haben durch immer wiederkehrenden Aufbau des Suchindex eine „Start“-id von 2.157.346.912 (ohne Punkt)  
Wie kann man das Resetten, dass es wieder bei 1 anfängt? Oder hat jemand eine SQL?

Danke und Gruss

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [28. Oktober 2021 um 19:22 UTC](https://forum.shopware.com/t/auto-increment-id-von-suchindex-resetten/91171/2 "2021-10-28T19:22:18Z")

</div>

Antwort an mich selbst:

INT 11 war einfach am Rand des möglichen Zahlenbereichts.

```auto
TRUNCATE TABLE s_search_keywords
ALTER TABLE s_search_keywords AUTO_INCREMENT = 1

```

Wäre schön wenn das einarbeitet in **sw:refresh:search:index --clear-table**. sonst mach clear table auch keinen Sinn.

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [29. Oktober 2021 um 06:22 UTC](https://forum.shopware.com/t/auto-increment-id-von-suchindex-resetten/91171/3 "2021-10-29T06:22:35Z")

</div>

Hallo @brettvormkopp

das kling erstmal nach einer sinnvollen Änderung. Magst du dafür ein Ticket anlegen?

> **[Shopware Issuetracker](https://issues.shopware.com/createissue)**

Viele Grüße aus Schöppingen  
Michael Telgmann

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [29. Oktober 2021 um 06:51 UTC](https://forum.shopware.com/t/auto-increment-id-von-suchindex-resetten/91171/4 "2021-10-29T06:51:24Z")

</div>

Hi, ich hab keine Ahnung von dem Ticket-System.

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [29. Oktober 2021 um 18:39 UTC](https://forum.shopware.com/t/auto-increment-id-von-suchindex-resetten/91171/5 "2021-10-29T18:39:24Z")

</div>

du bist schon so lange hier unterwegs und hast noch nie ein Ticket bei uns im Issue Tracker angelegt? 😯  
kann ich irgendwie nicht glauben 🙂
