I have restarted and re-indexed all the docs after the change in the
schema.xml. I was able to search even after that. 

I hit browser with this url

http://localhost:7001/solr/select?q=name:2124&fl=*&debugQuery=true


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

Did you change your schema.xml after you indexed the documents?

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

> 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.
>



-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to