<?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 Uğur Özyılmaz on Medium]]></title>
        <description><![CDATA[Stories by Uğur Özyılmaz on Medium]]></description>
        <link>https://medium.com/@ugurozyilmaz08?source=rss-ecdb0980dc1c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MEyCoULC5QAd8HEdFSTDdQ.png</url>
            <title>Stories by Uğur Özyılmaz on Medium</title>
            <link>https://medium.com/@ugurozyilmaz08?source=rss-ecdb0980dc1c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 02:25:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ugurozyilmaz08/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[Why Should We Keep Trying If AI Will Be Better Than Us?]]></title>
            <link>https://medium.com/@ugurozyilmaz08/why-should-we-keep-trying-if-ai-will-be-better-than-us-69e219dcdb7c?source=rss-ecdb0980dc1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/69e219dcdb7c</guid>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[lifelong-learning]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Uğur Özyılmaz]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 18:59:34 GMT</pubDate>
            <atom:updated>2026-09-18T18:59:34.095Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4HL9G6lkuBJVpc-NXr8erA.png" /></figure><p>For a while, this has been one of the biggest questions for the people around me. We are on a path that could end humanity’s control over the world. When I think about why we are doing this, I see one of our biggest traits: “If we can do it, let’s do it.”</p><p>Throughout history, this instinct helped humans become different from other species and take control of the world. Today, AI development follows the same path. Even if we do not fully know the results, and even if there are big risks, we keep going with the same idea: “Why not?”</p><p>So, what will happen to us? Why should we learn, research, or improve ourselves if someone will understand things better than we do? Why should we keep trying?</p><p>Some people around me focus on survival. This is what keeps them going. Others think this future is not here yet, so they focus on the present and move away from these fears. The solution I suggest is simpler: the desire to do your best.</p><p>Someone smarter than me may come, and I may not be as good at some things. But I do not know what will happen yet. So what if it is possible? Even if it happens, I will still do my best, learn new things, and improve myself. Instead of spending today worrying about that future, I prefer to focus on what I can do now.</p><p>At the end of the day, everything I learn helps me solve my problems and make my life better. The fact that AI may be smarter than me should not reduce my desire to learn. What I learn still has value in my life. My motivation is very simple: to learn, use what I learn to find better solutions, and do my best.</p><p>When I say “do my best,” I do not mean having the same energy every day or always achieving something. I mean doing what I can with the energy I have that day and in the situation I am in.</p><p>I have been using this simple way of thinking for a while. Since then, some things have become easier, and I feel more motivated. My motivation does not go too high or too low. I move less between expecting too much and expecting too little. I focus on what I can learn today and how I can solve the problems in front of me.</p><p>By the way, AI made the image at the top. My art skills were a problem long before AI :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69e219dcdb7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Full-Text Search On PostgreSQL]]></title>
            <link>https://medium.com/plus-minus-one/full-text-search-on-postgresql-e278f7326827?source=rss-ecdb0980dc1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e278f7326827</guid>
            <category><![CDATA[full-text-search]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Uğur Özyılmaz]]></dc:creator>
            <pubDate>Wed, 28 Dec 2022 14:45:12 GMT</pubDate>
            <atom:updated>2022-12-29T07:27:37.105Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Keywords</strong>: full-text search, tsvector, tsquery</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lx6BRA15j7n1Nzhj7crPTA.png" /></figure><h3><strong>1 </strong>Introduction</h3><p>Searching based on user parameters is a commonly utilized aspect of many applications. While the ‘SQL Like’ method is frequently used, it can be slow with large amounts of data and lacks effective matching capabilities. At <a href="https://www.plusminusone.co/">Plus Minus One</a>, to address these issues, we used the full-text search feature of PostgreSQL.</p><p>Full-text search is a function that enables the identification of natural language documents that match a query and, optionally, sorting them by relevance to the query.</p><p>Let’s approach the problem by asking the right questions before the integration.</p><h4><strong>1.1 What is the goal?</strong></h4><p>Our goal is for the client to use specific keywords to find something, such as a product name.</p><h4><strong>1.2 What can be problems?</strong></h4><p>The customer can write incorrect words, not completed, not matching exactly, or not in the right order.</p><h4><strong>1.3 What do we need for solving this problem?</strong></h4><p>Our mechanism should not rely on an exact match and can calculate a ranking for proper ranking. With this approach, we can find the right tool using PostgreSQL. To resolve the issue, we should consult the documentation and create some simple examples.</p><h3>2 Full-Text Search</h3><h4><strong>2.1 Let&#39;s go to </strong><a href="https://www.postgresql.org/docs/current/textsearch.html"><strong>docs</strong></a>,</h4><p>According to the summary, it is necessary to prepare the database for searching (2.2) and parse queries to expected changes (2.3).</p><h4><strong>2.2 Prepare the database for searching</strong></h4><figure><img alt="products table" src="https://cdn-images-1.medium.com/max/898/1*ARUJymTz3-Ue7HOUg-777Q.png" /><figcaption>Figure 2.1 - product table that contains the id (incremental number), name(varchar), and description(text).</figcaption></figure><p>We have two columns that name and description. We would like to make them searchable. To do this, we need to transform these columns into one indexable and searchable column. Some words that are not meant to be searched should not be indexed like and, or, the, etc. . Additionally, we want to include an important point that will affect the search. Don’t worry, PostgreSQL will handle this operation for us.</p><p>As you may guess, the ‘name’ column is more important for searching than the ‘description’ column. According to PostgreSQL, there are four levels of weight for words: A, B, C, and D, with A being the highest and D being the lowest. We can use the ‘setweight’ command to assign a weight to words. Let’s create a tsvector column:</p><pre>ALTER TABLE product ADD COLUMN ts tsvector GENERATED ALWAYS AS (<br>   setweight(to_tsvector(&#39;english&#39;, coalesce(&quot;name&quot;), &#39;&#39;), &#39;A&#39;) ||<br>   setweight(to_tsvector(&#39;english&#39;, coalesce(&quot;description&quot;), &#39;&#39;), &#39;B&#39;)<br>) STORED;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g2OK9AkYOEFCLYcsDb0Gqw.png" /><figcaption>Figure 2.2 - products table after generating the tsvector column</figcaption></figure><p>If you only want to use one column, you don’t need to use the weight property. Create a tsvector column like this:</p><pre>ALTER TABLE product <br>ADD COLUMN ts_without_weight tsvector GENERATED ALWAYS <br>AS (to_tsvector(&#39;english&#39;, coalesce(&quot;name&quot;, &#39;&#39;)) STORED;</pre><blockquote><strong>tsvector:</strong> This column type contains words that are singular/normalized, lowercase, and have positions and ranks.</blockquote><blockquote><strong>coalesce:</strong> This is for a scenario where the column may be null.</blockquote><p>Create an index for the searching column:</p><pre>CREATE INDEX gin_index_ts ON product USING GIN (ts);</pre><blockquote>More info for <a href="https://www.postgresql.org/docs/current/textsearch-indexes.html">GIN INDEX</a></blockquote><p>As a result, we have a column that contains words in the tsvector format and has an index for faster searching.</p><h4>2.3 Search With Parameter</h4><p>As mentioned before, we should parse the user query so that it is understood by PostgreSQL’s search function. For example, let’s say the user searches for a ‘t-shirt.’ Firstly, we should use the ‘to_tsquery’ function to convert this word.</p><pre>SELECT * FROM product WHERE ts @@ to_tsquery(&#39;t-shirt&#39;);</pre><blockquote>We can parse query with some another functions. It depends on application. Check the <a href="https://www.postgresql.org/docs/current/textsearch-controls.html#TEXTSEARCH-PARSING-DOCUMENTS">DOCS</a></blockquote><p>If we have two words and want to find them consecutively, we should use the ‘&lt;-&gt;’ operator according to the documentation. For example, if the user wants to search for a red t-shirt, we would use the following query: ‘red &lt;-&gt; t-shirt’</p><pre>SELECT * FROM product WHERE ts @@ to_tsquery(&#39;red &lt;-&gt; t-shirt&#39;);</pre><p>In practice, it is unlikely that a user will write all sentences and wait for the result. To show the result for a search query such as ‘red t-sh,’ the documentation recommends adding the ‘<strong>:*’</strong> at the end of the word. For example:</p><pre>SELECT * FROM product WHERE ts @@ to_tsquery(&#39;red &lt;-&gt; t-sh:*&#39;);</pre><p>If you want to order with similarity rank:</p><pre>SELECT *, ts_rank_cd(product.ts, query) AS &quot;score&quot;<br>FROM product, to_tsquery(&#39;red &lt;-&gt; t-sh:*&#39;) query<br>WHERE ts @@ query <br>ORDER By score DESC;</pre><blockquote>‘red | t-shirt’ vector should has red or t-shirt, not necessarily consecutive</blockquote><blockquote>‘red &amp; t-shirt’ vector should has red and t-shirt, not necessarily consecutive</blockquote><blockquote>‘red &lt;-&gt; t-shirt’ vector should has red and t-shirt with consecutively</blockquote><blockquote>‘(red | orange) &amp; vector should has red or orange and t-shirt, not necessarily consecutive</blockquote><h4>3 Summary</h4><p>In summary, this article presents the steps for utilizing a basic full-text search in the English language. Other languages supported by your PostgreSQL version can be identified using the following command:</p><pre>SELECT cfgname FROM pg_ts_config;</pre><p>In a forthcoming article, we will address the issue of correcting spelling errors.</p><p>To learn more about our development experiences, you can have look at our <a href="https://medium.com/plus-minus-one">medium page</a>. At <a href="https://www.plusminusone.co/">Plus Minus One</a>, we love to learn and share our experiences. We hope this article makes your life easier</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/44/0*MzlLH0JRlgMmuP8p.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e278f7326827" width="1" height="1" alt=""><hr><p><a href="https://medium.com/plus-minus-one/full-text-search-on-postgresql-e278f7326827">Full-Text Search On PostgreSQL</a> was originally published in <a href="https://medium.com/plus-minus-one">Plus Minus One</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>