<?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: Data inserted via CQL does not get run through Solr&#039;s copyField directives</title>
		<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 09:18:47 +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/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives" rel="self" type="application/rss+xml" />

		<item>
			<title>jkusar on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-4322</link>
			<pubDate>Mon, 30 Jul 2012 21:24:55 +0000</pubDate>
			<dc:creator>jkusar</dc:creator>
			<guid isPermaLink="false">4322@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Bah, I found my issue.  I had some 2.0 binaries floating around in my path mucking things up since this didn't work in 2.0.  Got everything cleaned up and it seems to be working now.  Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alexliu on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-4320</link>
			<pubDate>Mon, 30 Jul 2012 20:44:29 +0000</pubDate>
			<dc:creator>alexliu</dc:creator>
			<guid isPermaLink="false">4320@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;you can try test my example on DSE 2.1. I think it should work there as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jkusar on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-4318</link>
			<pubDate>Mon, 30 Jul 2012 20:41:44 +0000</pubDate>
			<dc:creator>jkusar</dc:creator>
			<guid isPermaLink="false">4318@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;That's very interesting.  How much longer till that version is released to the general public?  Is it available as a beta anywhere?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alexliu on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-4314</link>
			<pubDate>Mon, 30 Jul 2012 20:32:55 +0000</pubDate>
			<dc:creator>alexliu</dc:creator>
			<guid isPermaLink="false">4314@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;This is working in the incoming release, I am not sure DSE 2.1&#60;/p&#62;
&#60;p&#62;the following is result that I run&#60;/p&#62;
&#60;p&#62;cqlsh&#38;gt; use ks33;&#60;/p&#62;
&#60;p&#62;cqlsh:ks33&#38;gt; insert into cf3 (key,title,body) values ('12345','This is a title','This is some body text');&#60;br /&#62;
cqlsh:ks33&#38;gt; select * from cf3;&#60;br /&#62;
 KEY   &#124; body                   &#124; title&#60;br /&#62;
-------+------------------------+-----------------&#60;br /&#62;
 12345 &#124; This is some body text &#124; This is a title&#60;/p&#62;
&#60;p&#62;cqlsh:ks33&#38;gt; select * from cf3 where solr_query='text1:is';&#60;br /&#62;
 KEY   &#124; body                   &#124; title&#60;br /&#62;
-------+------------------------+-----------------&#60;br /&#62;
 12345 &#124; This is some body text &#124; This is a title&#60;/p&#62;
&#60;p&#62;cqlsh:ks33&#38;gt; select * from cf3 where solr_query='text1:body';&#60;br /&#62;
 KEY   &#124; body                   &#124; title&#60;br /&#62;
-------+------------------------+-----------------&#60;br /&#62;
 12345 &#124; This is some body text &#124; This is a title&#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;wikipedia&#34; version=&#34;1.1&#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;/&#38;gt;&#60;br /&#62;
  &#38;lt;fieldType name=&#34;text&#34; class=&#34;solr.TextField&#34;&#38;gt;&#60;br /&#62;
    &#38;lt;analyzer&#38;gt;&#38;lt;tokenizer class=&#34;solr.WikipediaTokenizerFactory&#34;/&#38;gt;&#38;lt;/analyzer&#38;gt;&#60;br /&#62;
  &#38;lt;/fieldType&#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;/&#38;gt;&#60;br /&#62;
    &#38;lt;field name=&#34;name&#34;  type=&#34;text&#34; indexed=&#34;true&#34;  stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;field name=&#34;body&#34;  type=&#34;text&#34; indexed=&#34;true&#34;  stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;field name=&#34;title&#34;  type=&#34;text&#34; indexed=&#34;true&#34;  stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;field name=&#34;date&#34;  type=&#34;string&#34; indexed=&#34;true&#34;  stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
    &#38;lt;field name=&#34;text1&#34;  type=&#34;text&#34; indexed=&#34;true&#34;  stored=&#34;true&#34; multiValued=&#34;true&#34;/&#38;gt;&#60;br /&#62;
 &#38;lt;/fields&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;defaultSearchField&#38;gt;body&#38;lt;/defaultSearchField&#38;gt;&#60;br /&#62;
