<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Predis guide (PHP) on Docs</title>
    <link>https://redis.io/docs/latest/develop/clients/php/</link>
    <description>Recent content in Predis guide (PHP) on Docs</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="https://redis.io/docs/latest/develop/clients/php/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Connect to the server</title>
      <link>https://redis.io/docs/latest/develop/clients/php/connect/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/php/connect/</guid>
      <description>&lt;h2 id=&#34;basic-connection&#34; class=&#34;group relative&#34;&gt;&#xA;  Basic connection&#xA;  &lt;a href=&#34;#basic-connection&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Connect to a locally-running server on the standard port (6379)&#xA;with the following code:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Index and query documents</title>
      <link>https://redis.io/docs/latest/develop/clients/php/queryjson/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/php/queryjson/</guid>
      <description>&lt;p&gt;This example shows how to create a&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/search-and-query/indexing/&#34;&gt;search index&lt;/a&gt;&#xA;for &lt;a href=&#34;https://redis.io/docs/latest/develop/data-types/json/&#34;&gt;JSON&lt;/a&gt; documents and&#xA;run queries against the index. It then goes on to show the slight differences&#xA;in the equivalent code for &lt;a href=&#34;https://redis.io/docs/latest/develop/data-types/hashes/&#34;&gt;hash&lt;/a&gt;&#xA;documents.&lt;/p&gt;&#xA;&#xA;&lt;div class=&#34;alert p-3 relative flex flex-row flex-wrap items-center text-base bg-redis-pencil-200 rounded-md&#34;&gt;&#xA;  &lt;div class=&#34;p-2 pr-5&#34;&gt;&lt;svg width=&#34;21&#34; height=&#34;21&#34; viewBox=&#34;0 0 21 21&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;  &lt;circle cx=&#34;10.5&#34; cy=&#34;10.5&#34; r=&#34;9.75&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;1.5&#34;/&gt;&#xA;  &lt;path d=&#34;M10.5 14V16&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34;/&gt;&#xA;  &lt;path d=&#34;M10.5 5V12&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34;/&gt;&#xA;&lt;/svg&gt;&#xA;  &lt;/div&gt;&#xA;  &lt;div class=&#34;p-1 pl-4 sm:pl-6 border-l border-l-redis-ink-900 border-opacity-50 flex-1&#34;&gt;&#xA;  &#xA;  &lt;div class=&#34;font-medium&#34;&gt;Note:&lt;/div&gt;&#xA;  From &lt;a href=&#34;https://github.com/predis/predis/releases/tag/v3.0.0&#34;&gt;v3.0.0&lt;/a&gt; onwards,&#xA;&lt;code&gt;Predis&lt;/code&gt; uses query dialect 2 by default.&#xA;Redis query engine methods such as &lt;a href=&#34;https://redis.io/docs/latest/commands/ft.search/&#34;&gt;&lt;code&gt;ftSearch()&lt;/code&gt;&lt;/a&gt;&#xA;will explicitly request this dialect, overriding the default set for the server.&#xA;See&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/search-and-query/advanced-concepts/dialects/&#34;&gt;Query dialects&lt;/a&gt;&#xA;for more information.&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;h2 id=&#34;initialize&#34; class=&#34;group relative&#34;&gt;&#xA;  Initialize&#xA;  &lt;a href=&#34;#initialize&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Make sure that you have &lt;a href=&#34;https://redis.io/docs/latest/operate/oss_and_stack/&#34;&gt;Redis Open Source&lt;/a&gt;&#xA;or another Redis server available. Also install the&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/clients/php/&#34;&gt;&lt;code&gt;Predis&lt;/code&gt;&lt;/a&gt; client library if you&#xA;haven&#39;t already done so.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Index and query vectors</title>
      <link>https://redis.io/docs/latest/develop/clients/php/vecsearch/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/php/vecsearch/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/search-and-query/&#34;&gt;Redis Query Engine&lt;/a&gt;&#xA;lets you index vector fields in &lt;a href=&#34;https://redis.io/docs/latest/develop/data-types/hashes/&#34;&gt;hash&lt;/a&gt;&#xA;or &lt;a href=&#34;https://redis.io/docs/latest/develop/data-types/json/&#34;&gt;JSON&lt;/a&gt; objects (see the&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/search-and-query/vectors/&#34;&gt;Vectors&lt;/a&gt;&#xA;reference page for more information).&#xA;Among other things, vector fields can store &lt;em&gt;text embeddings&lt;/em&gt;, which are AI-generated vector&#xA;representations of the semantic information in pieces of text. The&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/search-and-query/vectors/#distance-metrics&#34;&gt;vector distance&lt;/a&gt;&#xA;between two embeddings indicates how similar they are semantically. By comparing the&#xA;similarity of an embedding generated from some query text with embeddings stored in hash&#xA;or JSON fields, Redis can retrieve documents that closely match the query in terms&#xA;of their meaning.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
