I m very new to SOLR.
I have added the following to the corresponding xml files. But when I try to open my server page that is http://localhost:8080/solr/#/
in my machine it comes up with a message saying that "There are no SolrCores running.Using the Solr Admin UI currently requires at least one SolrCore.
".
solarconfig.xml: [the request handler]
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">C:/Solr/collection1/conf/data-config.xml</str>
</lst>
</requestHandler>
data-config.xml
<dataConfig>
<dataSource type="JdbcDataSource" driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:sqlserver://127.0.0.1:8080;databaseName=myDB" user="xxx" password="xxx" />
<document>
<entity name="sep" processor="SolrEntityProcessor" url="http://127.0.0.1:8080/solr/#/collection1" query="*:*"/>
<entity name="Data" query="select id, firstname, lastname from tblPlayers">
<field column="DocumentId" name="DocumentId" />
<field column="Data" name="Data" />
</entity>
</document>
</dataConfig>
I guess the requestHandler
just points to the data-config.xml
, so is there anything wrong with my data-config.xml.
And which is the port that I ve to specify in the data-config.xml relating to the DB.
Thanks in advance.