<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: Solr dynamic field causing cassandra error on dse 2.2</title>
		<link>http://www.datastax.com/support-forums/topic/solr-dynamic-field-causing-cassandra-error-on-dse-22</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 04:02:22 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/solr-dynamic-field-causing-cassandra-error-on-dse-22" rel="self" type="application/rss+xml" />

		<item>
			<title>jpayne97 on "Solr dynamic field causing cassandra error on dse 2.2"</title>
			<link>http://www.datastax.com/support-forums/topic/solr-dynamic-field-causing-cassandra-error-on-dse-22#post-7809</link>
			<pubDate>Tue, 04 Dec 2012 13:00:59 +0000</pubDate>
			<dc:creator>jpayne97</dc:creator>
			<guid isPermaLink="false">7809@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;That is what the problem was.  The strange thing is someone else at work has a keyspace with a column family setup to be bytestype with dynamic fields and his works fine.  That is why we couldn't figure out why mine wasn't working.&#60;br /&#62;
Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sam on "Solr dynamic field causing cassandra error on dse 2.2"</title>
			<link>http://www.datastax.com/support-forums/topic/solr-dynamic-field-causing-cassandra-error-on-dse-22#post-7800</link>
			<pubDate>Tue, 04 Dec 2012 11:19:09 +0000</pubDate>
			<dc:creator>sam</dc:creator>
			<guid isPermaLink="false">7800@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;What is the default validator for the column family? The Solr/Cassandra handler in DSE is trying to insert the value &#34;test&#34; from the img_1 field into a new column (also named img_1) in Cassandra. If this column isn't pre-defined in the column family schema, it will be validated using the default validator for the column family (which appears to be BytesType). Changing the default validator to UTF8Type should avoid this error and permit string values, but if you add other dynamic fields whose values don't conform to UTF8Type's validation rules, you'll encounter similar issues.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jpayne97 on "Solr dynamic field causing cassandra error on dse 2.2"</title>
			<link>http://www.datastax.com/support-forums/topic/solr-dynamic-field-causing-cassandra-error-on-dse-22#post-7786</link>
			<pubDate>Mon, 03 Dec 2012 20:29:23 +0000</pubDate>
			<dc:creator>jpayne97</dc:creator>
			<guid isPermaLink="false">7786@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Trying to do a simple add to solr, but every time I get an error back when I have a dynamic field in the add.  Works without the dynamic field.  If I view the schema through the solr schema browser, it loads it as expected.  Basic default solrconfig.xml is used.&#60;/p&#62;
&#60;p&#62;In the error below it mentions wanting the data to be hex, which if I do change my text in the dynamic field to be a hex string, it works, but thats not what I want to store there.&#60;/p&#62;
&#60;p&#62;Keyspace is setup as:&#60;br /&#62;
Settings&#60;br /&#62;
replica_placement_strategy	org.apache.cassandra.locator.NetworkTopologyStrategy&#60;br /&#62;
Replication Strategy Options&#60;br /&#62;
Solr	1&#60;/p&#62;
&#60;p&#62;ERROR:&#60;/p&#62;
&#60;p&#62;org.apache.cassandra.db.marshal.MarshalException: cannot parse 'test' as hex bytes&#60;br /&#62;
	at org.apache.cassandra.db.marshal.BytesType.fromString(BytesType.java:74)&#60;br /&#62;
	at com.datastax.bdp.cassandra.index.solr.CassandraDirectUpdateHandler2.addDoc(CassandraDirectUpdateHandler2.java:288)&#60;br /&#62;
	at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)&#60;br /&#62;
	at org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:115)&#60;br /&#62;
	at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:133)&#60;br /&#62;
	at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:78)&#60;br /&#62;
	at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)&#60;br /&#62;
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)&#60;br /&#62;
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1460)&#60;br /&#62;
	at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:353)&#60;br /&#62;
	at com.datastax.bdp.cassandra.index.solr.CassandraDispatchFilter.execute(CassandraDispatchFilter.java:190)&#60;br /&#62;
	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:248)&#60;br /&#62;
	at com.datastax.bdp.cassandra.index.solr.CassandraDispatchFilter.doFilter(CassandraDispatchFilter.java:151)&#60;br /&#62;
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&#60;br /&#62;
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&#60;br /&#62;
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)&#60;br /&#62;
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)&#60;br /&#62;
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)&#60;br /&#62;
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)&#60;br /&#62;
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)&#60;br /&#62;
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)&#60;br /&#62;
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)&#60;br /&#62;
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)&#60;br /&#62;
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)&#60;br /&#62;
	at java.lang.Thread.run(Unknown Source)&#60;br /&#62;
