The problem is in db-dataconfig.xml. You should start with the example DataImportHandler configuration fles.
The structure is wrong. First there is a datasource, then there are 'entities' which fetch a document's fields from the datasource. On Fri, Oct 30, 2009 at 9:03 PM, manishkbawne <manish.ba...@gmail.com> wrote: > > Hi, > I have made following changes in solrconfig.xml > > <requestHandler name="/dataimport" > class="org.apache.solr.handler.dataimport.DataImportHandler"> > <lst name="defaults"> > <str > name="config">C:/Apache-Tomcat/apache-tomcat-6.0.20/solr/conf/db-data-config.xml</str> > </lst> > </requestHandler> > > > in db-dataconfig.xml > <dataConfig> > <document name="id1"> > <dataSource type="JdbcDataSource" > driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" > url="jdbc:sqlserver://servername:1433/databasename" user="sa" > password="p...@123"/> > <entity name="id1" query="select id from be" > > <field column="id" name="id1" /> > </entity> > </document> > </dataConfig> > > in schema.xml files > <field name="id1" type="string" indexes="true" default="none"/> > > Please suggest me the possible cause of error?? > > > > > Lance Norskog-2 wrote: >> >> Please post your dataimporthandler configuration file. >> >> On Fri, Oct 30, 2009 at 4:17 AM, manishkbawne <manish.ba...@gmail.com> >> wrote: >>> >>> Thanks for your reply .. I am trying to use the database for solr search >>> but >>> getting this error.. >>> >>> <abortOnConfigurationError>false</abortOnConfigurationError> in null >>> ------------------------------------------------------------- >>> java.lang.NullPointerException at >>> org.apache.solr.handler.dataimport.DataImporter.<init>(DataImporter.java:95) >>> at >>> org.apache.solr.handler.dataimport.DataImportHandler.inform(DataImportHandler.java:106) >>> at org.apache.solr.core.SolrResourceLoader >>> >>> Can you please suggest me some possible solution? >>> >>> >>> >>> >>> >>> >>> >>> >>> Karsten F. wrote: >>>> >>>> hi manishkbawne, >>>> >>>> unspecific ideas of search improvements are her: >>>> http://wiki.apache.org/solr/SolrPerformanceFactors >>>> >>>> I really like the last idea in >>>> http://wiki.apache.org/lucene-java/ImproveSearchingSpeed >>>> : >>>> Use a profiler and ask a more specific question in this forum. >>>> >>>> Best regards >>>> Karsten >>>> >>>> >>>> >>>> manishkbawne wrote: >>>>> >>>>> I am using solr search to search through xml files. As I am working on >>>>> millions of data, the result output is slower. Can anyone please >>>>> suggest >>>>> me some way, by which I can increase the search result output? >>>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/solr-search-tp26125183p26128341.html >>> Sent from the Solr - User mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> Lance Norskog >> goks...@gmail.com >> >> > > -- > View this message in context: > http://old.nabble.com/solr-search-tp26125183p26139946.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Lance Norskog goks...@gmail.com