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 Isha Garg <is...@orkash.com> on 2011/01/17 07:18:53 UTC

Regardind subfield Enquiry

Hi,
  Can we define subfield of a field in schema.
like if I defined a field name=Person can I define  subfields 
Male,Female for Person field. Tell me how to implement this type of 
requirement in schema.xml.

Re: Regardind subfield Enquiry

Posted by Grijesh <pi...@gmail.com>.
In schema you can define as many fields you want .There is not any concept of
subfield.If you want many values can be added then use MultiValued field fro
that.

-----
Thanx:
Grijesh
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Regardind-subfield-Enquiry-tp2270574p2270869.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Regardind subfield Enquiry

Posted by Isha Garg <is...@orkash.com>.
On Monday 17 January 2011 12:10 PM, Grijesh wrote:
> Define a new field gender for that and for query use filter
> gender:male/female
>
> -----
> Thanx:
> Grijesh
>    
actually i want to enquire the subfield concept in schema like if I have 
field name=clause and can it be divided into subfields Subject,Verb 
,Object subfields.

Re: Regardind subfield Enquiry

Posted by Grijesh <pi...@gmail.com>.
Define a new field gender for that and for query use filter
gender:male/female 

-----
Thanx:
Grijesh
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Regardind-subfield-Enquiry-tp2270574p2270636.html
Sent from the Solr - User mailing list archive at Nabble.com.