shopware / shopware

Shopware 6 is an open commerce platform based on Symfony Framework and Vue and supported by a worldwide community and more than 1.500 community extensions
https://shopware.com
MIT License
2.75k stars 1k forks source link

Suche nach Produktnummern in Zusatzfeldern nicht zuverlässig, sofern Sonderzeichen "-" vorhanden / Search for product numbers in custom fields containing "-" character #4563

Open shopwareBot opened 2 weeks ago

shopwareBot commented 2 weeks ago

Used Shopware Version: 6.5.8.7

DE: Wird innerhalb eines Zusatzfeldes (Typ "Textfeld") eine (interne / externe) Artikelnummer mit folgendem Schema hinterlegt 12345-12, so führt die Suche nach dieser konkreten Produktnummer dazu, dass alle Artikel mit dem Zusatz -12 angezeigt und gleich gewichtet werden. Speziell der Artikel mit dieser einen Artikelnummer jedoch verschwindet dabei inmitten der Suchergebnisse und wird nicht an erster Stelle angezeigt.

Schritte zum Reproduzieren:

  1. Anlage eines Zusatzefelds mit Typ "Textfeld" --> Entität "Produkt" zuweisen
  2. Zusatzfeld für mehrere Artikel mit Produktnummer nach Schema 12345-12 befüllen. Darauf achten, dass lediglich der Zusatz "-12" bei mehreren Artikel gleichermaßen vorhanden ist.
  3. Zusatzfeld als durchsuchbaren Inhalt festlegen (Einstellungen > Suche)
  4. Suche nach einer bestimmten Artikelnummer

Erwartetes Ergebnis: Es sollte nur das eine Produkt in den Suchergebnissen angezeigt werden, dessen Produktnummer genau mit Ihrem Suchbegriff übereinstimmt.

Tatsächliches Ergebnis: Es werden alle Ergebnisse angezeigt, die das Suffix "-12" enthalten.

Workaround: Werden die Produktnummer mit stattdessen mit dem Trenner _ (statt -) hinterlegt und entsprechend nach 12345_12 gesucht, funktioniert die Suche zuverlässig.

EN: If an (internal / external) article number with the following schema 12345-12 is stored within an additional field (type "text field"), the search for this specific product number results in all articles with the suffix -12 being displayed and weighted equally. However, the article with this one article number in particular disappears from the search results and is not displayed in first place.

Steps to reproduce:

  1. create a custom field with type "Text field" --> assign entity "Product"
  2. fill custom field for several articles with product number according to scheme 12345-12. Make sure that the suffix "-12" is present for several articles.
  3. define custom field as searchable content (Settings > Search)
  4. Search for a specific article number

Expected result: Only that one product should be shown in the search results where the product number exactly matches to your search term.

Actual result: All results are shown that contain this "-12" suffix.

Workaround: If you enter the product number with the separator _ (instead of -) and search for 12345_12 instead, the search works reliably.

shopware-issue-bot[bot] commented 2 weeks ago

We found the following existing issues which may help or are related to your topic:

shopwareBot commented 2 weeks ago

[public] Shopware automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-34674.

This link is only intended for Shopware employees and for internal use only.

[created from NEXT-34674, comment 490116]