[SOLVED] How to start index of importing items? (Elasticsearch)

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
aimeos
Administrator
Posts: 8501
Joined: 01 Jan 1970, 00:00

Re: How to start index of importing items? (Elasticsearch)

Post by aimeos » 21 Feb 2025, 12:55

Everything seems to be correct on your side. Can you please run "composer up" and try again? Just want to be sure that the latest aimeos-core page relaeased today (2024.10.13) doesn't already fix the problem.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ЕвгенияСемихова(ИПСемиховаЕ.А.)
Posts: 54
Joined: 11 Jan 2025, 09:45

Re: How to start index of importing items? (Elasticsearch)

Post by ЕвгенияСемихова(ИПСемиховаЕ.А.) » 21 Feb 2025, 13:20

Can you please run "composer up" and try again?
I have write command:

Code: Select all

php cpmposer up
at console:

Image

1) After this I send 4 clear command (like at instruction: https://aimeos.org/docs/latest/laravel/setup/#process ):

Code: Select all

php ./artisan aimeos:setup
php ./artisan route:clear
php ./artisan view:clear
php ./artisan aimeos:clear
2) delete all items at admin side. Loading csv file, start to inport command and then:

nothing, only in admin side, not at front :(

UPD: send command for index #5 (from 1 to 4 is old ideal item from default store):

Code: Select all

          "index.siteid" : [
            "1."
          ],
          "index.attributeid" : [ ],
          "index.supplierid" : [ ],
          "index.supplierloc" : [ ],
          "index.catalogid" : [ ],
          "index.price:value(RUB)" : 50.0,
          "index.text:url(en)" : "transistor-1",
          "index.text:name(en)" : "Transistor 1",
          "index.text:content(en)" : [
            "TMP0000001",
            "Transistor 1"
          ],
          "index.text:url(ru)" : "transistor-1",
          "index.text:name(ru)" : "Transistor 1",
          "index.text:content(ru)" : [
            "TMP0000001",
            "Transistor 1"
          ],
          "index.text:url(zh)" : "transistor-1",
          "index.text:name(zh)" : "Transistor 1",
          "index.text:content(zh)" : [
            "TMP0000001",
            "Transistor 1"
          ],
          "index.text:url()" : "transistor-1",
          "index.text:name()" : "Transistor 1",
          "index.text:content()" : [
            "short test",
            "Описание находится в очереди на редактирование",
            "Transistor 1"
          ]
        }
      }
    ]
  }
}
and again, if open and save item card from admin side - then:

Code: Select all

          "index.siteid" : [
            "1."
          ],
          "index.attributeid" : [ ],
          "index.supplierid" : [ ],
          "index.supplierloc" : [ ],
          "index.catalog" : [
            {
              "position" : 0,
              "listtype" : "default",
              "id" : "15"
            }
          ],
          "index.catalogid" : [
            "15"
          ],
          "index.price:value(RUB)" : 50.0,
          "index.text:url(en)" : "transistor-1",
          "index.text:name(en)" : "Transistor 1",
          "index.text:content(en)" : [
            "TMP0000001",
            "Электронные компоненты",
            "Transistor 1"
life is full of many new and interesting things

User avatar
aimeos
Administrator
Posts: 8501
Joined: 01 Jan 1970, 00:00

Re: How to start index of importing items? (Elasticsearch)

Post by aimeos » 24 Feb 2025, 11:12

Thanks to your help, we've found the problem. The CSV importer wasn't adding the categories as required and we've fixed that now. Can you please update to aimeos/ai-controller-jobs:2024.10.x and check if it works for you too?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ЕвгенияСемихова(ИПСемиховаЕ.А.)
Posts: 54
Joined: 11 Jan 2025, 09:45

Re: How to start index of importing items? (Elasticsearch)

Post by ЕвгенияСемихова(ИПСемиховаЕ.А.) » 24 Feb 2025, 12:51

Can you please update to aimeos/ai-controller-jobs:2024.10.x and check if it works for you too?
I just copy two catalogs from your github (ai-controller-jobs) to my server ("src/Controller" and "tests"), right?

After copy I've clear cach and import csv file - dear, it works!!!

Image

Thanks for your help! We will go to the next level!
life is full of many new and interesting things

User avatar
aimeos
Administrator
Posts: 8501
Joined: 01 Jan 1970, 00:00

Re: How to start index of importing items? (Elasticsearch)

Post by aimeos » 24 Feb 2025, 12:54

Always use composer and run "composer req aimeos/ai-controller-jobs:2024.10.x-dev". Manual copying may cause you other problems sooner or later
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ЕвгенияСемихова(ИПСемиховаЕ.А.)
Posts: 54
Joined: 11 Jan 2025, 09:45

Re: [SOLVED] How to start index of importing items? (Elasticsearch)

Post by ЕвгенияСемихова(ИПСемиховаЕ.А.) » 24 Feb 2025, 12:57

ok, send this comand to server:
Image
life is full of many new and interesting things

Post Reply