How to index data from mongodb to solr 4.7 -


does know how index data mongodb solr i've followed previous procedure mentioned here

can give step step procedure fix issue,

here scripts

on mydataconfig.xml

<dataconfig>  <datasource name="mymongo" type="mongodatasource" database="test" />  <document name="products">      <entity processor="mongoentityprocessor"              query="{'active':1}"              collection="testusers"              datasource="mymongo"              transformer="mongomappertransformer" >          <field column="name"           name="name"       mongofield="name"/>          <field column="position"     name="position" mongofield="position"/>       </entity>  </document> 

and in solrconfig.xml

  <lib dir="../../lib/" regex="solr-mongo-importer.jar" /> <lib dir="../../lib/" regex="mongo.jar" /> 

......

<requesthandler name="/dataimport" class="org.apache.solr.handler.dataimport.dataimporthandler"> <lst name="defaults">     <str name="config">mydataconfig.xml</str>  </lst> </requesthandler> 

note: when checked in solr\admin (in console)

get:http://localhost:8983/solr/suggest/admin/ping?action=status&wt=json&_=1417082932028 : 503 service not available"

and in dataimport section typeerror: $(...).attr(...) undefined in dataimport.js

it works other cores i've created in same solr connects mysql db.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -