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 Sagar Khetkade <sa...@hotmail.com> on 2009/02/02 07:53:14 UTC

Dynamic fields in schema.xml file


Hi,
 
I am trying out the dynamic field in schema.xml with its attribute as true. Right now I indexing 10000 articles having five fields in which the two fields are explicitly mention as text field and others are the dynamic fields. But while search if the query is fired on the last of the dynamic field then the results are retrieved but not for the earlier dynamic fields. 
 
Eg:  A, B, C, D and E  are the fields. A and B are the explicitly mentioned fields with A fields having attribute as indexed=true and stored=true and B is having indexed=true. Here A field is unique so is a required fields.
Other fields coming (C, D and E) are considered as dynamic fields with attribute indexed=true. So if search is made on E the results are retrieved but results are not coming while search on C and D. 
I have also cross verified with document frequency count. The document frequency count is coming for A, B and C field but not on C and D fields. 
I am stuck up on this issue. Is the schema ( my thinking ) is wrong or something else. 
 
Regards,
Sagar Khetkade
_________________________________________________________________
Plug in to the MSN Tech channel for a full update on the latest gizmos that made an impact.
http://computing.in.msn.com/

Re: Dynamic fields in schema.xml file

Posted by Vicky_Dev <vi...@yahoo.co.in>.
Hi Sagar,

Change dynamic field attribute( C,D and E)--stored = true and validate

if above suggestion is not working , can you share your schema and
solrconfig xml contents?


~Vikrant


Sagar Khetkade-2 wrote:
> 
> 
> 
> Hi,
>  
> I am trying out the dynamic field in schema.xml with its attribute as
> true. Right now I indexing 10000 articles having five fields in which the
> two fields are explicitly mention as text field and others are the dynamic
> fields. But while search if the query is fired on the last of the dynamic
> field then the results are retrieved but not for the earlier dynamic
> fields. 
>  
> Eg:  A, B, C, D and E  are the fields. A and B are the explicitly
> mentioned fields with A fields having attribute as indexed=true and
> stored=true and B is having indexed=true. Here A field is unique so is a
> required fields.
> Other fields coming (C, D and E) are considered as dynamic fields with
> attribute indexed=true. So if search is made on E the results are
> retrieved but results are not coming while search on C and D. 
> I have also cross verified with document frequency count. The document
> frequency count is coming for A, B and C field but not on C and D fields. 
> I am stuck up on this issue. Is the schema ( my thinking ) is wrong or
> something else. 
>  
> Regards,
> Sagar Khetkade
> _________________________________________________________________
> Plug in to the MSN Tech channel for a full update on the latest gizmos
> that made an impact.
> http://computing.in.msn.com/
> 

-- 
View this message in context: http://www.nabble.com/Dynamic-fields-in-schema.xml-file-tp21784970p21796922.html
Sent from the Solr - User mailing list archive at Nabble.com.