Solr Spell-checking and suggester configuration - magento

I'm trying to integrate solr with Magento EE 1.14 on my local server.
What I did so far?
Installed solr 3.6.2.
Copied files from magentoroot/lib/Apache/Solr/Conf to solrroot/example/solr/conf
started start.jar file
re-indexed all data through cmd .
In solrconfig.xml my default search is
<defaultSearchField>sku</defaultSearchField>
and it is working fine in Magento for spell-checking .
What issue I'm having?
When I enter : * : in solr admin panel and hit search, I'm getting 404 at localhost:8983/solr/select/?q=%3A*%3A&version=2.2&start=0&rows=10&indent=on
Problem accessing /solr/select/. Reason:
null
If I hit localhost:8983/solr/spell?q=abc%20ultrashar&spellcheck=true&spellcheck.collate=true&spellcheck.build=true , it gives Error 500.
Problem accessing /solr/spell. Reason:
null
I want to configure search, spell-checking, auto-complete, facets for most of the product attributes(name, sku, price, qty, etc) through solrconfig.xml and schema.xml but I don't know exactly what all modification I have to do. Can someone suggest what all modification I've to do to work it with Magento?

I was having the same problems. I found this url to be helpful. You shouldnt have to change any Solr configurations. You need to modify the theme to include files to allow the site to control the output of the results. Basically you need to have recommendations.phtml and suggestions.phtml included in your theme.
https://www.quora.com/I-have-installed-Solr-with-Magento-EE-How-can-I-configure-auto-suggest-and-spell-check

Related

Prestashop Url change

I have a problem,
I changed the url of my prestashop because I have a new url.
But now i have the Problem that i tipped in the wrong path, and if i want to log in as admin then the shop directs me everytime to the wrong path so I can't change anything...
Does anybody know in which folder of the FTP Server I can change it in the data?
I tired to delete the htaccess data but this didn't help me.
Or is it another option to go back to where I started, before i changed the Url?
I think that your problem occurred not from a .htaccess but from your database. Prestashop keeps domain URL in the DB and if you changed it you better to check table configuration fields PS_SHOP_DOMAIN, PS_SHOP_DOMAIN_SSL and table shop_url. I think that the problem is over there.
When you want to migrate to another server, you have to
Update the _DB_... constants in config/settings.inc.php file
Since your database does not changed, this step is not necessary.
Update PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL fields in configuration database table
Update the domain, domain_ssl and physical_uri fields in the shop_url database table
Now you can log in to the admin page. When you did it, your first step has to go to Preference -> SEO & URLs, then turn off and on again the Friendly URLs switch to update the .htaccess files.
These steps are works on Prestashop 1.6, but not tested on 1.7.
See the official blog post for additional details:
https://www.prestashop.com/en/blog/how-to-migrate-prestashop-to-a-new-server

Algolia Magento autocomplete integration

I have Algolia configured & returning results from searches but the autocomplete suggestions are not coming up, no algolia div is displayed when typing in the search box - just the normal Magento drop down when conducting a search.
A few things I have checked in the Algolia search config in Magento:
Enable Auto-completiton menu is set to Yes
Enable instant search results page is set to Yes
I noticed wording in the Magento Algolia Search config settings near 'Enable Auto-completiton Menu' - 'It requires your theme to expose a top.search template.' I followed the instructions at https://github.com/algolia/algoliasearch-magento but am not sure how to troubleshoot the issue.
I am using the EM Themes everything store template demo at http://demo.emthemes.com/everything/index.php/?___store=smartphone_eng
Thanks for any help you can offer

Suggestions do not appear

I installed the module "algolia" in my magento store however the products do not appear as suggestions when performing a search.
The module already installed and configured correctly and even folders already has read written permission.
Every time I start typing a word in the search box my Algolia control panel shows the error 403 (forbidden) for the POST request, I need to configure any permission in my database?

Magento not using appropriate URL - 404 Page not found

I have a magento site running locally using WAMP and it works great. However I need to create a different site so I created a folder for this new site under htdocs.
In that folder I loaded the Magento files.
Created a new database for newsite with all rights in phpmyadmin.
Went to the localhost:8888/newsite and started Magento installation wizard.
In the configuration section of the wizard I entered all the info required: db name, user, password. For URL Base I used the default (http://localhost:8888/newsite). Selected allow charts and Allow apache rewrites. Finished installing magento.
Now magento is running on newsite. I can see the front and back-end of the site.
Here is the problem: When I create a category and/or subcategory, magento does create the menu link but when I click any category, the browser takes me to a 404 not found. Upon analyzing the URL that took me there i see that the URL is : http://localhost:8888/newsite/category.html BUT by adding "index.php" into the URL (http://localhost:8888/newsite/index.php/category.html , the page does work!
So this means magento IS creating the page for the category but the linking is somewhat wrong.
Now, I've been making sure that rewrite is enabled and after all, the other site I mentioned I have is working properly, so I assume rewrite is properly enabled.
So I need help finding:
Why is one site working and the other isn't?
How can I fix this issue?
Thank you!
Sounds like you haven't copied over the .htaccess file (in your Magento root folder). You need this file for the Apache rewrites to work.

Magento SEO friendly URL module only rewrites categories, products showing old URL

I have enabled the SEO friendly URL on Magento 1.6 and it's working perfectly for category.
But the product URLs are showing the old URL format.
My current product URL looks like:
http://example.com/catalog/product/view/id/123/s/uppa-baby-vista-stroller/category/133/
What I should be like is:
http://example.com/uppa-baby-vista-stroller.html
I've already re-indexed the catalog and cleared the cache, but it's not rewriting the products with the SEO friendlier version of URLs.
I assume you are magneto default code.
After enabling SEO friendly URL don't forget to re-index from Magento admin.
The issue is that URL rewrites are not occurring,
Are you running Enterprise Edition 1.13?
If yes, more than likely your issue is with Magento's reindexing not occurring automatically. In 1.13, the reindexing occurs with a cron job. You must set up cron to run on your local server so that it will run automatically. To check if it has been setup, go to System->Index Management and check to see the last time product url reindexing has occurred. The reindex is what sets up the URL rewrites, you can check in the database to confirm that reindexing never happened (specifically in Enterprise Edition, look at tables enterprise_url_rewrite, enterprise_url_rewrite_redirect, and enterprise_url_rewrite_redirect_rewrite. See if these tables have rewrites for each of your products). If your products don't appear to have url rewrites in these tables, than reindexing never happened. My guess is that this is your issue if you are running EE 1.13. Follow this link to set up cron.
how to set cron job for reindex
If you are running Magento prior to EE 1.13 OR any version of Community edition, make sure that SEO Friendly URLs are enabled AND that you have reindexed. If this still doesn't work, make sure the Magento Core code hasn't been modified.

Resources