dih

Why can't I instantiate DataImportHandler in Solr on JBoss?

我与影子孤独终老i 提交于 2019-11-28 13:53:11
I'm trying to set up Solr 3.5.0 on JBoss 5.1. Everything works quite fine. I copied war into deploy dir, all the dependencies from dist and contrib directories into the lib (or earlier deploy) directory. I can start a server, everything works fine, but whenever I want to activate the DataImportHandler to index data in my DB, I get an error. Basically what I do is I copy is I copy a core from example/example-DIH/solr/db (Or whole example, that doesn't matter), I register the core in solr.xml and at startup I get an error: 15:17:10,707 SEVERE [RequestHandlers] org.apache.solr.common

Steps to connect MongoDB and Solr using DataImportHandler

寵の児 提交于 2019-11-28 06:37:18
I am new to SOLR and MONGODB. I am trying to index data from mongodb into SOLR using DataImportHandler but I could not find the exact steps that I need to follow. Could you please help me in getting the exact steps to index MongoDB into Solr using DataImportHandler? SolrVersion - solr-4.6.0 MongoDB version- 2.2.7 Late to answer, however thought people might find it useful. Below are the steps for importing data from mongodb to Solr 4.7.0 using DataImportHandler. Step 1: Assume that your Mongodb has following database and collection Database Name: Test Collection Name: sample The sample

DIH(Data Import Handler) for xml files is not working in Solr4

 ̄綄美尐妖づ 提交于 2019-11-28 02:18:25
问题 I have installed and configure Solr4 and tomcat6 on to the server. It works good but when I try to build the DIH(Data Import Handler) it gives me an error and I am not able to resolve. I add the following code to my solrconfig.xml file <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"> <lst name="defaults"> <str name="config">/path/to/data-config.xml</str> </lst> my data-config.xml file looks like as follow <dataConfig> <dataSource type=

In solr dih import two double in one location

混江龙づ霸主 提交于 2019-11-28 00:47:24
问题 What I have now is the two double filds: <field name="x_geo_x_coordinate" type="double" indexed="true" stored="true" default="0"/> <field name="x_geo_y_coordinate" type="double" indexed="true" stored="true" default="0"/> and what I want: the 2 double value in one location field: <field name="x_geo" type="location" indexed="true" stored="true" default="0.0,0.0"/> What I tried so far and does't work: <copyField source="*_coordinate" dest="x_geo"/> <copyField source="x_geo_str" dest="x_geo"/>

Steps to connect MongoDB and Solr using DataImportHandler

不羁岁月 提交于 2019-11-27 01:29:37
问题 I am new to SOLR and MONGODB. I am trying to index data from mongodb into SOLR using DataImportHandler but I could not find the exact steps that I need to follow. Could you please help me in getting the exact steps to index MongoDB into Solr using DataImportHandler? SolrVersion - solr-4.6.0 MongoDB version- 2.2.7 回答1: Late to answer, however thought people might find it useful. Below are the steps for importing data from mongodb to Solr 4.7.0 using DataImportHandler. Step 1: Assume that your