Le 02/07/2012 13:32, Ahmet Arslan a écrit :

--- On Mon, 7/2/12, Bruno Mannina <bmann...@free.fr> wrote:

From: Bruno Mannina <bmann...@free.fr>
Subject: Dynamic Field Name?
To: solr-user@lucene.apache.org
Date: Monday, July 2, 2012, 1:02 PM
Dear All,

In my XML files to index I have several abstract fields with
different languages.
I.e: ABEN, ABIT, ABFR, ABPT, etc....

I would like to:
Index & Store only the ABEN
and
Only Store all other AB* fields

Is it possible to write in the schema.xml

<field name="ABEN" type="text_en" indexed="true"
stored="true" multivalued="true" />
<dynamic name="AB*" type="text_general" indexed="false"
stored="true" multivalued="true" />

PS: multivalues because sometimes I have 2 or 3 items in the
same <doc>
Yes it is possible. Note that you need to use capital 'V' in multiValued option.

<dynamicField name="AB*" indexed="false"  stored="true" multiValued="true"/>

<field name="ABEN" indexed="true" stored="true" multiValued="true" />


ok thx !

Reply via email to