Recently I installed Solr.

I made changes to schema.xml, added following entries

<field name="author" type="string" indexed="true" stored="true"  />
   <field name="title" type="string" indexed="true" stored="true"  />
   <field name="keywords" type="string" indexed="true" stored="true"  />
   <field name="summary" type="string" indexed="true" stored="true"  />
   <field name="contents" type="text" indexed="true" stored="true"  />

Now I post a document like this:
<add><doc><field name="id">0A0A1BC3:01183F59ADDC:CBFA:008AEED0</field>
<field name="author"></field>
<field name="title"> Interoperability Demonstration Project Report</field>
<field name="keywords"></field>
<field name="summary"></field>
<field name="contents">

110 page of text.......

</field></doc></add>
<commit/><optimize/>

Once I post it I see following entry in my catalina.out. However when I go
to solr search page and try to search any token in content sectionI do not
get any thing returned. basically

<result name="response" numFound="0" start="0"/>


am I missing something?

SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8,
other encodings are not currently supported
Feb 21, 2008 11:14:45 PM org.apache.solr.handler.XmlUpdateRequestHandler
update
INFO: added id={0A0A1BC3:01183F59ADDC:CBFA:008AEED0} in 187ms
Feb 21, 2008 11:14:45 PM org.apache.solr.core.SolrCore execute
INFO: /update  0 202
Feb 21, 2008 11:14:45 PM org.apache.solr.update.DirectUpdateHandler2 commit
INFO: start commit(optimize=false,waitFlush=false,waitSearcher=true)
Feb 21, 2008 11:14:45 PM org.apache.solr.update.DirectUpdateHandler2
doDeletions
INFO: DirectUpdateHandler2 deleting and removing dups for 1 ids
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher <init>
INFO: Opening [EMAIL PROTECTED] DirectUpdateHandler2
Feb 21, 2008 11:14:45 PM org.apache.solr.update.DirectUpdateHandler2
doDeletions
INFO: DirectUpdateHandler2 docs deleted=0
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher <init>
INFO: Opening [EMAIL PROTECTED] main
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming [EMAIL PROTECTED] main from [EMAIL PROTECTED] main
       
filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming result for [EMAIL PROTECTED] main
       
filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming [EMAIL PROTECTED] main from [EMAIL PROTECTED] main
       
queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming result for [EMAIL PROTECTED] main
       
queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming [EMAIL PROTECTED] main from [EMAIL PROTECTED] main
       
documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming result for [EMAIL PROTECTED] main
       
documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
Feb 21, 2008 11:14:45 PM org.apache.solr.core.SolrCore registerSearcher
INFO: Registered new searcher [EMAIL PROTECTED] main
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher close
INFO: Closing [EMAIL PROTECTED] main
       
filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
       
queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
       
documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0}
Feb 21, 2008 11:14:45 PM org.apache.solr.update.DirectUpdateHandler2 commit
INFO: end_commit_flush
Feb 21, 2008 11:14:45 PM org.apache.solr.handler.XmlUpdateRequestHandler
update
INFO: commit 0 56
Feb 21, 2008 11:14:45 PM org.apache.solr.core.SolrCore execute
INFO: /update  0 56
-- 
View this message in context: 
http://www.nabble.com/Newbie-question-about-search-tp15640877p15640877.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to