lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manishkbawne <manish.ba...@gmail.com>
Subject Re: solr search
Date Sat, 31 Oct 2009 05:03:44 GMT

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="pass@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.bawne@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
> goksron@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.


Mime
View raw message