Caused by: java.lang.NumberFormatException: Non-hex characters in test&#60;br /&#62;
	at org.apache.cassandra.utils.Hex.hexToBytes(Hex.java:60)&#60;br /&#62;
	at org.apache.cassandra.db.marshal.BytesType.fromString(BytesType.java:70)&#60;br /&#62;
	... 24 more&#60;/p&#62;
&#60;p&#62;schema.xml&#60;/p&#62;
&#60;p&#62;&#38;lt;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34; ?&#38;gt;&#60;br /&#62;
&#38;lt;schema name=&#34;item&#34; version=&#34;1.5&#34;&#38;gt;&#60;br /&#62;
	&#38;lt;types&#38;gt;&#60;br /&#62;
		&#38;lt;fieldType name=&#34;string&#34; class=&#34;solr.StrField&#34; sortMissingLast=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;!-- A text field that only splits on whitespace for exact matching of words --&#38;gt;&#60;br /&#62;
		&#38;lt;fieldType name=&#34;text_ws&#34; class=&#34;solr.TextField&#34; positionIncrementGap=&#34;100&#34;&#38;gt;&#60;br /&#62;
			&#38;lt;analyzer&#38;gt;&#60;br /&#62;
				&#38;lt;tokenizer class=&#34;solr.WhitespaceTokenizerFactory&#34;/&#38;gt;&#60;br /&#62;
			&#38;lt;/analyzer&#38;gt;&#60;br /&#62;
		&#38;lt;/fieldType&#38;gt;&#60;br /&#62;
		&#38;lt;fieldType name=&#34;text&#34; class=&#34;solr.TextField&#34; positionIncrementGap=&#34;100&#34;&#38;gt;&#60;br /&#62;
			&#38;lt;analyzer type=&#34;index&#34;&#38;gt;&#60;br /&#62;
				&#38;lt;tokenizer class=&#34;solr.StandardTokenizerFactory&#34;/&#38;gt;&#60;br /&#62;
				&#38;lt;!-- &#38;lt;filter class=&#34;solr.StopFilterFactory&#34; ignoreCase=&#34;true&#34; words=&#34;stopwords.txt&#34; enablePositionIncrements=&#34;true&#34; /&#38;gt; --&#38;gt;&#60;br /&#62;
				&#38;lt;!-- in this example, we will only use synonyms at query time&#60;br /&#62;
        &#38;lt;filter class=&#34;solr.SynonymFilterFactory&#34; synonyms=&#34;index_synonyms.txt&#34; ignoreCase=&#34;true&#34; expand=&#34;false&#34;/&#38;gt;  --&#38;gt;&#60;br /&#62;
				&#38;lt;filter class=&#34;solr.LowerCaseFilterFactory&#34;/&#38;gt;&#60;br /&#62;
			&#38;lt;/analyzer&#38;gt;&#60;br /&#62;
			&#38;lt;analyzer type=&#34;query&#34;&#38;gt;&#60;br /&#62;
				&#38;lt;tokenizer class=&#34;solr.StandardTokenizerFactory&#34;/&#38;gt;&#60;br /&#62;
				&#38;lt;!-- &#38;lt;filter class=&#34;solr.StopFilterFactory&#34; ignoreCase=&#34;true&#34; words=&#34;stopwords.txt&#34; enablePositionIncrements=&#34;true&#34; /&#38;gt; --&#38;gt;&#60;br /&#62;
				&#38;lt;!-- &#38;lt;filter class=&#34;solr.SynonymFilterFactory&#34; synonyms=&#34;synonyms.txt&#34; ignoreCase=&#34;true&#34; expand=&#34;true&#34;/&#38;gt; --&#38;gt;&#60;br /&#62;
				&#38;lt;filter class=&#34;solr.LowerCaseFilterFactory&#34;/&#38;gt;&#60;br /&#62;
			&#38;lt;/analyzer&#38;gt;&#60;br /&#62;
		&#38;lt;/fieldType&#38;gt;&#60;br /&#62;
		&#38;lt;fieldType name=&#34;ignored&#34; stored=&#34;false&#34; indexed=&#34;false&#34; multiValued=&#34;true&#34; class=&#34;solr.StrField&#34; /&#38;gt;&#60;br /&#62;
	&#38;lt;/types&#38;gt;&#60;br /&#62;
	&#38;lt;fields&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;id&#34; type=&#34;string&#34; indexed=&#34;true&#34; stored=&#34;true&#34; required=&#34;true&#34; multiValued=&#34;false&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;upc&#34; type=&#34;string&#34; indexed=&#34;true&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;labelDesc&#34; type=&#34;text&#34; indexed=&#34;true&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;longDesc&#34; type=&#34;text&#34; indexed=&#34;true&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;commonName&#34; type=&#34;text&#34; indexed=&#34;true&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;consumerSize&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;consumerSizeUom&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;consumerPkgType&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;manufacturer&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;brandName&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;fmlyTreePrimDept&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;fmlyTreeRcpDept&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;fmlyTreeDept&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;fmlyTreeCmdty&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;fmlyTreeSubCmdty&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;dynamicField name=&#34;img_*&#34; type=&#34;string&#34; indexed=&#34;false&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;!--&#38;lt;dynamicField name=&#34;con_*&#34; type=&#34;string&#34; indexed=&#34;true&#34; stored=&#34;true&#34; /&#38;gt;&#60;br /&#62;
		&#38;lt;dynamicField name=&#34;*&#34; type=&#34;ignored&#34; multiValued=&#34;true&#34;/&#38;gt;--&#38;gt;&#60;br /&#62;
	&#38;lt;/fields&#38;gt;&#60;br /&#62;
	&#38;lt;defaultSearchField&#38;gt;labelDesc&#38;lt;/defaultSearchField&#38;gt;&#60;br /&#62;
	&#38;lt;uniqueKey&#38;gt;id&#38;lt;/uniqueKey&#38;gt;&#60;br /&#62;