&#38;lt;uniqueKey&#38;gt;id&#38;lt;/uniqueKey&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;copyField source=&#34;body&#34; dest=&#34;text1&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;copyField source=&#34;title&#34; dest=&#34;text1&#34;/&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;/schema&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jkusar on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-3897</link>
			<pubDate>Thu, 26 Jul 2012 18:07:23 +0000</pubDate>
			<dc:creator>jkusar</dc:creator>
			<guid isPermaLink="false">3897@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Ok, here's some steps to reproduce the problem.&#60;/p&#62;
&#60;p&#62;First modify the wikipedia schema as follows:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;schema name=&#38;quot;wikipedia&#38;quot; version=&#38;quot;1.1&#38;quot;&#38;gt;
 &#38;lt;types&#38;gt;
  &#38;lt;fieldType name=&#38;quot;string&#38;quot; class=&#38;quot;solr.StrField&#38;quot;/&#38;gt;
  &#38;lt;fieldType name=&#38;quot;text&#38;quot; class=&#38;quot;solr.TextField&#38;quot;&#38;gt;
    &#38;lt;analyzer&#38;gt;&#38;lt;tokenizer class=&#38;quot;solr.WikipediaTokenizerFactory&#38;quot;/&#38;gt;&#38;lt;/analyzer&#38;gt;
  &#38;lt;/fieldType&#38;gt;
 &#38;lt;/types&#38;gt;
 &#38;lt;fields&#38;gt;
    &#38;lt;field name=&#38;quot;id&#38;quot;  type=&#38;quot;string&#38;quot; indexed=&#38;quot;true&#38;quot;  stored=&#38;quot;true&#38;quot;/&#38;gt;
    &#38;lt;field name=&#38;quot;body&#38;quot;  type=&#38;quot;text&#38;quot; indexed=&#38;quot;true&#38;quot;  stored=&#38;quot;true&#38;quot;/&#38;gt;
    &#38;lt;field name=&#38;quot;text&#38;quot;  type=&#38;quot;text&#38;quot; indexed=&#38;quot;true&#38;quot;  stored=&#38;quot;true&#38;quot; multiValued=&#38;quot;true&#38;quot;/&#38;gt;
    &#38;lt;field name=&#38;quot;title&#38;quot;  type=&#38;quot;text&#38;quot; indexed=&#38;quot;true&#38;quot;  stored=&#38;quot;true&#38;quot;/&#38;gt;
    &#38;lt;field name=&#38;quot;date&#38;quot;  type=&#38;quot;string&#38;quot; indexed=&#38;quot;true&#38;quot;  stored=&#38;quot;true&#38;quot;/&#38;gt;
 &#38;lt;/fields&#38;gt;

&#38;lt;defaultSearchField&#38;gt;text&#38;lt;/defaultSearchField&#38;gt;
&#38;lt;uniqueKey&#38;gt;id&#38;lt;/uniqueKey&#38;gt;

&#38;lt;copyField source=&#38;quot;body&#38;quot; dest=&#38;quot;text&#38;quot;/&#38;gt;
&#38;lt;copyField source=&#38;quot;title&#38;quot; dest=&#38;quot;text&#38;quot;/&#38;gt;
&#38;lt;/schema&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Run the add schema script.&#60;/p&#62;
&#60;p&#62;From cqlsh add a record:&#60;br /&#62;
&#60;code&#62;cqlsh:wiki&#38;gt; insert into solr (key,title,body) values (&#38;#039;12345&#38;#039;,&#38;#039;This is a title&#38;#039;,&#38;#039;This is some body text&#38;#039;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Now from the solr admin tool, query for body.  You will get nothing as it is searching the 'text' field and nothing has been copied to it.  If you instead search for body:body (search for body within the body field), you get your record back.&#60;/p&#62;
&#60;p&#62;The copyField is definitely not happening.&#60;/p&#62;
&#60;p&#62;This is running a single solr node.  The keyspace is using SimpleStrategy with RF=1.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jkusar on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-3896</link>
			<pubDate>Thu, 26 Jul 2012 17:47:40 +0000</pubDate>
			<dc:creator>jkusar</dc:creator>
			<guid isPermaLink="false">3896@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I'm not using dynamic fields.  All nodes are Solr.  My schema is posted in another recent thread about copyField.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tjake on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-3884</link>
			<pubDate>Thu, 26 Jul 2012 15:01:35 +0000</pubDate>
			<dc:creator>tjake</dc:creator>
			<guid isPermaLink="false">3884@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Are you using dynamic fields and are all your nodes Solr nodes or do you have a mix?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jkusar on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-3879</link>
			<pubDate>Thu, 26 Jul 2012 14:41:28 +0000</pubDate>
			<dc:creator>jkusar</dc:creator>
			<guid isPermaLink="false">3879@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi Jake,&#60;/p&#62;
