<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Apache Solr on Igor Zarvanskyi Blog</title>
        <link>https://clutcher.dev/tags/apache-solr/</link>
        <description>Recent content in Apache Solr on Igor Zarvanskyi Blog</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <copyright>Igor Zarvanskyi</copyright>
        <lastBuildDate>Sun, 04 Aug 2024 15:20:11 +0200</lastBuildDate><atom:link href="https://clutcher.dev/tags/apache-solr/rss.xml" rel="self" type="application/rss+xml" /><item>
            <title>Ant target to switch between different Solr servers on local env</title>
            <link>https://clutcher.dev/post/hybris/switching_solr_versions_on_local/</link>
            <pubDate>Wed, 28 Feb 2024 11:00:02 +0100</pubDate>
            <guid>https://clutcher.dev/post/hybris/switching_solr_versions_on_local/</guid>
            <description>&lt;p&gt;With Solr 8&amp;rsquo;s support ending in June 2024, it&amp;rsquo;s crucial for local environments to transition to Solr 9. Unlike cloud installations of SAP Commerce (where you can easily switch Solr versions via &lt;code&gt;manifest.json&lt;/code&gt;), local setups encounter difficulties in switching between Solr versions.&lt;/p&gt;</description>
        </item><item>
            <title>How to use same solr index for different index types</title>
            <link>https://clutcher.dev/post/hybris/same_solr_index_for_different_types/</link>
            <pubDate>Fri, 17 Nov 2023 10:14:22 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/same_solr_index_for_different_types/</guid>
            <description>&lt;p&gt;There are cases, when it is required to use same solr index to index/search different itemtypes. For example, it is required to have in search box autocompletion different types, like Product and Media. Another common use case would be display on search result page search results of different itemtypes mixed together (for example, Product, Media, custom Resource itemtype).&lt;/p&gt;</description>
        </item><item>
            <title>Fix wrong session user during Solr Hot reindex</title>
            <link>https://clutcher.dev/post/hybris/hot_reindex_bug/</link>
            <pubDate>Fri, 24 Dec 2021 10:53:22 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/hot_reindex_bug/</guid>
            <description>&lt;p&gt;Solr hot update indexing always uses current session user, for example current backoffice user, who triggered solr hot reindex. In lots of real world cases it would lead to wrong results in solr due to different flexible search restrictions, which are applied to backoffice user and solr indexing user.&lt;/p&gt;</description>
        </item><item>
            <title>How to add flexible search restriction for Product with custom session attribute and resolve all exceptions</title>
            <link>https://clutcher.dev/post/hybris/flexible_search_restriction_with_custom_session_attributes/</link>
            <pubDate>Fri, 21 Dec 2018 14:31:04 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/flexible_search_restriction_with_custom_session_attributes/</guid>
            <description>&lt;p&gt;OOTB hybris has a powerful &amp;ldquo;Flexible Search Restriction&amp;rdquo; system, which allows transparently restrict access to any hybris item type. Due to flexible search restrictions are implemented on a very low level of hybris ORM time to time unexpected issues can appear even for simple restrictions.&lt;/p&gt;</description>
        </item><item>
            <title>Fix OOTB integration test locale error</title>
            <link>https://clutcher.dev/post/hybris/locale_issue_in_ootb_tests/</link>
            <pubDate>Sun, 25 Nov 2018 10:32:14 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/locale_issue_in_ootb_tests/</guid>
            <description>&lt;p&gt;OOTB hybris &lt;code&gt;ant modulegen&lt;/code&gt; generates accelerator with integration tests, which fails if default language of host operation system is not english.&lt;/p&gt;</description>
        </item><item>
            <title>Synchronize catalogs from business process</title>
            <link>https://clutcher.dev/post/hybris/catalog_synchronization_in_business_process/</link>
            <pubDate>Tue, 16 May 2017 17:10:04 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/catalog_synchronization_in_business_process/</guid>
            <description>&lt;p&gt;Starting catalog synchronization with &lt;code&gt;CatalogVersionSyncJob&lt;/code&gt; in a bussiness process action leads to &lt;em&gt;&amp;ldquo;Error in worker SyncWorker : Entity not found ( pk = 8794627343487 name = &amp;lsquo;de.hybris.platform.persistence.&lt;wbr/&gt;processing_CronJob&amp;rsquo; type code = &amp;lsquo;501&amp;rsquo; db table = &amp;lsquo;cronjobs&amp;rsquo;)&amp;rdquo;&lt;/em&gt;. I didn&amp;rsquo;t find a way to fix such behaviour of syncing inside business process action, but I resolved this issue by triggering event from process action and running SyncJob in event listener. For me sync performs well only via &lt;code&gt;SetupSyncJobService&lt;/code&gt;, performing job via &lt;code&gt;CatalogSynchronizationService&lt;/code&gt; causes exception in SyncWorker.&lt;/p&gt;</description>
        </item><item>
            <title>Switch solr client on POST requests</title>
            <link>https://clutcher.dev/post/hybris/switch_solr_client_on_post/</link>
            <pubDate>Thu, 24 Nov 2016 14:04:23 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/switch_solr_client_on_post/</guid>
            <description>&lt;p&gt;From time to time I have been receiving from customer support service messages that filter functionality on PLP returns no results. Finally, after 1 year of such messages our QA team was able to reproduce the issue. The root of the issue is too many filters, which causes creation of very long requests, which can&amp;rsquo;t be processed by solr server. Solr server is shipped with Jetty, which has 8KB limit to URL length. You can change this limit by adding &lt;code&gt;&amp;lt;Set name=&amp;quot;requestHeaderSize&amp;quot;&amp;gt; 200000 &amp;lt;/Set&amp;gt;&lt;/code&gt; to &lt;code&gt;server/contexts/solr-jetty-context.xml&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;After discussions with DevOps Lead and Tech Lead we decided that in our case will be better to force hybris solr client to use POST requests instead of GET and don&amp;rsquo;t change solr server OOTB settings (by default Jetty has limitation to 200KB for POST body). Unfortunately hybris doesn&amp;rsquo;t provide any configuration for such switching, and it must be done manually by overriding &lt;code&gt;DefaultFacetSearchStrategy&lt;/code&gt;.&lt;/p&gt;</description>
        </item><item>
            <title>How to search different itemtypes with one `SolrFacetSearchConfig`</title>
            <link>https://clutcher.dev/post/hybris/solr_category_index/</link>
            <pubDate>Sat, 16 Jan 2016 18:26:23 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/solr_category_index/</guid>
            <description>&lt;p&gt;Adding &lt;code&gt;Category&lt;/code&gt; itemtype for indexing doesn&amp;rsquo;t require any specific actions, except adding corresponding changes to &lt;code&gt;solr.impex&lt;/code&gt; files. But in case of two different itemtypes in one &lt;code&gt;SolrFacetSearchConfig&lt;/code&gt; it is not enough just to change impexes you also need to adopt java source code.&lt;/p&gt;</description>
        </item></channel>
</rss>
