<?xml version="1.0" encoding="UTF-8"?>
<ObjectDefinition xmlns:xi="http://www.w3.org/2001/XInclude" type="exc" indexType="incremental">
	<Document type="default">
		<xi:include href="../../../components/ILIAS/ILIASObject/LuceneDataSource.xml" />
		<xi:include href="../../../components/ILIAS/Tagging/LuceneDataSource.xml" />
		<xi:include href="../../../components/ILIAS/MetaData/LuceneDataSource.xml" />
        <xi:include href="../../../components/ILIAS/AdvancedMetaData/LuceneDataSource.xml" />
    </Document>
	<Document type="subItem">
		<DataSource type="JDBC" action="create">
			<Query>
				SELECT 'exc' type, 'ass' subType, exc_id, id, title, instruction
				FROM exc_assignment
				WHERE exc_id IN (?)
			</Query>
			<Param format="list" type="int" value="objId" />
			<Field global="YES" store="YES" index="ANALYZED" column="title" type="text" name="propertyMedium" />
			<Field global="YES" store="YES" index="ANALYZED" column="instruction" type="text" name="propertyLow" />
			<Field global="YES" store="YES" index="NOT_ANALYZED" column="id" type="integer" name="subItem" />
            <Field global="YES" store="YES" index="NOT_ANALYZED" column="subType" type="text" name="subType" />
			<Field global="NO" store="YES" index="NOT_ANALYZED" column="exc_id" type="integer" name="objId"  />
			<Field global="NO" store="YES" index="NOT_ANALYZED" column="type" type="text" name="type"  />
			<DataSource type="Directory" action="append">
				<PathCreator name="ExerciseAssignmentPathCreator" />
				<Field store="YES" index="ANALYZED" name="content">
					<Transformer name="LinefeedSanitizer" />
				</Field>
			</DataSource>

		</DataSource>

	</Document>
</ObjectDefinition>
