Note that there are some explanatory texts on larger screens.

plurals
  1. POSearching Images in Solr
    text
    copied!<p>I am new to Solr. I need to be able to search on image meta data in Solr. Also, I need to have the simple search and view ability to view the image in Solr.</p> <p>Currently, 1) I crawl the sites with apache Nutch and then run indexsolr command to send the data to Solr. 2) I added there </p> <pre><code>&lt;requestHandler name="/update/extract" class="solr.extraction.ExtractingRequestHandler" &gt; &lt;lst name="defaults"&gt; &lt;str name="fmap.content"&gt;text&lt;/str&gt; &lt;str name="lowernames"&gt;true&lt;/str&gt; &lt;str name="uprefix"&gt;attr_&lt;/str&gt; &lt;str name="captureAttr"&gt;true&lt;/str&gt; </code></pre> <p> </p> <p>and </p> <pre><code>&lt;lib dir="/path-to-solr/example/solr/collection1/extract" regex=".*\.jar" /&gt; </code></pre> <p>(I created a folder extract and move all the jars from solar dist folder in there as well as tika related jars) to solrconfig.xml</p> <p>3) added to schema.xml the following fields</p> <pre><code>&lt;field name="host" type="string" stored="false" indexed="true"/&gt; &lt;field name="segment" type="string" stored="true" indexed="false"/&gt; &lt;field name="digest" type="string" stored="true" indexed="false"/&gt; enter code here &lt;field name="boost" type="float" stored="true" indexed="false"/&gt; &lt;field name="tstamp" type="date" stored="true" indexed="false"/&gt; &lt;!-- fields for index-anchor plugin --&gt; &lt;field name="anchor" type="string" stored="true" indexed="true" multiValued="true"/&gt; &lt;!-- fields for index-more plugin --&gt; &lt;field name="type" type="string" stored="true" indexed="true" multiValued="true"/&gt; &lt;field name="contentLength" type="long" stored="true" indexed="false"/&gt; &lt;field name="lastModified" type="date" stored="true" indexed="false"/&gt; &lt;field name="date" type="date" stored="true" indexed="true"/&gt; &lt;field name="aperture" type="double" indexed="true" stored="true"/&gt; &lt;field name="exposure" type="string" indexed="true" stored="true"/&gt; &lt;field name="exposure_time" type="double" indexed="true" stored="true"/&gt; &lt;field name="focal" type="string" indexed="true" stored="true"/&gt; &lt;field name="focal_35" type="string" indexed="true" stored="true"/&gt; &lt;!-- for indexing and parsing metadata plugin --&gt; &lt;field name="metatag.description" type="string" stored="true" indexed="true"/&gt; &lt;field name="metatag.keywords" type="string" stored="true" indexed="true"/&gt; </code></pre> <p>Looks like I am still missing something, since I cannot see the images in Solr.</p> <p>Do I need to explicitly add each image via something like:</p> <pre><code>curl "http://127.0.0.1:8983/solr/update/extract?literal.id=n1&amp;commit=true" -F "myfile=@my_image.jpg" </code></pre> <p>? Thanks</p>
 

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