Hi,

 

I am trying to get db indexing up and running, but I am having trouble
getting it working. 

 

In the solrconfig.xml file, I added 

 

  <requestHandler name="/dataimport"
class="org.apache.solr.handler.dataimport.DataImportHandler">

      <lst name="defaults">

         <str name="config">data-config.xml</str>

      </lst>

  </requestHandler>

 

I defined a couple of fields in schema.xml   

 

<field name="media_id" type="long" stored="true" />

   <field name="artist_name" type="text" indexed="true" stored="true"
multiValued="true" />

   <field name="song_title" type="text" indexed="true" stored="true"
multiValued="true" />

 

 

media_id is defined as the unique key

 

I added the dataconfig to the data-config.xml file

 

<dataConfig>

        <dataSource type="JdbcDataSource"

                    driver="com.mysql.jdbc.Driver"

                    url="jdbc:mysql://localhost/media"

                    user="xxxd"

                    password="*********"/>

        <document name="media">

        <entity name="video" query="select mediaId, name, title FROM Media
">

            <field column="mediaId" name="media_id" type="integer"
stored="true"/>

            <field column="name" name="artist_name" type="string"
indexed="true" stored="true"/>

            <field column="title" name="song_title" type="string"
indexed="true" stored="true"/>

        </entity>

    </document>

</dataConfig>

 

 

When I start the server, I can see it is loading the dataimport handler

 

Jun 28, 2010 8:52:32 PM org.apache.solr.handler.dataimport.DataImportHandler
processConfiguration

INFO: Processing configuration from solrconfig.xml: {config=data-config.xml}

Jun 28, 2010 8:52:32 PM org.apache.solr.handler.dataimport.DataImporter
loadDataConfig

INFO: Data Configuration loaded successfully

 

 

When I go to
http://localhost:8983/solr/admin/dataimport.jsp?handler=/dataimport, on the
right side, I see the message 
 
unknown handler: /dataimport

 

 

I do see a BindException: Address already in use when I restart the solr
process, but I don't see any other errors . Since the dataimport config was
successfully loaded, I don't think that is the reason /dataimport is
unknown.  

 

Did I forget to add something to the configurations? Is there another log
file I should be checking for errors?

 

Regards,

 

L. Hill

Reply via email to