Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can easily accomplish this with Solr, just take a good read at the DataImportHandler: <a href="http://wiki.apache.org/solr/DataImportHandler" rel="nofollow">http://wiki.apache.org/solr/DataImportHandler</a> and to this example: <a href="http://wiki.apache.org/solr/MultipleIndexes" rel="nofollow">http://wiki.apache.org/solr/MultipleIndexes</a></p> <p>Then do some googleing around for specific examples about entities. Basically, your data-config.xml should like something like this (not tested):</p> <pre><code>&lt;entity name="books" transformer="TemplateTransformer" dataSource="myindex" query="SELECT * FROM t_books";&gt; &lt;field column="category" template="books" name="category"/&gt;&lt;/entity&gt; &lt;entity name="computers" dataSource="myindex" query="SELECT * FROM t_computers"&gt; &lt;field column="category" template="computers" name="category"/&gt;&lt;/entity&gt; </code></pre> <p>Use the template to separate the two entities and define the category field as a string in your schema.xml. Also, make sure you pay attention to how you set the unique id parameter, some info for this specific topic is here: <a href="http://lucene.472066.n3.nabble.com/Indexing-multiple-entities-td504464.html" rel="nofollow">http://lucene.472066.n3.nabble.com/Indexing-multiple-entities-td504464.html</a> and also check here: <a href="http://search.lucidimagination.com/search/document/f84c3abf7e859be1/dataimporthanlder_multiple_entities_will_step_into_each_other" rel="nofollow">http://search.lucidimagination.com/search/document/f84c3abf7e859be1/dataimporthanlder_multiple_entities_will_step_into_each_other</a></p> <p>With this approach you have the two sets of data in the same index, in case you want them to work for two separate search boxes, you could simply run your searches like:</p> <p>myquery AND category:(books) &lt;--- this would only get you the results from the books or this other one would only get you the computers results---> myquery AND category:(computers). Hope it helps. And for your pdf questions, I believe you have to use Apache's Tika module, I won't be of much help in here as i haven't used it myself, but here's the link: <a href="http://wiki.apache.org/solr/TikaEntityProcessor" rel="nofollow">http://wiki.apache.org/solr/TikaEntityProcessor</a> </p>
    singulars
    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. This table or related slice is empty.
    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