You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Giovanni Fernandez-Kincade <gf...@capitaliq.com> on 2009/11/30 21:54:32 UTC

*:* Returning no results

Hi,
I created a brand new core (on Solr 1.4), added a few documents and then searched for *:*, but got no results. Strangely enough, if I search for a specific document I know is in the index, like say "versionId:3", I get the expected result.

Any ideas on why that might be?

Thank,
Gio.

Re: *:* Returning no results

Posted by Erik Hatcher <er...@gmail.com>.
Are you sure you're hitting the same core?  Did a commit?  Are you  
possibly using the dismax query parser (where *:* is fairly  
meaningless)?

	Erik

On Nov 30, 2009, at 3:54 PM, Giovanni Fernandez-Kincade wrote:

> Hi,
> I created a brand new core (on Solr 1.4), added a few documents and  
> then searched for *:*, but got no results. Strangely enough, if I  
> search for a specific document I know is in the index, like say  
> "versionId:3", I get the expected result.
>
> Any ideas on why that might be?
>
> Thank,
> Gio.


RE: *:* Returning no results

Posted by Giovanni Fernandez-Kincade <gf...@capitaliq.com>.
Hmm. When I include debugQuery=on I get two results (which is accurate):
<result name="response" numFound="2" start="0">

Otherwise I get 
<result name="response" numFound="0" start="0"/>


Why would you get different results with debugging on? Does anything look peculiar here?


<lst name="debug">
 <str name="rawquerystring">*:*</str>
 <str name="querystring">*:*</str>

 <str name="parsedquery">MatchAllDocsQuery(*:*)</str>
 <str name="parsedquery_toString">*:*</str>
 <lst name="explain">
  <str name="255">
1.0 = (MATCH) MatchAllDocsQuery, product of:
  1.0 = queryNorm
</str>
  <str name="3">
1.0 = (MATCH) MatchAllDocsQuery, product of:
  1.0 = queryNorm
</str>
 </lst>

 <str name="QParser">LuceneQParser</str>
 <lst name="timing">
  <double name="time">93.0</double>
  <lst name="prepare">
	<double name="time">0.0</double>
	<lst name="org.apache.solr.handler.component.QueryComponent">
	 <double name="time">0.0</double>

	</lst>
	<lst name="org.apache.solr.handler.component.FacetComponent">
	 <double name="time">0.0</double>
	</lst>
	<lst name="org.apache.solr.handler.component.MoreLikeThisComponent">
	 <double name="time">0.0</double>
	</lst>
	<lst name="org.apache.solr.handler.component.HighlightComponent">

	 <double name="time">0.0</double>
	</lst>
	<lst name="org.apache.solr.handler.component.StatsComponent">
	 <double name="time">0.0</double>
	</lst>
	<lst name="org.apache.solr.handler.component.DebugComponent">
	 <double name="time">0.0</double>

	</lst>
  </lst>
  <lst name="process">
	<double name="time">93.0</double>
	<lst name="org.apache.solr.handler.component.QueryComponent">
	 <double name="time">78.0</double>
	</lst>
	<lst name="org.apache.solr.handler.component.FacetComponent">

	 <double name="time">0.0</double>
	</lst>
	<lst name="org.apache.solr.handler.component.MoreLikeThisComponent">
	 <double name="time">0.0</double>
	</lst>
	<lst name="org.apache.solr.handler.component.HighlightComponent">
	 <double name="time">0.0</double>

	</lst>
	<lst name="org.apache.solr.handler.component.StatsComponent">
	 <double name="time">0.0</double>
	</lst>
	<lst name="org.apache.solr.handler.component.DebugComponent">
	 <double name="time">15.0</double>
	</lst>
  </lst>

 </lst>
</lst>

-----Original Message-----
From: Smiley, David W. [mailto:dsmiley@mitre.org] 
Sent: Monday, November 30, 2009 4:02 PM
To: solr-user@lucene.apache.org
Cc: Giovanni Fernandez-Kincade
Subject: Re: *:* Returning no results

Add debugQuery=on to give you clues.

~ David Smiley
Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/


On Nov 30, 2009, at 3:54 PM, Giovanni Fernandez-Kincade wrote:

> Hi,
> I created a brand new core (on Solr 1.4), added a few documents and then searched for *:*, but got no results. Strangely enough, if I search for a specific document I know is in the index, like say "versionId:3", I get the expected result.
> 
> Any ideas on why that might be?
> 
> Thank,
> Gio.






Re: *:* Returning no results

Posted by "Smiley, David W." <ds...@mitre.org>.
Add debugQuery=on to give you clues.

~ David Smiley
Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/


On Nov 30, 2009, at 3:54 PM, Giovanni Fernandez-Kincade wrote:

> Hi,
> I created a brand new core (on Solr 1.4), added a few documents and then searched for *:*, but got no results. Strangely enough, if I search for a specific document I know is in the index, like say "versionId:3", I get the expected result.
> 
> Any ideas on why that might be?
> 
> Thank,
> Gio.