Never mind, 
I understand now.

  I have <defaultSearchField>text</defaultSearchField>. 

I was searching on a string field with space in it and with no quotes.

This is causing to scan for text fields(since default search field is text)
in the schema.
Also in my schema there is an indexed field(AnimalNameText) which is not
populated which is a text field.

After I populate the text field, I get only the results I am expecting.

Thanks for the pointer Jorge !





Yerraguntla wrote:
> 
> Hmm,
> 
> I dont have any <defaultField> defined in the schema.xml.
> Can you give the exact syntax how it looks like in schema.xml
> 
> I have <defaultSearchField>text</defaultSearchField>. 
> Does it mean if sufficient requested count not available, it looks for the
> search string in any of the text fields that are indexed?
> 
> Thanks
> Ravi
> 
> 
> Jorge Solari wrote:
>> 
>> Your query
>> 
>> AnimalName:German Shepard.
>> 
>> means
>> 
>> AnimalName:German <defaultField>:Shepard.
>> 
>> whichever the defaultField is
>> 
>> Try with
>> AnimalName:"German Shepard"
>> 
>> or
>> 
>> AnimalName:German AND AnimalName:Shepard.
>> 
>> 
>> 
>> On Thu, Oct 30, 2008 at 12:58 PM, Yerraguntla <[EMAIL PROTECTED]>
>> wrote:
>> 
>>>
>>> Hi,
>>>
>>> I have a data set with the following schema.
>>>
>>> PersonName:Text
>>> AnimalName:Text
>>> PlantName:Text
>>>
>>> <.... lot more attributes about each of them like nick name, animal nick
>>> name, plant generic name etc which are multually exclusive>
>>> UniqueId:long
>>>
>>> For each of the document data set, there will be only one value of the
>>> above
>>> three.
>>>
>>> In my solr query from client
>>>
>>> I am using AnimalName:German Shepard.
>>>
>>> The return result contains
>>> PersonName with 'Shepard' in it, even though I am querying on AnimalName
>>> field.
>>> Can anyone point me whats happening and how to prevent scanning other
>>> columns/fields.
>>>
>>> I appreciate your help.
>>>
>>> Thanks
>>> Ravi
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Solr-Searching-on-other-fields-which-are-not-in-query-tp20249798p20249798.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Solr-Searching-on-other-fields-which-are-not-in-query-tp20249798p20252950.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to