Thanks again,
I am getting Internal Server Error when I run the index after cleaning up the
index and changing the schema.xml
[dspace@ip-172-31-28-251 bin]$ ./dspace update-discovery-index
INFO [main] (DSpaceKernelInit.java:52) - Created new kernel:
DSpaceKernel:org.dspace:name=23dd0b1b-b577-456b-a835-3e81125b28c9,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null
INFO [main] (ConfigurationManager.java:1217) - Loading from classloader:
file:/home/dspace/dspace/config/dspace.cfg
INFO [main] (ConfigurationManager.java:1217) - Using dspace provided log
configuration (log.init.config)
INFO [main] (ConfigurationManager.java:1217) - Loading:
/home/dspace/dspace/config/log4j.properties
Exception: Error executing query
org.dspace.discovery.SearchServiceException: Error executing query
at
org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:418)
at org.dspace.discovery.IndexClient.main(IndexClient.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: org.apache.solr.client.solrj.SolrServerException: Error executing
query
at
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:266)
at
org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:106)
at
org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:388)
... 6 more
Caused by: org.apache.solr.common.SolrException: Internal Server Error
Internal Server Error
request: http://localhost:8080/solr/search/select?q=search.resourcetype:2 AND
search.resourceid:1&wt=javabin&version=2
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:432)
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:246)
at
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
... 9 more
When I add -b the error message doesn't show up.
Rodrigo
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of helix84
Sent: Thursday, February 06, 2014 11:51 AM
To: Calloni, Rodrigo
Cc: dspace-tech
Subject: Re: [Dspace-tech] How to stop using full text search?
OK, I don't know why, but perhaps the -b flag isn't removing the old contents.
Try removing the index manually:
cp -r [dspace]/solr/search/data/index [dspace]/solr/search/data/index.bak
rm [dspace]/solr/search/data/index/*
And then recreate it with the new schema using:
[dspace]/bin/dspace update-discovery-index
You should be able to verify that these fields are gone from the index by going
to the Solr admin UI [1]. Actually, do this even now before you execute the
above steps, just to confirm the problem.
[1] https://wiki.duraspace.org/display/DSPACE/Solr
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette