On Fri, May 20, 2011 at 3:40 AM, fredylee
<fredy_ru...@co.washington.or.us> wrote:
> Newbie at SOLR,
>
> When I ran through my test data config, it was able to find my 91 rows
> sample test.  However, it didn't add any into my index.
>
> Can someone help me and tell me why?
>
> Please find the data config below:
>
> <dataConfig>
>    <dataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver"
> url="jdbc:sqlserver://localhost\TESTSERVER:4317;databaseName=Northwind;user=sa;password=datapassword"
> />
>    <document>
>        <entity name="Customers" query="select * from Customers">
>            <field column="CustomerID" name="customerid" />
>            <field column="CompanyName" name="companyname" />
>            <field column="ContactName" name="contactname" />
>            <field column="Address" name="address" />
>            <field column="City" name="city" />
>            <field column="ContactTitle" name="contacttitle" />
[...]

I presume that the fields above exist in the database with the
given names, and that you have verified that the SELECT
statement works at the database level.

Please show us your Solr schema, schema.xml. Are the
fields that you are trying to index define there?

Regards,
Gora

Reply via email to