Hello,

I have recently installed SOLR but it doesn't function, when I search for something, I say's that it couldn't find anything. However I get no errors --> SOLR connected, nodes 100% indexed. I also cleared the cache to be sure.

The more like this block does work so I don't think there is something wrong with the indexing itself.

Can someone please help me out?

Kind regards.

Comments

JacobSingh’s picture

Please try to be a little more specific. This module is really still in a place where you should have some programming experience to get it all working together. Check your Drupal Logs at Reports -> Recent Log Entries

Also check that Solr is actually running by going to localhost:8983... other than that, you'll have to give us more info. Try searching this issue queue as well.

If you want to have it "just work", Acquia Search (http://acquia.com/products-services/acquia-search), may be an option for you.

Disclaimer: I work for Acquia.

pwolanin’s picture

Make sure you have installed the .xml files from this module into the Solr conf directory - and check the admin screens within Solr itself to see what your index contains.

vesapalmu’s picture

I have been having same kind of problems with more than one site now. Content is being sent to Solr, but not indexed. When I look at admin/settings/apachesolr/index I get "Number of documents in index: 0 (250 sent but not yet processed)". The site has 250 nodes.

Solr works as expected via admin interface, but naturally does not find anything since the index is empty. I have tried restarting Solr, reindexing content and deleting all content from Solr a few times with out any luck.

My current Solr is nightly build from 21st of April, SolrPhpClient is revision 6 and Apache Solr module 6.x-1.0-beta8. Solr is running on example installation of Jetty with schema.xml from the module in place. Apache Solr module settings are all defaults and there is no indication about any errors.

This is what I get in Jetty log when cron runs to add 50 nodes in the index:

Apr 22, 2009 9:08:03 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/admin/ping params={} hits=0 status=0 QTime=1 
Apr 22, 2009 9:08:03 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/admin/ping params={} status=0 QTime=1 
Apr 22, 2009 9:08:03 AM org.apache.solr.core.SolrDeletionPolicy onInit
INFO: SolrDeletionPolicy.onInit: commits:num=1
        commit{dir=/var/www/site/trunk/apache-solr-nightly/example/solr/data/index,segFN=segments_5,version=1240379084171,generation=5,filenames=[segments_5]
Apr 22, 2009 9:08:03 AM org.apache.solr.core.SolrDeletionPolicy updateCommits
INFO: last commit = 1240379084171
Apr 22, 2009 9:08:03 AM org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {add=[952242d9406d2f04624f28d93d32339f/node/3, 952242d9406d2f04624f28d93d32339f/node/31, 952242d9406d2f04624f28d93d32339f/node/37, 952242d9406d2f04624f28d93d32339f/node/38, 952242d9406d2f04624f28d93d32339f/node/44, 952242d9406d2f04624f28d93d32339f/node/51, 952242d9406d2f04624f28d93d32339f/node/56, 952242d9406d2f04624f28d93d32339f/node/111, ...(12 more)]} 0 36
Apr 22, 2009 9:08:03 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={wt=json} status=0 QTime=36 
Apr 22, 2009 9:08:04 AM org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {add=[952242d9406d2f04624f28d93d32339f/node/185, 952242d9406d2f04624f28d93d32339f/node/182, 952242d9406d2f04624f28d93d32339f/node/130, 952242d9406d2f04624f28d93d32339f/node/26, 952242d9406d2f04624f28d93d32339f/node/61, 952242d9406d2f04624f28d93d32339f/node/63, 952242d9406d2f04624f28d93d32339f/node/64, 952242d9406d2f04624f28d93d32339f/node/15, ...(12 more)]} 0 47
Apr 22, 2009 9:08:04 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={wt=json} status=0 QTime=47 
Apr 22, 2009 9:08:04 AM org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {add=[952242d9406d2f04624f28d93d32339f/node/189, 952242d9406d2f04624f28d93d32339f/node/209, 952242d9406d2f04624f28d93d32339f/node/208, 952242d9406d2f04624f28d93d32339f/node/191, 952242d9406d2f04624f28d93d32339f/node/215, 952242d9406d2f04624f28d93d32339f/node/234, 952242d9406d2f04624f28d93d32339f/node/235, 952242d9406d2f04624f28d93d32339f/node/58, ...(2 more)]} 0 37
Apr 22, 2009 9:08:04 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={wt=json} status=0 QTime=37 
Apr 22, 2009 9:08:04 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/admin/luke params={numTerms=0&wt=json} status=0 QTime=1 
Apr 22, 2009 9:08:04 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/admin/luke params={numTerms=0&wt=json} status=0 QTime=1 

Also there are some ""400" Status: Bad Request" errors from Apache Solr in Drupal log. I am not sure what is causing these, when I try searching there is just a normal log entry about searching and no errors.

I have successfully used this module on number of sites and have been having problems on some. With earlier versions of Solr module the problem has been solved by just deleting and recreating the index, but not this time.

vesapalmu’s picture

..and once again yet another restart of Jetty fixed this issue. I still have no idea what is causing this seemingly random problem.

pwolanin’s picture

Status: Active » Closed (fixed)
Anonymous’s picture

I had this same issue. It was a case of operator error. ;) I had remembered to replace solr's schema.xml, but have overlooked the need to replace solrconfig.xml. I suspect this to be your problem.

geerlingguy’s picture

Issue summary: View changes

I had remembered to replace solr's schema.xml, but have overlooked the need to replace solrconfig.xml.

Same here. If you're scratching your head over it, make sure your schema.xml and solrconfig.xml are both up to date. In my case, I was accidentally cloning from the wrong branch in Git while cloning from my application's repo, and the solrconfig.xml was using the default Solr example, so my Apache Solr search settings page just said "0 Items (500 sent but not yet processed)" forever, and after a restart, items were in the index, but not searchable. (This was with 7.x).