&#60;p&#62;I'm on 2.1.  I realize it's not stored, but the admin app should still report the tokens that are indexed.  One of my team members was able to find an instance where the fulltext search field has tokens in it.  I'm trying to figure out why those got there when others didn't.  There's definitely some weirdness going on as the simple app I put together does not copy the fields properly.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tjake on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-3875</link>
			<pubDate>Thu, 26 Jul 2012 14:15:06 +0000</pubDate>
			<dc:creator>tjake</dc:creator>
			<guid isPermaLink="false">3875@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;jkusar what version of DSE are you on?  2.1 does support copyField from CQL.  However the data in the copyField is not &#34;stored&#34; only indexed for search.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jkusar on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-3868</link>
			<pubDate>Thu, 26 Jul 2012 13:45:11 +0000</pubDate>
			<dc:creator>jkusar</dc:creator>
			<guid isPermaLink="false">3868@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Xedin, are you a datastax employee?  What you're saying is significantly different than what I've been told by other employees.  Basically, I'm not supposed to have to bifurcate my data.  I write to Cassandra and Solr gives me real time search capabilities and Hadoop gives me analytics.  All for free (or so goes the datastax promise).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xedin on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-3840</link>
			<pubDate>Thu, 26 Jul 2012 09:30:55 +0000</pubDate>
			<dc:creator>xedin</dc:creator>
			<guid isPermaLink="false">3840@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Yes, all the Solr specific things should be processed through Solr interface, all of the solr related indexes on the Cassandra CF could be viewed more like a Solr helpers for data persistence.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jas on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-3805</link>
			<pubDate>Thu, 26 Jul 2012 04:00:38 +0000</pubDate>
			<dc:creator>jas</dc:creator>
			<guid isPermaLink="false">3805@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Okay, that's good to know.  So, going through CQL, cassandra-cli, Hector etc., the indexes defined on the core column family are maintained, but any Solr-isms are outside its scope?  The core definition files, including &#60;code&#62;schema.xml&#60;/code&#62;, reside in the CF (placed there using the REST API), but mean nothing outside of Solr.&#60;/p&#62;
&#60;p&#62;How about the index-time textual analysis etc.? If there is Solr specific behavior required, then talk Solr to port 8983?&#60;/p&#62;
&#60;p&#62;I'm still talking to Solr, but I am looking into what I could do more directly using &#60;code&#62;sstableloader&#60;/code&#62;. Maybe that's not such a good idea.&#60;/p&#62;
&#60;p&#62;Jeff
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xedin on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives/page/2#post-3776</link>
			<pubDate>Wed, 25 Jul 2012 20:48:04 +0000</pubDate>
			<dc:creator>xedin</dc:creator>
			<guid isPermaLink="false">3776@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;It's a feature as CQL is not supposed to process that kind of situation, as it doesn't know anything about Solr or how columns are interconnected using it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jkusar on "Data inserted via CQL does not get run through Solr&#039;s copyField directives"</title>
			<link>http://www.datastax.com/support-forums/topic/data-inserted-via-cql-does-not-get-run-through-solrs-copyfield-directives#post-3772</link>
			<pubDate>Wed, 25 Jul 2012 19:32:40 +0000</pubDate>
			<dc:creator>jkusar</dc:creator>
			<guid isPermaLink="false">3772@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I've got a column family being indexed via solr.  My Solr schema uses copyField to copy everything into a single text field so that I can do fulltext searching against it.  I also use this, for example, to be able to have a field both tokenized as a text field and sortable as a string field.&#60;/p&#62;
&#60;p&#62;When I insert a record via the Solr interface this all works just great.  However, if I insert a record via CQL, the columns themselves get indexed, but the copyField never happens meaning that fulltext searching doesn't work.  My large text field is just empty.&#60;/p&#62;
&#60;p&#62;Is this a bug or a feature?  I'm really hoping it's just a bug and that it will be fixed or else I have to scrap and re-write a huge chunk of code and operate almost exclusively via the Solr interface (far less than ideal).  Assuming it is a bug, is there any chance it might be fixable in the near future?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Jason
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
