So basically its just as I thought it was, thanks for the help :) I had checked the wiki before asking, but it lacks details and is often vague, or presuppose that you have knowledge about some specific terms without explaining them. Its all clear now, thanks to you ;)

Michael Imbeault
CHUL Research Center (CHUQ)
2705 boul. Laurier
Ste-Foy, QC, Canada, G1V 4G2
Tel: (418) 654-2705, Fax: (418) 654-2212



Chris Hostetter wrote:
: Thanks for the answer Yonik; I forgot about Multivalued fields! I'm not
: exactly sure of how to add multiple values to a single field (aside from
: fieldcopy). The code I'm thinking of using :

If you look at the exampledocs, "features" and "cat" are both multivalued
fields... you just list multiple <field>s with the same name in your

: Field in schema.xml : <field name ="abstract" type="text" indexed="true"
: stored="false" multivalued="true" />
:
: Where am I supposed to configure the value of the gap?
: positionIncrementGap in the fieldtype definition is my guess, but I'm

correct.

: not sure. Also, am I supposed to put multivalued in the fieldtype
: definition? Alternatively, could I put positionIncrementGap in the
: <field> that I posted just above?

I *think* positionIncrementGap has to be set by on the fieldtype ... but
i'm not 100% certain of that.

multiValued and the other field attributes (indexed, stored,
compressed, omitNorms) can be set on the field or inherited from the
fieldtype.

More info can be found in the comments of the example schema.xml, as well
as these wiki pages...

http://wiki.apache.org/solr/SchemaXml
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters


-Hoss

Reply via email to