lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hando420 <>
Subject Re: Quering the database
Date Mon, 02 Aug 2010 11:41:52 GMT

Thank you for your reply.

Below is my data-config details.

  <dataSource type="JdbcDataSource" 
              password="root" batchSize="-1"/>
    <entity name="search_result" pk="page_url" 
            query="select title, cast(content as char) as content,page_url
from search_result"
	<field column="title" name="field_1"/>
	<field column="content" name="field_2"/>
	<field column="page_url" name="field_3"/>

Below are the defined schema fields for the data-config

  <field name="field_1" type="string" indexed="true" stored="true"
   <field name="field_2" type="string" indexed="true" stored="true"/>
     <field name="field_3" type="string" indexed="true" stored="true"/>

 <!-- field for the QueryParser to use when an explicit fieldname is absent
View this message in context:
Sent from the Solr - User mailing list archive at

View raw message