> ya...but when i set indexed="false" for a particular field, and i search as
> *:* then it will search all documents thats true, but what i think is it
> should not contain the field which i set as indexed="true".
> for example in a document fields are id, author,title. and i for author
> field i set indexed="false", then author should not be indexed and when i
> perform search  as *:* it should show all documents as
> <doc>
> <string name= "id"> id1</string>
> <string name="title">t1</string>
> <string name="author">a1</string>
> </doc>

Well, since I am only a beginner myself I have to say what my
experience is - given that I have cleared my index, restarted,
reindexed with new schema settings and do a restart (which is probably
overdone)
and if the schema I indexed with says indexed = false, stored=true for
author and I search for author:a1 then I will get 0 results as I
expect and if I search for id:id1 then it will show
 <doc>
 <string name= "id"> id1</string>
 <string name="title">t1</string>
 <string name="author">a1</string>
 </doc>
as  I expect - is this what is happening for you?

if it is happening and you are confused as to why I can't answer why
on a technical level as I assume it is based on design decisions which
I would agree don't seem sensible to me but is very probably based on
some underlying technical reason that I am not familiar with.

If you want to make sure that you do only see id and title in your
result then either set stored = false for author (although why would
you have a field that was both not stored and not indexed I don't
know) or use the fl parameter on your request to give the list of
fields you want returned - for example &fl=id,title in the querystring
for the request should mean you would just see
<string name= "id"> id1</string>
 <string name="title">t1</string>
and not
 <string name="author">a1</string>

Best Regards,
Bryan Rasmussen

Reply via email to