<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>solr multivalued field example - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/solr-multivalued-field-example/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/solr-multivalued-field-example/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Tue, 14 Sep 2021 10:20:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>solr multivalued field example - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/solr-multivalued-field-example/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Index multiple tables using SOLR ?</title>
		<link>https://www.wikitechy.com/interview-questions/apache-solr/how-to-index-multiple-tables-using-solr/</link>
					<comments>https://www.wikitechy.com/interview-questions/apache-solr/how-to-index-multiple-tables-using-solr/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 14:56:17 +0000</pubDate>
				<category><![CDATA[Apache Solr]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[apache interview questions]]></category>
		<category><![CDATA[apache interview questions and answers]]></category>
		<category><![CDATA[apache interview questions and answers for experienced]]></category>
		<category><![CDATA[apache multi core]]></category>
		<category><![CDATA[apache real time interview questions]]></category>
		<category><![CDATA[apache solr example application]]></category>
		<category><![CDATA[apache solr indexing]]></category>
		<category><![CDATA[apache solr interview questions]]></category>
		<category><![CDATA[apache solr performance]]></category>
		<category><![CDATA[apache solr requirements]]></category>
		<category><![CDATA[apache solr tutorial]]></category>
		<category><![CDATA[apache solr tutorial for beginners]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[how solr indexing works]]></category>
		<category><![CDATA[hybris solr interview questions]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[index multiple tables in solr]]></category>
		<category><![CDATA[Indiabulls Technology Solutions Ltd interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[Nagarro Software Pvt. Ltd interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Opentext Technologies interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[solr admin interview questions]]></category>
		<category><![CDATA[solr multicore]]></category>
		<category><![CDATA[solr multicore example]]></category>
		<category><![CDATA[solr multiple indexes]]></category>
		<category><![CDATA[solr multiple schemas]]></category>
		<category><![CDATA[solr multivalued field example]]></category>
		<category><![CDATA[solr questions and answers]]></category>
		<category><![CDATA[solr search multiple collections]]></category>
		<category><![CDATA[solr search multiple tables]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[WM Global Technology Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=240</guid>

					<description><![CDATA[Answer:If you have 2-3 different tables and they are kind of unrelated then in that case you need to have an extensive]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="index-multiple-tables-using-solr" class="color-purple" style="text-align: justify;">Index multiple tables using SOLR</h2>
</div>
</div>
<div class="row" style="text-align: justify;">
<div class="col-sm-12">
<p>There are various ways to do it and it depends on your table schema. Some simple ones would be like:</p>
<div class="Content">
<div class="hddn">
<ul>
<li>If you have 2-3 different tables and they are kind of unrelated then in that case you need to have an extensive Solr schema and just index each table separately. You would perform this only when you desire to use Solr for just search on documents present in dissimilar tables.</li>
<li>It’s like you have a table STUDENT (id,name,roll) and TEACHER (id,name,subject,qualification), you need to have these fields in your solr schema (id,name,roll,subject,qualification).</li>
<li>Now index the two tables either by solrj or use Data Import Handler.</li>
</ul>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>If you have different tables and have relations between them then you need to write SQL queries which perform joins between them and get the columns that you would like to index into solr.</li>
</ul>
</div>
</div>
<p>Indexing either of the two tables (and not both the tables):</p>
<div class="subheading">
<h2 id="db-config-xml">DB-config.xml</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">&lt;dataConfig&gt;<br/>&lt;dataSource driver=&quot;com.metamatrix.jdbc.MMDriver&quot; url=&quot;jdbc:.....&quot; /&gt;<br/>&lt;document name=&quot;doc&quot;&gt;<br/>&lt;entity name=&quot;table1&quot;<br/>query=&quot;select * from table1&quot;&gt;<br/>&lt;field column=&quot;ID&quot; name=&quot;ElementID&quot; /&gt;<br/>&lt;field column=&quot;Name&quot; name=&quot;ElementName&quot; /&gt;<br/>&lt;field column=&quot;ElementType&quot; name=&quot;ElementType&quot; /&gt;<br/>&lt;field column=&quot;RepId&quot; name=&quot;ElementRepId&quot; /&gt;<br/>&lt;/entity&gt;<br/><br/>&lt;entity name=&quot;table2&quot;<br/>query=&quot;select * from table2&quot;&gt;<br/>&lt;field column=&quot;id&quot; name=&quot;ElementPropertyID&quot; /&gt;<br/>&lt;field column=&quot;Name&quot; name=&quot;ElementPropertyName&quot; /&gt;<br/>&lt;field column=&quot;DataType&quot; name=&quot;ElementPropertyDataType&quot; /&gt;<br/>&lt;field column=&quot;RepId&quot; name=&quot;ElementPropertyRepId&quot; /&gt;<br/><br/>&lt;/entity&gt;<br/>&lt;/document&gt;<br/>&lt;/dataConfig&gt;</code></pre> </div>
</div>
<div class="subheading">
<h2 id="schema-xml">Schema.xml</h2>
</div>
<div class="CodeContent">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">&lt;fields&gt;<br/><br/>&lt;field name=&quot;ElementID&quot; type=&quot;string&quot; indexed=&quot;true&quot;<br/>stored=&quot;true&quot; /&gt;<br/>&lt;field name=&quot;ElementName&quot; type=&quot;string&quot; indexed=&quot;true&quot;<br/>stored=&quot;true&quot; /&gt;<br/>&lt;field name=&quot;ElementType&quot; type=&quot;string&quot; indexed=&quot;true&quot;<br/>stored=&quot;true&quot; /&gt;<br/>&lt;field name=&quot;ElementRepId&quot; type=&quot;string&quot; indexed=&quot;true&quot;<br/>stored=&quot;true&quot; /&gt;<br/><br/>&lt;field name=&quot;ElementPropertyID&quot; type=&quot;string&quot; indexed=&quot;true&quot;<br/>stored=&quot;true&quot; /&gt;<br/>&lt;field name=&quot;ElementPropertyName&quot; type=&quot;string&quot; indexed=&quot;true&quot;<br/>stored=&quot;true&quot; /&gt;<br/>&lt;field name=&quot;ElementPropertyDataType&quot; type=&quot;string&quot;<br/>indexed=&quot;true&quot; stored=&quot;true&quot; /&gt;<br/>&lt;field name=&quot;ElementPropertyRepId&quot; type=&quot;string&quot; indexed=&quot;true&quot;<br/>stored=&quot;true&quot; /&gt;<br/><br/><br/>&lt;dynamicField name=&quot;*&quot; type=&quot;ignored&quot; /&gt;<br/>&lt;/fields&gt;</code></pre> </div></figure>
</div>
</div>
<div class="CodeContent">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markdown code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markdown code-embed-code">&lt;uniqueKey&gt;ElementPropertyID&lt;/uniqueKey&gt;</code></pre> </div></figure>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/apache-solr/how-to-index-multiple-tables-using-solr/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
