I just installed.

I'm using the framework & search module only. It connects fine. I cant access the solr/admin page through tomcat. However no files are being index. The regular search index shows site content indexed at 58%. The Solr index shows 0% with 95 items remaining.

Watch Dog shows...

Indexing failed on one of the following nodes: 16, 18, 20, 21, 22, 23, 24, 26, 31, 32, 33, 11, 10, 9, 8, 7, 6, 34, 17, 35
"400" Status: Bad RequestApache Tomcat/6.0.20 - Error report HTTP Status 400 - ERROR:unknown field 'site'type Status reportmessage ERROR:unknown field 'site'description The request sent by the client was syntactically incorrect (ERROR:unknown field 'site').Apache Tomcat/6.0.20

Any ideas?

Comments

timefor’s picture

Opps^^^ I CAN access the solr/admin page. I have no problems connecting to tomcat.

timefor’s picture

Version: 6.x-1.0-rc3 » 6.x-2.x-dev

I've completely reinstalled the server and Apache Solr and I'm still getting the same problem. I'm also trying 2.x dev now. It can see the server but its still not indexing any files.

Using 2.x-dev I'm now getting this error "An error occurred while processing apachesolr_batch_reindex_process with arguments :apachesolr_batch_reindex_process" when trying to reindex.

robertdouglass’s picture

ERROR:unknown field 'site'type --- this usually means that schema.xml isn't in the right place in the Solr installation. The schema.xml file from the Drupal module needs to be copied into the conf directory of your Solr server before the server is started. Are you sure you've done this?

timefor’s picture

I thought I had followed the instructions correctly but I will double check it.

jpmckinney’s picture

Category: bug » support
jpmckinney’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

zualas’s picture

Status: Closed (fixed) » Active

I also get this issue that the index is not passed to SOLR. If I check the logs, it gives me the following:

Indexing failed on one of the following nodes: 4, 5, 27, 90, 45, 101, 100, 92, 93, 99, 89, 98, 94, 97, 67, 91, 102, 23, 43, 105 
"400" Status: Bad Request


Error 400 

HTTP ERROR: 400ERROR:unknown field 'site'
RequestURI=/solr/updatePowered by Jetty:// 
zualas’s picture

Status: Active » Closed (fixed)

hmm, several reboots of Jetty saved the day...

yngens’s picture

Have the same error message. I have checked - everything is installed properly. I have functioning multisite core, the other sites have been indexed with no issues, but on just one particular website indexing always stops at the same one place - when it reaches 10%. Restarting solr severa times did not solve the problem like it did for zualas.

I guess one of my nodes is a problem. But which one? How can I identify the node which prevents indexing?

910 items successfully processed. An error occurred while processing apachesolr_batch_index_nodes with arguments :apachesolr_batch_index_nodes
The search index is generated by running cron. 10% of the site content has been sent to the server. There are 7702 items left to send.
Number of documents in index: 920

Number of terms in index: 132834

Number of fields in index: 60

Field name	Index type	Distinct terms
body	text	69225
changed	date	918
comment_count	integer	26
created	date	911
entity	string	1
hash	string	1
id	string	920
im_vid_1	integer	10
im_vid_10	integer	3
im_vid_2	integer	7
im_vid_4	integer	19
im_vid_7	integer	2
im_vid_8	integer	2
im_vid_9	integer	6
is_upload_count	integer	4
language	string	1
last_comment_or_change	date	918
moderate	boolean	2
name	text	142
nid	integer	920
path	string	920
path_alias	text	1892
promote	boolean	2
site	string	1
sm_vid_География_документа	string	7
sm_vid_Медиа	string	19
sm_vid_Новостные_рассылки	string	2
sm_vid_Работа	string	2
sm_vid_Рубрики	string	3
sm_vid_Статьи	string	6
sm_vid_Форумы	string	10
sname	string	78
sort_name	sortString	78
sort_title	sortString	917
spell	textSpell	43616
status	boolean	1
sticky	boolean	1
tags_a	text	1547
tags_h2_h3	text	1815
tags_h4_h5_h6	text	14
tags_inline	text	2589
taxonomy_names	text	67
teaser	text	Not indexed
tid	integer	49
timestamp	date	912
title	text	3147
tnid	integer	1
translate	boolean	1
ts_vid_10_names	text	3
ts_vid_1_names	text	21
ts_vid_2_names	text	7
ts_vid_4_names	text	26
ts_vid_7_names	text	3
ts_vid_8_names	text	5
ts_vid_9_names	text	6
type	string	13
type_name	string	10
uid	integer	78
url	string	920
vid	integer	7
wouters_f’s picture

I had the same problem but the solution was easy.

Varnish was automatically downloaded with mercury.
The solconfig.xml and schema.xml were not present in my automatically drush downnloaded apachesolr module folder.

So I downloaded apachesolr again from drupal.org and there the schema.xml and solrconfig.xml were present.
Replacing these and restarting the solr did solve the problem.

I guess if you drush dl from within varnish these 2 config files are not included?
Problem solved here.
Great module by the way!