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 Jean-Claude Dauphin <jc...@gmail.com> on 2011/02/07 21:19:04 UTC
Indexing a date from a POJO
Hi,
I would like to know if the code below is correct, because the date is not
well displayed in Luke
I have a POJO with a date defined as follow:
public class SolrPositionDTO {
@Field
private String address;
@Field
private Date beginDate;
And in the schema config file the field is defined as:
<field name="beginDate" type="date" indexed="true" stored="true" />
Thanks in advance for yr help
JCD
--
Jean-Claude Dauphin
jc.dauphin@gmail.com
jc.dauphin@afus.unesco.org
http://kenai.com/projects/j-isis/
http://www.unesco.org/isis/
http://www.unesco.org/idams/
http://www.greenstone.org