lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Claude Dauphin <jc.daup...@gmail.com>
Subject Indexing a date from a POJO
Date Mon, 07 Feb 2011 11:44:46 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message