Binesh,

Great advice. 

Yes, it does show results when I search for id:ZS00001, COL:RW, and TI:MAC,
but strangely it does not show results when I try AD:ZS00001 or AN:ZS00001. 
Also, I'm not sure where to find the default field, so I'm fairly certain I
didn't change it.  I'm entering the querytext in the  "Make a Query" section
of the Solr Admin page (http://localhost:8983/solr/admin/).

Here's the result of my query(id:ZS0001):

<response>

<lst name="responseHeader">
 <int name="status">0</int>
 <int name="QTime">129</int>
 <lst name="params">
  <str name="indent">on</str>
  <str name="rows">10</str>

  <str name="start">0</str>
  <str name="q">id:ZS00001</str>
  <str name="version">2.2</str>
 </lst>
</lst>
<result name="response" numFound="1" start="0">
 <doc>
  <arr name="AD"><str>ZS00001</str></arr>

  <arr name="AN"><str>ZS00001</str></arr>
  <arr name="COL"><str>RW</str></arr>
  <arr name="TI"><str>How to index Solr on the Mac</str></arr>
  <str name="id">ZS00001</str>
 </doc>
</result>
</response>


I'm reposting the data I indexed and the field definitions:

Here's the data:
<add><doc> 
                <field name="id">ZS00001</field> 
                <field name="AD">ZS00001</field> 
                <field name="AN">ZS00001</field>
                <field name="COL">RW</field> 
                <field name="TI">How to index Solr on the Mac</field> 
</doc></add>

Here's the schema.xml definitions:

                <field name="AD" type="text" indexed="true" stored="true" 
                        multiValued="true" /> 
                <field name="AN" type="text" indexed="true" stored="true" 
                        multiValued="true" /> 
                <field name="COL" type="text" indexed="true" stored="true" 
                        multiValued="true" /> 
                <field name="TI" type="text" indexed="true" stored="true" 
                        multiValued="true" />

Thanks again for all the help!!

Jeff


-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/example-solr-xml-working-fine-but-my-own-xml-files-not-working-tp504245p926340.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to