Hi,

I added <defaultSearchField>laptop</defaultSearchField> to the schema.xml 
file. However the query 
http://.../solr/db/select?q=Dell&start=0&rows=4&fl=laptop is not able to 
search for dell. Following is the response.

<response>
  <lst name="responseHeader">
        <int name="status">0</int>
        <int name="QTime">2</int>
        <lst name="params"><str name="indent">on</str>
        <str name="start">0</str><str name="q">dell</str>
        <str name="version">2.2</str>
        <str name="rows">10</str>
  </lst>
</lst>
<result name="response" numFound="0" start="0"/></response>

Thanks and regards,
Romita Saha





From:   adityab <aditya_ba...@yahoo.com>
To:     solr-user@lucene.apache.org, 
Date:   10/23/2012 12:01 PM
Subject:        Re: searching a database element



if i understand correctly you are looking for the below attribute in
schema.xml to be defined.

<defaultSearchField>laptop</defaultSearchField>

you query can now be 
http://.../solr/db/select?q=Dell&start=0&rows=4&fl=laptop





--
View this message in context: 
http://lucene.472066.n3.nabble.com/searching-a-database-element-tp4015293p4015296.html

Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to