I am not sure. It is showing in the debug logs as below. 

0.5967079 = (MATCH) fieldWeight(name:2124 in 0), product of: 1.4142135 =
tf(termFreq(name:2124)=2) 1.1251632 = idf

This is how I have done.
I have a class NameDTO which contains all these variables. I have @Field
annotation to these fields. My schema.xml file contains as I have said
below. Is that because I have @Field annotation it is indexing? 

-----Original Message-----
From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 26, 2008 5:47 PM
To: solr-user@lucene.apache.org
Subject: Re: Deleting indices

On Wed, Nov 26, 2008 at 5:01 PM, Raghunandan Rao <
[EMAIL PROTECTED]> wrote:

> Ok.
> I have another query on search.
>
> I have given two fields to be indexed = true in xml.
>
> <field name="name" type="text" stored="true" />
> <field name="id" type="integer" indexed="true" stored="true"
> required="false"/>
> <field name="deptid" type="integer" indexed="true" stored="true"
> required="false"/>
>
> But when I try to search on non-indexed "name" field it is able to
retrieve
> records. How is this possible?
>

It is not possible. There must be an indexed field which contained that
value.

Execute your query from the web interface and add debugQuery=true to
your
search request to see details on how it is being searched.
-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to