Thanks for your reply, Yes, I have tabel persons and "Peter" value in column firstname . and here is my data-config.xml <dataConfig> <dataSource ....> <entity name="persons" pk="person_id" query="select personid,firstname from persons" > <field column="personid" name="person_id" /> <field column="fisrtname" name="fname" /> </entity> </document> </dataConfig>
and my schema.xml <schema name="example"> <types> <fieldType name="text" class="solr.TextField" positionIncrementGap="100"/> <fieldType name="integer" class="solr.IntField" omitNorms="true"/> </types> <fields> <field name="person_id" type="integer" indexed="true" stored="true" multivalued="false" required="true"/> <field name="fname" type="text" indexed="true" stored="true" multivalued="false"/> </fields> <uniqueKey>person_id</uniqueKey> <solrQueryParser defaultOperator="OR"/> </schema> It is indexed properly. But I am not getting any result. Do I need to do explicit commit? Or Am I quering correctly http://localhost:8080/solr/select/?q=Peter ? 2009/3/22 Noble Paul നോബിള് नोब्ळ् <noble.p...@gmail.com> > it is hard to say the reason. > do you have the field containing "Peter" in the default search field? > what is the type of the field? > > On Sun, Mar 22, 2009 at 9:16 PM, radha c <radhas...@gmail.com> wrote: > > Hi, > > I am just in learning face. I indexed a sql test table using dataimport. > > But I want to search those index by keyword. I tried to search like > > http://localhost:8080/solr/select/?q=Peter. But I got zero respone. > > Can anyone help me please why is this? > > Thanks in advance. > > > > > > -- > --Noble Paul >