<?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: DSE - Can Solr Index and Cassandra Secondary Indexes CoExists on Different Columns in same CF ?</title>
		<link>http://www.datastax.com/support-forums/topic/dse-can-solr-index-and-cassandra-secondary-indexes-coexists-on-different-columns-in-same-cf</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 03:35:02 +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/dse-can-solr-index-and-cassandra-secondary-indexes-coexists-on-different-columns-in-same-cf" rel="self" type="application/rss+xml" />

		<item>
			<title>shruti on "DSE - Can Solr Index and Cassandra Secondary Indexes CoExists on Different Columns in same CF ?"</title>
			<link>http://www.datastax.com/support-forums/topic/dse-can-solr-index-and-cassandra-secondary-indexes-coexists-on-different-columns-in-same-cf#post-7565</link>
			<pubDate>Mon, 19 Nov 2012 06:03:18 +0000</pubDate>
			<dc:creator>shruti</dc:creator>
			<guid isPermaLink="false">7565@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi ,&#60;br /&#62;
Thanks for the reply . Initially in our application , we were using cassandra secondary indexes . now with the same schema , we have moved to Solr queries . I just wanted to know , if I can use existing cassandra CF with existing secondary indexes on some columnns and create Solr indexes on other columns in the same CF .&#60;/p&#62;
&#60;p&#62;I did try this out , as mentioned above, however DSE behavior was not consistent , sometimes it was able to create Solr indexes on columns , in which secondary indexes existed for other columns .&#60;/p&#62;
&#60;p&#62;However sometimes it will throw exception that index already exists .&#60;/p&#62;
&#60;p&#62;Just wanted to clear out my confusion .&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rockbrain on "DSE - Can Solr Index and Cassandra Secondary Indexes CoExists on Different Columns in same CF ?"</title>
			<link>http://www.datastax.com/support-forums/topic/dse-can-solr-index-and-cassandra-secondary-indexes-coexists-on-different-columns-in-same-cf#post-7454</link>
			<pubDate>Fri, 09 Nov 2012 18:57:47 +0000</pubDate>
			<dc:creator>rockbrain</dc:creator>
			<guid isPermaLink="false">7454@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;You cannot mix and match secondary indexes with Solr.  Also, if you are using Solr, it is more efficient than the other secondary index solution and provides more functionality.  &#60;/p&#62;
&#60;p&#62;Can you elaborate on your use case?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shruti on "DSE - Can Solr Index and Cassandra Secondary Indexes CoExists on Different Columns in same CF ?"</title>
			<link>http://www.datastax.com/support-forums/topic/dse-can-solr-index-and-cassandra-secondary-indexes-coexists-on-different-columns-in-same-cf#post-7438</link>
			<pubDate>Thu, 08 Nov 2012 06:06:01 +0000</pubDate>
			<dc:creator>shruti</dc:creator>
			<guid isPermaLink="false">7438@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi All,&#60;br /&#62;
I am  using DSE for my solr queries . Currently I have a requirement for a solr index and cassandra secondary index to exist in same column family but different Columns , such that if I query column which is Solrbased Index , I also get Columns which are indexed through Cassandra.&#60;/p&#62;
&#60;p&#62;My Schema.xml currently looks like -&#60;br /&#62;
&#38;lt;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34; ?&#38;gt;&#60;br /&#62;
&#38;lt;schema name=&#34;cf4&#34; version=&#34;1.1&#34;&#38;gt;&#60;br /&#62;
&#38;lt;types&#38;gt;&#60;br /&#62;
      &#38;lt;fieldType name=&#34;text&#34; class=&#34;solr.TextField&#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;cidx1&#34;  type=&#34;text&#34; indexed=&#34;false&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;field name=&#34;cidx2&#34;  type=&#34;text&#34; indexed=&#34;false&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;field name=&#34;sidx1&#34;  type=&#34;text&#34; indexed=&#34;true&#34; stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;field name=&#34;sidx2&#34;  type=&#34;text&#34; indexed=&#34;true&#34; stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;/fields&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;defaultSearchField&#38;gt;sidx1&#38;lt;/defaultSearchField&#38;gt;&#60;br /&#62;
&#38;lt;uniqueKey&#38;gt;sidx1&#38;lt;/uniqueKey&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;/schema&#38;gt;&#60;/p&#62;
&#60;p&#62;and my CF Definition -&#60;/p&#62;
&#60;p&#62;CREATE COLUMN FAMILY cf4&#60;br /&#62;
 WITH column_type = Standard&#60;br /&#62;
  AND key_validation_class = 'UTF8Type'&#60;br /&#62;
  AND comparator =  'UTF8Type'&#60;br /&#62;
  AND default_validation_class = 'UTF8Type'&#60;br /&#62;
  AND column_metadata = [&#60;br /&#62;
  {column_name: sidx1, validation_class: UTF8Type}&#60;br /&#62;
  {column_name: sidx2, validation_class: UTF8Type}&#60;br /&#62;
  {column_name: cidx1, validation_class: UTF8Type, index_type: KEYS}&#60;br /&#62;
  {column_name: cidx2, validation_class: UTF8Type, index_type: KEYS}&#60;br /&#62;
  ];&#60;/p&#62;
&#60;p&#62;cidx1 and cidx2 are two columns indexed thorough cassandra , but need to be returned in Solr search query .&#60;/p&#62;
&#60;p&#62;This is currently throwing Exception stating -&#60;br /&#62;
Not Solr-based type of index is found: testKeyspace1_cf4_cidx2_index&#34;&#60;/p&#62;
&#60;p&#62;However , if I send my schema.xml as-&#60;br /&#62;
&#38;lt;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34; ?&#38;gt;&#60;br /&#62;
&#38;lt;schema name=&#34;cf4&#34; version=&#34;1.1&#34;&#38;gt;&#60;br /&#62;
&#38;lt;types&#38;gt;&#60;br /&#62;
      &#38;lt;fieldType name=&#34;text&#34; class=&#34;solr.TextField&#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;sidx1&#34;  type=&#34;text&#34; indexed=&#34;true&#34; stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;field name=&#34;sidx2&#34;  type=&#34;text&#34; indexed=&#34;true&#34; stored=&#34;true&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;/fields&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;defaultSearchField&#38;gt;sidx1&#38;lt;/defaultSearchField&#38;gt;&#60;br /&#62;
&#38;lt;uniqueKey&#38;gt;sidx1&#38;lt;/uniqueKey&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;/schema&#38;gt;&#60;/p&#62;
&#60;p&#62;It Works fine , however when I query based on sidx1 OR sidx2 I donot get fields indexed through Cassandra cidx1 and cidx2 .&#60;/p&#62;
&#60;p&#62;Please let me know if this case is achievable , or am I missing on something .&#60;/p&#62;
&#60;p&#62;Thanks !
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