&#38;lt;/schema&#38;gt;&#60;/p&#62;
&#60;p&#62;example add&#60;/p&#62;
&#60;p&#62;&#38;lt;add&#38;gt;&#60;br /&#62;
	&#38;lt;doc boost=&#34;1.0&#34;&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;id&#34;&#38;gt;00005210000150&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;upc&#34;&#38;gt;00005210000150&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;labelDesc&#34;&#38;gt;MCCORMICK GRILL MATES SPICY MONTREAL STEAK&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;longDesc&#34;/&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;commonName&#34;&#38;gt;SPICES SEASONINGS STEAK SPICE&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;consumerSize&#34;&#38;gt;3.12&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;consumerSizeUom&#34;&#38;gt;OZ&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;consumerPkgType&#34;&#38;gt;SHAKER&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;manufacturer&#34;&#38;gt;MCCORMICK&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;brandName&#34;&#38;gt;MCCORMICK&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;fmlyTreePrimDept&#34;&#38;gt;GROCERY&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;fmlyTreeRcpDept&#34;&#38;gt;GROCERY&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;fmlyTreeDept&#34;&#38;gt;GROCERY&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;fmlyTreeCmdty&#34;&#38;gt;SPICES &#38;amp; EXTRACTS&#38;lt;/field&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;fmlyTreeSubCmdty&#34;/&#38;gt;&#60;br /&#62;
		&#38;lt;field name=&#34;img_1&#34;&#38;gt;test&#38;lt;/field&#38;gt;&#60;br /&#62;
	&#38;lt;/doc&#38;gt;&#60;br /&#62;
&#38;lt;/add&#38;gt;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
