<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Selin Kurt on Medium]]></title>
        <description><![CDATA[Stories by Selin Kurt on Medium]]></description>
        <link>https://medium.com/@seliin.kurttt?source=rss-67af3fbd71ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zIrSce4fIWWI1d9Qah9-kQ.jpeg</url>
            <title>Stories by Selin Kurt on Medium</title>
            <link>https://medium.com/@seliin.kurttt?source=rss-67af3fbd71ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 17:38:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@seliin.kurttt/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Use Spell Check in Solr]]></title>
            <link>https://medium.com/@seliin.kurttt/use-spell-check-in-solr-cee7b72935c6?source=rss-67af3fbd71ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/cee7b72935c6</guid>
            <category><![CDATA[solr]]></category>
            <category><![CDATA[apache-solr]]></category>
            <category><![CDATA[spellchecked]]></category>
            <category><![CDATA[search-engines]]></category>
            <dc:creator><![CDATA[Selin Kurt]]></dc:creator>
            <pubDate>Sat, 28 May 2022 11:42:07 GMT</pubDate>
            <atom:updated>2022-05-28T11:42:07.164Z</atom:updated>
            <content:encoded><![CDATA[<p>Solr has a spell checker that is utilizable to give suggestions. It can be used in the “did you mean” feature of search engines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MNgTVcsyWLOw-fgYO2EeOg.png" /></figure><p>This feature is not available by default. In this article, I will explain step-by-step how to activate and use the spell check in SolrCloud.</p><h3><strong>1-) Configure Solr Config</strong></h3><p>Configuring solrconfig.xml file can basically be done in two ways:<br>1- Edit solrconfig.xml and send the file on Solr via Zookeper.<br>2- Use Solr Request API to edit solrconfig.xml file.</p><h4><strong><em>1- Edit solrconfig.xml and send the file on Solr via Zookeper</em></strong></h4><p>Go to your solrconfig.xml file on the server or get a copy from Solr Admin to edit the file.</p><h4><strong><em>Step 1: Define Spell Check</em></strong></h4><p>-Go to <strong>&lt;searchComponent name=”spellcheck” class=”solr.SpellCheckComponent”&gt;</strong></p><p><em>1.1.</em> Add the <strong>field </strong>you want to use to give suggestions. For example, using the name field, add it as below:<br> &lt;str name=”field”&gt;name&lt;/str&gt;</p><blockquote>Getting suggestions from multiple fields is possible by creating copy fields. <br>You just need to write your copy fields name hereafter creating the copy field and adding your fields to it.</blockquote><p><em>1.2.</em> Add your<strong> spell checker.</strong> <br>I will give an example on <strong>“</strong>IndexBasedSpellChecker” but there are <a href="https://solr.apache.org/guide/8_11/spell-checking.html#define-spell-check-in-solrconfig-xml">several spell checker</a>s in Solr. <br> &lt;str name=”classname”&gt;solr.IndexBasedSpellChecker&lt;/str&gt; <br> &lt;str name=”spellcheckIndexDir”&gt;./spellchecker&lt;/str&gt;</p><h4><strong>Step 2: Add it to Request Handler</strong></h4><p><strong>- </strong>Go to <strong>&lt;requestHandler name=”/select” class=”solr.SearchHandler”&gt;</strong></p><p>2.1. Add these lines inside &lt;lst name=”defaults”&gt; <br> &lt;str name=”spellcheck”&gt;true&lt;/str&gt; <br> &lt;str name=”spellcheck.count”&gt;10&lt;/str&gt; (optional)</p><p>2.2. You can add these lines to see suggestions in Solr Admin.<br> &lt;arr name=”last-components”&gt; <br> &lt;str&gt;spellcheck&lt;/str&gt; <br> &lt;/arr&gt;</p><h4>Step 3: Send the file via Zookeper</h4><p>Apply the above changes and save the solrconfig.xml file.</p><p>3.1. Open a terminal, and go to your /opt/solr directory. Run the below command in this directory:</p><blockquote>bin/solr zk cp -r <strong>SOLR_CONFIG_FILE_PATH</strong> zk:/configs/<strong>COLLECTION_NAME</strong>_config/solrconfig.xml -z <strong>ZOOKEPER_PORT</strong></blockquote><ul><li>Conventionally, ZooKeeper uses <strong>port 2181</strong> to listen for client connections.</li></ul><p>For me the command is as follows:</p><blockquote>bin/solr zk cp -r ./solrconfig.xml zk:/configs/mycollection_config/solrconfig.xml -z localhost:2181</blockquote><p>Expected output is:</p><blockquote>Copying from ‘./solrconfig.xml’ to ‘zk:/configs/mycollection_config/solrconfig.xml’. ZooKeeper at localhost:2181</blockquote><h4>2- Use Solr Request API to edit solrconfig.xml file</h4><ul><li><em>Request URL : <br></em>http://SOLR_PORT/solr/COLLECTION_NAME/config</li><li>Request Method: POST</li><li>Content-Type: application/json</li><li>Request Body:</li></ul><pre>{ <br> “update-searchcomponent”: {<br>      // search component changes<br> },<br> “update-requesthandler”: {<br>     // request handler changes<br> } <br>}</pre><p>Example Curl:</p><pre>curl --location --request POST &#39;<a href="http://10.240.242.183:8983/solr/acc_93cafcd36c000_v12_202202211158/config&#39;">http://localhost:8983/solr/mycollection/config&#39;</a> \<br>--header &#39;Content-type: application/json&#39; \<br>--data-raw &#39;{<br>  &quot;update-searchcomponent&quot;:{<br>      &quot;name&quot;: &quot;spellcheck&quot;,<br>      &quot;class&quot;: &quot;solr.SpellCheckComponent&quot;,<br>      &quot;spellchecker&quot;:{<br>          &quot;classname&quot;: &quot;solr.IndexBasedSpellChecker&quot;,<br>          &quot;spellcheckIndexDir&quot;: &quot;./spellchecker&quot;,<br>          &quot;field&quot;: &quot;name&quot;,<br>          &quot;buildOnCommit&quot;: &quot;true&quot;<br>      }<br>   },<br>  &quot;update-requesthandler&quot;:{<br>      &quot;name&quot;: &quot;/select&quot;,<br>      &quot;class&quot;: &quot;solr.SearchHandler&quot;,<br>      &quot;defaults&quot;:{<br>          &quot;echoParams&quot;: &quot;explicit&quot;,<br>          &quot;rows&quot;: 10,<br>          &quot;spellcheck&quot;: &quot;true&quot;,<br>          &quot;spellcheck.count&quot;: 10<br>      },<br>      &quot;last-components&quot;: [<br>          &quot;spellcheck&quot;<br>      ] <br>  }}</pre><p>You can find Config API details in<strong> </strong><a href="https://solr.apache.org/guide/7_4/config-api.html"><strong>here</strong></a><strong>.</strong></p><h3>2-) Check for Changes in the Solr Config</h3><p>If you check the Solr Config file from the Solr Admin, you will see that the changes you have made are not reflected in the file. Because Solr Config changes are written to the <strong>configoverlay.json </strong>file.</p><p>In Solr Admin, open the configoverlay.json (It is under the Files directory.)<br>- <em>You should see something like this:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*aN7IrwX_VkuqBGroc_Z4gQ.png" /></figure><blockquote>If you can’t see your changes in configoverlay.json that means your solr config file could not update successfully. Go back to the first step and check the changes you applied.</blockquote><h3>3-) Add SpellCheck to Query</h3><p>Fill in the spellcheck field at the bottom of the Solr Admin panel. <br>I filled these fields:<br>- spellcheck.q : The word you want to get suggestions.<br>- spellcheck.count : Specifies the max number of suggestions to be made for a word.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*lFD96Q292c77UV4_fChLqw.png" /></figure><p>You can find explanation of all parameters <a href="https://solr.apache.org/guide/6_6/spell-checking.html#SpellChecking-SpellCheckParameters">here</a>.</p><p><strong>Example query:</strong></p><blockquote>query?q=*:*&amp;q.op=OR&amp;indent=true&amp;spellcheck=true&amp;spellcheck.build=true&amp;spellcheck.q=clasic&amp;spellcheck.count=1</blockquote><pre><em>You can see the suggestions at the bottom of the response after running the query:</em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*u_ADebOPOcbgAfiAGkfH5Q.png" /></figure><p>I think Solr makes really good suggestions with its spellcheck feature. If you’re someone who is into search engines, there’s a lot to explore on Solr, and it’s pretty fun!</p><p>Thank you for reading this article. Hope to continue with other writings!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cee7b72935c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Twelve-Factor App Methodology]]></title>
            <link>https://medium.com/segmentify-tech/the-twelve-factor-app-methodology-c1fdc6ab3ad5?source=rss-67af3fbd71ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1fdc6ab3ad5</guid>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[women-who-code]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[the-twelve-factor-app]]></category>
            <dc:creator><![CDATA[Selin Kurt]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 10:55:30 GMT</pubDate>
            <atom:updated>2022-03-18T10:56:33.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QV-Lt9YOJ8PcUeOGHLZzHQ.png" /></figure><p>This article will discuss the Twelve-Factor App Methodology and the importance of applying these in software projects.</p><p>But let’s start from the beginning. What does methodology, which we use most of the time, actually mean in software?</p><blockquote>A software/system development methodology in software engineering is<br> <strong>a systematic approach that is used to define the system model and</strong> <strong>structure, plan, control the system’s development process.</strong></blockquote><p><strong>What is theTwelve-Factor App Methodology and Why is It Important?</strong></p><ul><li>The 12 Factor App is a set of principles that can scale quickly, be maintained consistently, and supply discipline and standards in software projects. It aims to build <a href="https://en.wikipedia.org/wiki/Software_as_a_service">software-as-a-service</a> applications.</li><li>When developing software, it is necessary to consider coding, system administration, database management, performance, etc. The 12 Factor App offers robust techniques to manage all these requirements.</li><li>By following these 12 approaches, you can have long-term, robust, high-quality, and maintainable software. Also, these twelve-factors increase the reliability of the software. So it provides clarity on whether the software is production-ready or not.</li></ul><h4><strong><em>1. Codebase</em></strong></h4><p>The codebase is any single repo or set of repos in a version control system that lets you manage and keep track of your source code history.</p><blockquote>There is only one codebase per app, but there will be many deploys of the app. <br>Deploy is a running instance of the app that can be found in environments such as production, QA and development.</blockquote><p>If there is more than one codebase, it is a <strong>distributed system, not an app.</strong> Therefore, each component should implement twelve factors by itself.</p><h4>2. Dependencies</h4><p><em>“A twelve-factor app never relies on implicit existence of system-wide packages.”</em></p><p>Dependencies must be <strong><em>explicitly specified and isolated. </em></strong>According to the twelve-factor, dependency declaration and isolation must always be used together. Therefore, using a dependency isolation tool is just as important as using a dependency declaration tool because this ensures that no implicit dependencies are leaked from the system.</p><p>Another utility of this factor is that it simplifies setup for developers new to the app.</p><h4>3. Config</h4><p><em>“The config should be strictly separated from the code. Config varies substantially across deploys; code does not.”</em></p><blockquote>The twelve-factor app specifies that config must be stored in <em>environment variables.</em></blockquote><p>The most important goal here is to be able to easily change between deploys without changing any code and keep them to a language and OS-independent standard.</p><h4>4. Backing Services</h4><p>A backing service is any service the app consumes over the network as part of its ordinary operation so as data stores, messaging/queueing systems, SMTP services, and caching systems.</p><p>According to twelve-factor, a local server must be changed with a third-party service without changing the code. This should only be managed by changing the config file.</p><h4>5. Build, Release, Run</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xo2wd36esVMOot3QGGtcEQ.png" /></figure><p><em>“The twelve-factor app uses strict separation between the build, release and run stages.”</em></p><p>These life cycle steps should be <strong>implemented separately </strong>so that software deployment can be quick, continuous, and does not need any manual intervention.</p><h4>6. Processes</h4><p><em>“Twelve-factor processes are stateless and share-nothing.”</em></p><blockquote>Any data that will be needed again should be stored in a stateful backup service, like a database. The twelve-factor app never assumes any cached data will use it in the future.</blockquote><p>A stateless process makes scaling easier.</p><h4>7. Port Binding</h4><p><em>“Export services via port binding.”</em></p><p>Opening a service or an app to the network by port number is more reliable and easier to manage. For example, the web application exports HTTP as a service by connecting to a port and listening for requests from that port.</p><p>According to this factor, the application should run independently and not be connected to a web server. In this way, the application running from the port can easily be used as support services for other applications.</p><h4>8. Concurrency</h4><blockquote>Instead of making the app larger, create multiple processes and divide the workload between processes.</blockquote><p>It is not appropriate to move forward by making a single process larger.</p><p>When processes are distributed according to their purpose, it is easier to manage when needed. Applications continue to grow, do not just stay as they were developed for the first time. Therefore, distributing the newly created workloads according to the concurrency principle is very important for the <strong>app’s scalability</strong>.</p><h4>9. Disposability</h4><p><em>“Maximise robustness with </em><strong><em>fast startup</em></strong><em> and </em><strong><em>graceful shutdown</em></strong><em>.”</em></p><p>A fast startup means that all connections (e.g. database), access to network resources, and configuration are operational while starting the app.</p><p>Likewise, a graceful shutdown means ensuring all connections and network resources are properly terminated, and the shutdown events are logged.</p><blockquote>Fast and robust management of these processes is critical because the application can be started or stopped at a moment’s notice.</blockquote><h4>10. Dev/Prod Parity</h4><p>“Keep development, staging, and production as similar as possible.”</p><p>There shouldn’t be too many gaps between development and production. These gaps can be summarised as:</p><ul><li>The code that is written should go into production in a reasonable time. According to the twelve-factor, it is not correct that writing code would take too long to get into production.</li><li>Not only ops engineers but also developers are closely involved in code distribution to watch the code’s behaviour in production.</li><li>Tools used by developers and tools used in production should be kept as similar as possible.</li></ul><p>This factor supports <strong>continuous deployment.</strong></p><h4>11. Logs</h4><p>Logs provide visibility into the behaviour of a running app by holding specific events in the past.</p><blockquote>The twelve-factor app doesn’t be concerned with the management of logs.</blockquote><p>The app should <strong>only deal with the log to be written to stdout</strong>. It doesn’t deal with the writing of the logs file. Also, the other processes like the storage, capture, and archiving of these logs manage by the execution environment.</p><h4>12. Admin Processes</h4><p>“Run admin/management tasks as one-off processes.”</p><p>One-off admin processes (e.g. database migrations) should be run in the same environment as the regular long-running processes of the app. They run against a release, using the same codebase and config as any process run against that release.</p><p>Thank you for taking the time to read this article!</p><p><strong>Reference:</strong> <a href="https://12factor.net/">12factor.net</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1fdc6ab3ad5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/segmentify-tech/the-twelve-factor-app-methodology-c1fdc6ab3ad5">The Twelve-Factor App Methodology</a> was originally published in <a href="https://medium.com/segmentify-tech">Segmentify Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>