<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Stroom – solr</title>
    <link>/tags/solr/</link>
    <description>Recent content in solr on Stroom</description>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Tue, 15 Feb 2022 00:00:00 +0000</lastBuildDate>
    
	  <atom:link href="/tags/solr/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Docs: Solr Integration</title>
      <link>/docs/user-guide/indexing/solr/</link>
      <pubDate>Tue, 15 Feb 2022 00:00:00 +0000</pubDate>
      
      <guid>/docs/user-guide/indexing/solr/</guid>
      <description>
        
        
        
&lt;div class=&#34;alert alert-warning&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;alert-heading&#34;&gt;TODO&lt;/h4&gt;

    Complete this section.

&lt;/div&gt;


      </description>
    </item>
    
    <item>
      <title>Docs: Apache Solr</title>
      <link>/docs/howtos/search/solr/</link>
      <pubDate>Mon, 12 Jul 2021 00:00:00 +0000</pubDate>
      
      <guid>/docs/howtos/search/solr/</guid>
      <description>
        
        
        &lt;h2 id=&#34;assumptions&#34;&gt;Assumptions&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;You are familiar with Lucene indexing within Stroom&lt;/li&gt;
&lt;li&gt;You have some data to index&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;points-to-note&#34;&gt;Points to note&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;A Solr core is the home for exactly one Stroom index.&lt;/li&gt;
&lt;li&gt;Cores must initially be created in Solr.&lt;/li&gt;
&lt;li&gt;It is good practice to name your Solr core the same as your Stroom Index.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;method&#34;&gt;Method&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Start a docker container for a single solr node.

  






&lt;div class=&#34;code-toolbar&#34;&gt;
  &lt;pre 
    class=&#34;command-line language-bash&#34; 
    data-user=&#34;user&#34; 
    data-host=&#34;localhost&#34; 
    data-continuation-str=&#34;\&#34;
    data-filter-output=&#34;(out)&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;docker run -d -p 8983:8983 --name my_solr solr&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check your Solr node. Point your browser at http://yourSolrHost:8983&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a core in Solr using the CLI.&lt;/p&gt;

  






&lt;div class=&#34;code-toolbar&#34;&gt;
  &lt;pre 
    class=&#34;command-line language-bash&#34; 
    data-user=&#34;user&#34; 
    data-host=&#34;localhost&#34; 
    data-continuation-str=&#34;\&#34;
    data-filter-output=&#34;(out)&#34;&gt;&lt;code class=&#34;language-bash&#34;&gt;docker exec -it my_solr solr create_core -c test_index&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a SolrIndex in Stroom







  
  
  
  
  







  



&lt;div class=&#34;card rounded shadow-stroom p-2 td-post-card mb-4 mt-4&#34; style=&#34;width: fit-content;&#34;&gt;

  &lt;a title=&#34;images/HOWTOs/v7/HT_SimpleSolr_NewSolrIndex.png&#34; href=&#34;../../images/HOWTOs/v7/HT_SimpleSolr_NewSolrIndex.png&#34;&gt;
    &lt;figure style=&#34;margin-block-end: 0px&#34; &gt;
      
      &lt;img class=&#34;card-img-top&#34; src=&#34;../../images/HOWTOs/v7/HT_SimpleSolr_NewSolrIndex.png&#34; style=&#34;max-width: fit-content&#34; alt=&#34;images/HOWTOs/v7/HT_SimpleSolr_NewSolrIndex.png&#34;&gt;
      

      
      &lt;div class=&#34;card-body px-0 pt-2 pb-0&#34;&gt;
        &lt;hr style=&#34;border-top: 1px solid #ddd; margin-top: 0px; margin-bottom:4px;&#34;&gt;
        &lt;figcaption class=&#34;card-text&#34; style=&#34;font-size: smaller; text-align: center;&#34;&gt;New Solr Index&lt;/figcaption&gt;
      &lt;/div&gt;
      
    &lt;/figure&gt;
  &lt;/a&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Update settings for your new Solr Index in Stroom then press &amp;ldquo;Test Connection&amp;rdquo;.
If successful then press Save.
Note the &amp;ldquo;Solr URL&amp;rdquo; field is a reference to the newly created Solr core.







  
  
  
  
  







  



&lt;div class=&#34;card rounded shadow-stroom p-2 td-post-card mb-4 mt-4&#34; style=&#34;width: fit-content;&#34;&gt;

  &lt;a title=&#34;images/HOWTOs/v7/HT_SimpleSolr_Settings.png&#34; href=&#34;../../images/HOWTOs/v7/HT_SimpleSolr_Settings.png&#34;&gt;
    &lt;figure style=&#34;margin-block-end: 0px&#34; &gt;
      
      &lt;img class=&#34;card-img-top&#34; src=&#34;../../images/HOWTOs/v7/HT_SimpleSolr_Settings.png&#34; style=&#34;max-width: fit-content&#34; alt=&#34;images/HOWTOs/v7/HT_SimpleSolr_Settings.png&#34;&gt;
      

      
      &lt;div class=&#34;card-body px-0 pt-2 pb-0&#34;&gt;
        &lt;hr style=&#34;border-top: 1px solid #ddd; margin-top: 0px; margin-bottom:4px;&#34;&gt;
        &lt;figcaption class=&#34;card-text&#34; style=&#34;font-size: smaller; text-align: center;&#34;&gt;Solr Index Settings&lt;/figcaption&gt;
      &lt;/div&gt;
      
    &lt;/figure&gt;
  &lt;/a&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add some Index fields.
e.g.EventTime, UserId&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Retention is different in Solr, you must specify an expression that matches data that can be deleted.







  
  
  
  
  







  



&lt;div class=&#34;card rounded shadow-stroom p-2 td-post-card mb-4 mt-4&#34; style=&#34;width: fit-content;&#34;&gt;

  &lt;a title=&#34;images/HOWTOs/v7/HT_SimpleSolr_Retention.png&#34; href=&#34;../../images/HOWTOs/v7/HT_SimpleSolr_Retention.png&#34;&gt;
    &lt;figure style=&#34;margin-block-end: 0px&#34; &gt;
      
      &lt;img class=&#34;card-img-top&#34; src=&#34;../../images/HOWTOs/v7/HT_SimpleSolr_Retention.png&#34; style=&#34;max-width: fit-content&#34; alt=&#34;images/HOWTOs/v7/HT_SimpleSolr_Retention.png&#34;&gt;
      

      
      &lt;div class=&#34;card-body px-0 pt-2 pb-0&#34;&gt;
        &lt;hr style=&#34;border-top: 1px solid #ddd; margin-top: 0px; margin-bottom:4px;&#34;&gt;
        &lt;figcaption class=&#34;card-text&#34; style=&#34;font-size: smaller; text-align: center;&#34;&gt;Solr Retention&lt;/figcaption&gt;
      &lt;/div&gt;
      
    &lt;/figure&gt;
  &lt;/a&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Your Solr Index can now be used as per a Stroom Lucene Index.
However, your Indexing pipeline must use a SolrIndexingFilter instead of an IndexingFilter.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
  </channel>
</rss>
