title: Multiple Indexes in same Solr Core..?
body: <p>I am using Apache Solr..I have the following Scenario.. :</p>
  
  <p>I have Two table in my PostGreSQL database. One is "<strong><em>Cars</em></strong>". Other is "<strong>Dealers</strong>"</p>
  
  <p>Now i have a data-config file for <strong><em>Cars</em></strong> like the following : </p>
  
  <p>
      </p>
  
  <pre><code>&lt;document name="offerings"&gt;
      &lt;entity name="jc_offerings" query="select * from jc_offerings" &gt;
          &lt;field column="id" name="id" /&gt;
          &lt;field column="name" name="name" /&gt;
          &lt;field column="display_name" name="display_name" /&gt;
          &lt;field column="extra" name="extra" /&gt;
      &lt;/entity&gt;
  &lt;/document&gt;
  </code></pre>
  
  <p>I have a similar data--config.xml for "<strong><em>Dealers</em></strong>". It has the same fields as Cars : <em>name, extra</em> etc</p>
  
  <p>Now in my Schema.xml , i have defined the following fields : </p>
  
  <pre><code>&lt;fields&gt;
    &lt;field name="id" type="string"   indexed="true" /&gt;
    &lt;field name="name" type="name"  indexed="true" /&gt;
    &lt;field name="extra" type="extra"  indexed="true"  /&gt; 
  
    &lt;field name="CarsText" type="text_general" indexed="true" 
      stored="true" multiValued="true"/&gt;
  &lt;/fields&gt;
  
  &lt;uniqueKey&gt;id&lt;/uniqueKey&gt;
  &lt;defaultSearchField&gt;CarsText&lt;/defaultSearchField&gt;
  &lt;copyField source="name" dest="CarsText"/&gt;
  &lt;copyField source="extra" dest="CarsText"/&gt;
  </code></pre>
  
  <p>Now i want to search like : "where name is Maruti"..So how will Solr know Whether to Search ::: Cars Field : name OR Dealer Field "name"..??</p>
  
  <p>I have read to the following link : <a href="http://wiki.apache.org/solr/MultipleIndexes" rel="nofollow">http://wiki.apache.org/solr/MultipleIndexes</a></p>
  
  <p>But i am not able to understand how is works..??</p>
  
  <p>After reading that link : I made another field in My <strong>Cars</strong> and <strong>Dealers</strong> *<em>data-config.xml</em>* .. Something like :</p>
  
  <pre><code>&lt;field name="type" value="car" /&gt;  : in Cars date-config.xml
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;field name="type" value="dealer" /&gt;  : in Cars date-config.xml
  </code></pre>
  
  <p>And then in Schema.xml i created a new field : </p>
  
  <pre><code>&lt;field name="type" type="string"   indexed="true" stored="true" /&gt;  
  </code></pre>
  
  <p>And then i queried something like : </p>
  
  <p><code>localhost:8983/solr/select?q=name:Maruti&amp;fq=type:dealer</code></p>
  
  <p>But it dint Worked..!!</p>
  
  <p>So what should i do..??</p>