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 Brian Klippel <br...@theport.com> on 2009/08/24 22:34:49 UTC
why would a search for a specific field value fail when data is present?
Hopefully, someone can tell me what is going wrong here.
I have a field, "SearchObjectType", and a large number of the documents
indexed in a give core have a value of "USER_PROFILE".
When I examine the schema browser in admin, it confirms this. The term
"USER_PROFILE" is the top term for this field, with a frequency of 7918
of 9202.
When I query for this (SearchObjectType:USER_PROFILE), I get nothing.
When I query for the #2 term(SearchObjectType:TEST_COMMUNITY_GROUPS), I
get the proper number of documents (matching what schema browser
reports).
Here are example responses:
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>
<lst name="params">
<str name="indent">on</str>
<str name="start">0</str>
<str name="q">SearchObjectType:USER_PROFILE</str>
<str name="version">2.2</str>
<str name="rows">10</str>
</lst>
</lst>
<result name="response" numFound="0" start="0"/>
</response>
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>
<lst name="params">
<str name="indent">on</str>
<str name="start">0</str>
<str name="q">SearchObjectType:TEST_COMMUNITY_GROUPS</str>
<str name="version">2.2</str>
<str name="rows">10</str>
</lst>
</lst>
<result name="response" numFound="678" start="0">
Re: why would a search for a specific field value fail when data is
present?
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Tue, Aug 25, 2009 at 2:04 AM, Brian Klippel <br...@theport.com> wrote:
> Hopefully, someone can tell me what is going wrong here.
>
>
>
> I have a field, "SearchObjectType", and a large number of the documents
> indexed in a give core have a value of "USER_PROFILE".
>
>
>
> When I examine the schema browser in admin, it confirms this. The term
> "USER_PROFILE" is the top term for this field, with a frequency of 7918
> of 9202.
>
>
>
> When I query for this (SearchObjectType:USER_PROFILE), I get nothing.
> When I query for the #2 term(SearchObjectType:TEST_COMMUNITY_GROUPS), I
> get the proper number of documents (matching what schema browser
> reports).
>
>
Can you please post the field type and field definition of SearchObjectType
from schema.xml? Also, can you add debugQuery=on to the request parameters
and post the debug output?
--
Regards,
Shalin Shekhar Mangar.