Reputation: 41
It is very difficult to get started with apache solr in eclipse.I am new to apache solr was trying to integrate it with eclipse so that I can develop web application for same.I have searched lot of link but nothing useful.I have downloaded apache solr 5.0 but not able to get integrate with eclipse in windows
Please provide any step wise step solution and also provide some good examples.
Upvotes: 1
Views: 3387
Reputation: 1
Since you have asked about Solr5.0, Beginning with Solr 5.0, Support for deploying Solr as a WAR in servlet containers like Tomcat is no longer supported. For information on how to install Solr as a standalone server, please see Installing Solr- https://cwiki.apache.org/confluence/display/solr/Installing+Solr
Upvotes: 0
Reputation: 422
It is very easy if you know all steps.Here I am providing all steps one by one
solr.xml
<?xml version='1.0' encoding='UTF-8'?>
<context docBase="C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/solr.war" debug="0" crossContext="true" >
<environment name="solr" type="java.lang.String" value="/Tomcat 7.0/webapps/" override="true"></environment>
</context>
7. Inside tomcat-->webapp-->solr-->WEB-INF-->web.xml set Environment entry it will look like this
<env-entry>
<env-entry-name>solr</env-entry-name>
<env-entry-value>C:\solr</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
Now you are all set with apache solr use enjoy
Upvotes: 1
Reputation: 2764
Since you said "I am new to Solr" I think you don't need to load it in Eclipse. Solr is a kind of service so unless you want to develop some customisation (e.g. plugin, search component, parser) which is an advanced topic, it can be started externally from command line.
Then, in Eclipse, you may want to
But again, at least for a primer usage, I don't see the need to import and manage it from Eclipse. A compromise could be an external launch configuration (in Eclipse) that hides the command line (for starting and stopping Solr)
Upvotes: 1