lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <>
Subject Re: Solr 4.2 update/extract adding unknown field, can we change field type from string to text
Date Tue, 03 Sep 2013 10:03:07 GMT
You can use the dynamic fields feature of Solr to map unknown field
names to types.

For example, a dynamic field named as "*_s" i.e. any field name ending
with _s can be mapped to string and so on. In your cases, if your
field names do not follow a set pattern, then you can even specify a
dynamic field as "*" and map it to text type.


On Tue, Sep 3, 2013 at 12:00 PM, Jai <> wrote:
> hi,
> while indexing document with unknown fields, its adding unknown fields in
> schema but its always guessing it as string type. is it possible to specify
> default field type for unknown fields to some other type, like text so that
> it gets tokenized? also can we specify other properties by default like
> indexed/stored/multivalued?
> PS am using solr4.2.
> Thanks alot.
> Jai

Shalin Shekhar Mangar.

View raw message