akkarthick / magento-community-edition-solr

Automatically exported from code.google.com/p/magento-community-edition-solr
0 stars 0 forks source link

Your search returns no results #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and run bitnami Solr from http://bitnami.org/stack/solr
2. Install magento-ce-solr on default Magento CE 1.7.0.0 with demo data
3. Configure magento-ce-solr for local Solr virtual machine

What is the expected output? What do you see instead?
I expect a screen with my search results, instead i get 'Your search returns no 
results.'

What version of the product are you using? On what operating system?
- Magento CE 1.7.0.0
- Magento CE Solr 1.1
- Ubuntu 10.04.4 LTS
- Bitnami Solr running on Ubuntu 12.04

Please provide any additional information below.
- the VM can be reached from the Magento System
- the logfile of Apache Solr is growing, when i enter a search term and hit 
ENTER in the search box
- the logfile is also growing, when i start to reindex 'Catalog Search Index'
- tcpdump on the solr machine spit out some lines, when reindexing or searching
- I get a result when i search on http://solr-vm-ip/solr/admin/

Original issue reported on code.google.com by PennyFor...@gmail.com on 25 Jun 2012 at 1:23

GoogleCodeExporter commented 9 years ago
Hello,

I have the same Problem with Magento CE 1.7.0.2. The indexing process works and 
the the data is saved on the Solr server, but the search in magento shows "Your 
search returns no results".

What can we do?

Original comment by patr...@p-squared.de on 8 Nov 2012 at 5:50

GoogleCodeExporter commented 9 years ago
I've no real solution to the problem, but only a little workaround. Because it 
was only an experiment, I didn't dig deeper to get it working, but I'll share 
my actions anyway...

I've patched the file 'app/code/local/Magentix/Solr/Model/Search.php', on line 
70?! Comment out the additional parameter 'fq' => 'store_id:'.$storeId

How did I get there? In the same file around line 72, I've changed the POST 
into a GET. Now I was able the read the whole request from Magento to Solr in 
the logs (e.g. /opt/bitnami/apache-solr/logs/*). I took this request and 
identified the error-causing parameter on http://[solr-server]/solr/admin/

As I mentioned above, this will only be a dirty trick, to get _any_ search 
results. Of Course, it would make sense to limit the results to a certain store.

Btw. the parameter 'fq' is an abbreviation for 'filter query', which means to 
allow reducing the responded search result. In my case, the search request used 
a different storeId than I expected to be used from the shop search. I think, 
this will be a good starting point to isolate the real problem.

Original comment by PennyFor...@gmail.com on 30 Nov 2012 at 10:08

GoogleCodeExporter commented 9 years ago
I have same error, but in Magento Community Edition 1.7.0.2. I have change 
layout from 3 to 1 column layout. After that I got this kind of error.

Original comment by prashant...@gmail.com on 10 Aug 2013 at 7:45