Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>2 different tables no relation</p> <p><strong>data-config.xml:</strong></p> <pre><code> &lt;document&gt; &lt;entity name="topic" transformer="TemplateTransformer" pk="topic_id" query="select topic_id,topic_title,creation_date,updation_date,vote_count,....."&gt; &lt;field column=" doc_id " template="TOPIC_${topic.topic_id} " /&gt; &lt;field column="doc_type " template="TOPIC " /&gt; &lt;/entity&gt; &lt;entity name="product " transformer="TemplateTransformer " pk="product_id " query="SELECT product_id,..... "&gt; &lt;field column="doc_id " template="PRODUCT_${product.product_id} " /&gt; &lt;field column="doc_type " template="PRODUCT " /&gt; &lt;field column="product_supplier_id " name="product_supplier_id " /&gt; &lt;field column="supplier_product_code " name="supplier_product_code " /&gt; &lt;field column="product_display_name " name="product_display_name " /&gt; &lt;/entity&gt; &lt;/document&gt; </code></pre> <p><strong>schema.xml:</strong></p> <pre><code> &lt;schema&gt; . . . &lt;fields&gt; &lt;field name="doc_id" type="string" /&gt; &lt;field name="doc_type" type="string" /&gt; &lt;field name="catchall" type="string" stored="false" omitNorms="true" multiValued="true" /&gt; &lt;field name="topic_title" type="text_general" /&gt;. . . . &lt;/fields&gt; &lt;uniqueKey&gt;doc_id&lt;/uniqueKey&gt; &lt;copyField source="*" dest="catchall" /&gt; &lt;!-- field for the QueryParser to use when an explicit fieldname is absent --&gt; &lt;defaultSearchField&gt;catchall&lt;/defaultSearchField&gt; &lt;/schema&gt; </code></pre> <p>more info -<a href="http://www.lucidimagination.com/blog/2011/02/12/solr-powered-isfdb-part-4/" rel="nofollow">http://www.lucidimagination.com/blog/2011/02/12/solr-powered-isfdb-part-4/</a></p> <p>no above field should be required or may create problem while indexing</p> <p>you can query on browser like <code>http://localhost:8080/solr/select/?q=*:*&amp;fq=doc_type:PRODUCT</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload