lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kallu, Sreenivasa (HQP)" <>
Subject RE: How to convert string field to date
Date Thu, 28 Jan 2016 23:45:52 GMT
Thanks steve for prompt response.

I tried workaround one. 
i.e.  1. Add attr_date via add-dynamic-field instead of add-field (even though the name has
no asterisk)

I am able to add dynamic field  attr_date. But while starting the solr , I am getting following
Could not load conf for core sreenimsg: Dynamic field name 'attr_date' should have either
a leading or a trailing asterisk, and no others.

So solr looking for either leading * or trailing * in the dynamic field name.

I can see similar problems in workaround 2.

Any other suggestions?

Advanced Thanks.
--sreenivasa kallu

-----Original Message-----
From: Steve Rowe [] 
Sent: Thursday, January 28, 2016 1:17 PM
Subject: Re: How to convert string field to date

Hi Sreenivasa,

This is a known bug:

(though the problem is not just about catch-all fields as the issue currently indicates -
all dynamic fields are affected)

Two workarounds (neither tested):

1. Add attr_date via add-dynamic-field instead of add-field (even though the name has no asterisk)
2. Remove the attr_* dynamic field, add attr-date, then add attr_* back; these can be done
with a single request.

I’ll update SOLR_8607 to reflect these things.


> On Jan 28, 2016, at 3:58 PM, Kallu, Sreenivasa (HQP) <>
> Hi,
>       I am new to solr.
> I am using managed-schema. I am not using schema.xml.  I am indexing outlook email messages.
> I can see only see three fields ( id,_version_,_text_) defined in 
> managed-schema. Remaining fields are handled by following dynamic 
> field <dynamicField name="attr_*" type="text_general" indexed="true" 
> stored="true" multiValued="true"/>
> I have field name attr_date with type string. I want convert this 
> field type to date. Currently date range is not working on this field. 
> I tried schema API to add new field attr_date and got following error 
> message "Field 'attr_date' already exists".  I tried to replace field type to date and
got following error message "The field 'attr_date' is not present in this schema, and so cannot
be replaced".
> Please help me to convert "attr_date"  field type to date.
> Advanced Thanks.
> --sreenivasa kallu

View raw message