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 Mike Summers <ms...@gmail.com> on 2012/10/11 19:49:43 UTC
Mapping Solr "types" to Java types when using solrj?
I suspect I'm thinking about this incorrectly given the puzzled responses I
get to this question, but here goes....
I'm using solj pojo's with dynamic types, if I have for instance a
schema.xml entries of:
<fieldType name="date" class="solr.DateField" sortMissingLast="true"
omitNorms="true"/>
and
<dynamicField name="*_dsm" type="date" indexed="false" stored="true"
multiValued="true"/>
What does Java type does my pojo use for the @Field?
@Field("startDate_dsm")
private Date startDate;
?
And I'd like to know the other solr Field classes map to in Java.
Like I said, my guess is I'm thinking about this incorrectly, and if so I'd
like to get an explanation of how this works. I suspect this has something
to do with everything being a document but it seems like Dates & Times
would have some specific format expectation.
Thanks in advance.