Newbie question about search

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Newbie question about search

x8nnn
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 Searcher@1b66b06 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 Searcher@21d23b main
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher close
INFO: Closing Searcher@19bfb30 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
Reply | Threaded
Open this post in threaded view
|

Re: Newbie question about search

x8nnn
I tried to verify the readerdir. Which is fine.
Inside index dir I can even see a file created _7.fdt which has all the content of text.
Now I am surprised why I am not getting it in search?
Santos
x8nnn wrote
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 Searcher@1b66b06 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 Searcher@21d23b main
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher close
INFO: Closing Searcher@19bfb30 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
Reply | Threaded
Open this post in threaded view
|

Re: Newbie question about search

Reece-3
Sounds like the docs aren't committed maybe?

Go to /solr/admin/stats.jsp and look for:

docsPending : X

Where X is the number of docs that aren't committed yet.

-Reece



On Fri, Feb 22, 2008 at 3:07 PM, x8nnn <[hidden email]> wrote:

>
>  I tried to verify the readerdir. Which is fine.
>  Inside index dir I can even see a file created _7.fdt which has all the
>  content of text.
>  Now I am surprised why I am not getting it in search?
>  Santos
>
>
>
>  x8nnn wrote:
>  >
>  > 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 Searcher@1b66b06 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 Searcher@21d23b main
>  > Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
>  > INFO: autowarming Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main
>  > Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher close
>  > INFO: Closing Searcher@19bfb30 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-tp15640877p15641411.html
>
>
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Newbie question about search

x8nnn
In reply to this post by x8nnn
I checked docsPending. I get following
commits : 0
autocommit maxDocs : 10000
autocommit maxTime : 1000ms
autocommits : 0
optimizes : 0
docsPending : 0
deletesPending : 0
adds : 0
deletesById : 0
deletesByQuery : 0

Most surprising is Once I add document I see numDocs and maxDoc increasing. But I can not search them using admin console.
x8nnn wrote
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 Searcher@1b66b06 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 Searcher@21d23b main
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
INFO: autowarming Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main
Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher close
INFO: Closing Searcher@19bfb30 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
Reply | Threaded
Open this post in threaded view
|

Re: Newbie question about search

Reece-3
Not sure what's wrong, but I'll share some of the debugging I did when
getting my implementation to work these past 2 weeks:

1) Change schema.xml to suit your needs.  I basically just changed the
fields to ones I needed and didn't touch the fieldtypes at first.

2) Stop SOLR, delete the index, and start it again so it rebuilds the
index according to the changed schema.  Otherwise it won't recognize
the field names and will try to save your data in the little
"catch-all" field things which I don't really know much about.

3) insert some data using XML post, but be *sure* to check the
response code.  Anything except 200 usually means it didn't go through
- and view the response body for the actual error.  I had to run
through some weird errors - like it complains that it doesn't
recognize the encoding "utf-8" if you specify that in the headers.
Instead, specify it in the doctype of the XML you post.

4) Ensure it says the document was added and committed in the stats

5) search on just the id - just to verify you can find it at all.

Once you can get it to return something, you can build on that.

-Reece



On Sat, Feb 23, 2008 at 8:05 AM, x8nnn <[hidden email]> wrote:

>
>  I checked docsPending. I get following
>  commits : 0
>  autocommit maxDocs : 10000
>  autocommit maxTime : 1000ms
>  autocommits : 0
>  optimizes : 0
>  docsPending : 0
>  deletesPending : 0
>  adds : 0
>  deletesById : 0
>  deletesByQuery : 0
>
>  Most surprising is Once I add document I see numDocs and maxDoc increasing.
>  But I can not search them using admin console.
>
>
>
> x8nnn wrote:
>  >
>  > 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 Searcher@1b66b06 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 Searcher@21d23b main
>  > Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher warm
>  > INFO: autowarming Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main from Searcher@19bfb30 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 Searcher@21d23b 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 Searcher@21d23b main
>  > Feb 21, 2008 11:14:45 PM org.apache.solr.search.SolrIndexSearcher close
>  > INFO: Closing Searcher@19bfb30 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-tp15640877p15651846.html
>
>
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Newbie question about search

hossman
In reply to this post by x8nnn

: 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"/>

the logs you posted don't inlcude anything about the query you executed,
so it's hard to guess what might be going wrong.

have you tried seraching for *:* to see if the documents are in there are
all?

have you looked at the LukeRequestHandler to see what terms have been
indexed in the contents field?

-Hoss

Reply | Threaded
Open this post in threaded view
|

Re: Newbie question about search

x8nnn
Thank you everyone for responses. I guess all was due to may little knowledge about schema.xml.
If you create new elements you need to change copy mechanism so that default search can work or you should change your query to include new  element.
Thanks again.

hossman wrote
: 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"/>

the logs you posted don't inlcude anything about the query you executed,
so it's hard to guess what might be going wrong.

have you tried seraching for *:* to see if the documents are in there are
all?

have you looked at the LukeRequestHandler to see what terms have been
indexed in the contents field?

-Hoss