Loading

Ecart "Please, update search indexes, to enable search functionality "

13 posts / 0 new
Last post
Anonymous
Ecart "Please, update search indexes, to enable search functionality "

Vova,

I wonder if you could help us with another problem we stumbled upon... When you search with the search box in cyrillic, you get this error:

"Please, update search indexes, to enable search functionality "

However, we do not have a button to update cache in our cache management page form the admin panel.

Any ideas ?

Best regards,
Victor

Offline
Joined: 10/12/2010

You can find this button at the admin/catalog_index for the Ecart 0.6.5

Victor Hubenov (not verified)

When i click on this button, in the middle of the update i have error:

Notice: Undefined index: HTTP_REFERER in /var/www/htdocs/spot/spot/app/code/Ecart/Admin/controllers/Catalog/IndexController.php on line 641
#0 /var/www/htdocs/spot/spot/app/code/Ecart/Admin/controllers/Catalog/IndexController.php(641): EcartErrorHandler(8, 'Undefined index...', '/var/www/htdocs...', 641, Array)
#1 /var/www/htdocs/spot/spot/library/Zend/Controller/Action.php(513): Ecart_Admin_Catalog_IndexController->updateSearchIndexAction()
#2 /var/www/htdocs/spot/spot/library/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('updateSearchInd...')
#3 /var/www/htdocs/spot/spot/library/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#4 /var/www/htdocs/spot/spot/library/Zend/Application/Bootstrap/Bootstrap.php(77): Zend_Controller_Front->dispatch()
#5 /var/www/htdocs/spot/spot/library/Zend/Application.php(358): Zend_Application_Bootstrap_Bootstrap->run()
#6 /var/www/htdocs/spot/spot/index.php(74): Zend_Application->run()
#7 {main}

Offline
Joined: 10/12/2010

This error occurs after search indexes was updated.

Just type in the address bar valid url and navigate there.

Offline
Joined: 04/04/2011

Yes, you're right, but i get this error again: "Please, update search indexes, to enable search functionality ".
In the file spot/var/logs/ïndexing.log :
2010-12-13T14:30:29+02:00 INFO (6): Starting up
2010-12-13T14:30:29+02:00 INFO (6): Created new index in /var/www/htdocs/spot/spot/var/index/Mall+Spot+-+%3F%3F%3F%3F%3F%3F%3F_1/bg_BG
2010-12-13T14:30:29+02:00 INFO (6): Added document samsung-un55b8000-55-inch-1080p-240-hz-led-hdtv
2010-12-13T14:30:29+02:00 INFO (6): Added document samsung-ln46b750-46-inch-1080p-240-hz-lcd-hdtv
...
2011-04-05T16:25:34+03:00 INFO (6): Added document Chio_Nuts_Pistachios_70g
2011-04-05T16:25:34+03:00 INFO (6): Added document Beer_Nuts_Peanuts_Chio_L-S_70g
2011-04-05T16:25:45+03:00 INFO (6): Optimizing index...
2011-04-05T16:25:46+03:00 INFO (6): Done. Index now contains 1340 documents
2011-04-05T16:25:46+03:00 INFO (6): Index Maker shutting down
is found my products. ok.
Here /spot/var/index/Mall+Spot+-+%3F%3F%3F%3F%3F%3F%3F_1/bg_BG/_45.cfs, there are a lot of "????" ...
When i search in english or in cyrrilic is the same error.

Offline
Joined: 10/12/2010

Try to remove non-latin symbols from the store name at admin/site and reindex data again.

Or you can remove the site name from the folder name:
1. Open scripts/searchIndexMaker.php and change the lines 39-43 from:

    $siteName = str_replace(
        array('http://', 'https://'), '',
        urlencode($site['name'] . '_'. $site['id'])
    );
    $indexDir = $indexPath . '/' . $siteName;

to

    $indexDir = $indexPath . '/' . $site['id'];

2. Open app/code/Axis/Search/Model/Lucene.php and change lines 63-67 from:

            $site = Axis::getSite();
            $site = str_replace(
                array('http://', 'https://'), '',
                urlencode($site->name . '_'. $site->id)
            );

to:

            $site = Axis::getSiteId();

Save changes and try to reindex data.

Offline
Joined: 04/04/2011

Thanks a lot for the information, i remove non-latin symbols from the store name and reindex data again. Evrething is ok now, but its search just latin symbols, and evrething in cyrrilic is in "?????????????"
I have "PCRE unicode support" on the server, but...
I will try to encoding the file... If you know something for this problem, please help me.

P.S. If I'm annoying you with my questions, please excuse me. Thank you in advance.
Best regards,
Victor

Offline
Joined: 10/12/2010

Can you check the encoding of the database scheme and catalog_product_description table?

They should use utf-8 encoding.

p.s. We are interested in all problems that occurs with Axis on different server configurations, to know how to deal with them.

Offline
Joined: 04/04/2011

Thank you.
Where to search this information - "encoding of the database scheme and catalog_product_description table", .. in phpMyAdmin or ... Evrething in my sait is in cyrrilic, but when save this .cfs file, it is in ????? and no Encodink helps.

Offline
Joined: 10/12/2010

Yes, phpMyAdmin is fine.

Database encoding:
Select the axis database, and go to Operations tab. At the bottom of this page you will see the Collation field - thats it.

Table encoding:
Select catalog_product_description table on the left. Open the Operations tab again. You will find the collation field inside Table options fieldset.

Offline
Joined: 04/04/2011

Collation field of database is utf8_general_ci and in catalog_product_description again is utf8_general_ci