lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattmann, Chris A (388J)" <chris.a.mattm...@jpl.nasa.gov>
Subject Re: SOLR-1131 - Multiple Fields per Field Type
Date Thu, 10 Dec 2009 15:29:59 GMT
Hi Grant,

On 12/10/09 3:16 AM, "Grant Ingersoll" <gsingers@apache.org> wrote:

> 
> I'm not sure this works, as you need to specify the type of the subfield,
> which is what Option B does.   I don't think inheritance is the what is going
> on here, more like delegation, and that isn't necessarily needed for all
> implementations, but just happens to be how it is done for the example in
> question.  People implementing FieldTypes could certainly just encode things
> the way they want using their own internal mechanism (or the existing ones,
> but w/o configuration).

Well if that doesn't work then option A doesn't work either because it
doesn't specify the subFieldType. I'm also not sure that option B works too
because what if there are multiple subFieldTypes? For instance, what if I
want to store one of the polyField's subTypes as a tint,and the other as a
regular int? How would that be specified.

Either way you need some combination of A + B, or (my preference) B + C.

Cheers,
Chris


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: Chris.Mattmann@jpl.nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department University of
Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Mime
View raw message