UDT configuration example
Example of UDT configuration for DSE Search.
In the search schema, declare the UDTField class
<fieldType class="com.datastax.bdp.search.solr.core.types.TupleField"
name="UDTField"/>
Note: Use CQL commands to manage search indexes.
Create a type with the UDT
You must create a type for UDTs.
CREATE TYPE Address (street text, city text)
Create a table with the tuple
CREATE TABLE Location ( id text primary key, address frozen<Address> );
Configure the UDTField in the search schema
<field name="address" type="UDTField" indexed="true" stored="true"/>
<field name="address.street" type="text" indexed="true" stored="true"/>
<field name="address.city" type="text" indexed="true" stored="true"/>