{"id":190034,"date":"2013-08-14T14:29:03","date_gmt":"2013-08-14T10:29:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=190034"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=190034","title":{"rendered":"<span class=\"post_title\">\u00ab\u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u043f\u043e \u0442\u0435\u043c\u0435\u00bb \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PHP, phpmorphy \u0438 MySQL<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u00ab\u043f\u043e\u0445\u043e\u0436\u0438\u0445\u00bb \u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u0414\u0443\u043c\u0430\u044e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0431\u043b\u043e\u0433\u043e\u0432 \u0438\u043b\u0438 \u043d\u043e\u0432\u043e\u0441\u0442\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<br \/>  \u0426\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0438\u043d\u0446\u0438\u043f, \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u043e\u043c\u0438\u043b\u044c\u0444\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u0440 \u043d\u0435 \u043f\u0440\u043e\u0444. \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0430 \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u044c.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ed1\/657\/68d\/ed165768d135de50d6166c7be6cbb943.png\"\/><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>\u0418\u0442\u0430\u043a, \u0437\u0430\u0434\u0430\u0447\u0430<\/h5>\n<p>  \u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 MySQL \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0442\u0438\u043f\u0430:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/36a\/1d9\/3b2\/36a1d93b23bce7c2205e74ad8ed53992.png\"\/><br \/>   \u041d\u0435\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u043f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u0438\u0437 \u0442\u043e\u0439 \u0436\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b.<br \/>  \u0417\u0434\u0435\u0441\u044c \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u043e\u043b\u0435\u0439 title, lead, body. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b, \u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0441\u0435 \u0441 \u043d\u0443\u043b\u044f \u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439. <\/p>\n<h5>\u041f\u043e\u043b\u0435 tags<\/h5>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u0435 tags (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044d\u0442\u043e \u043f\u0441\u0435\u0432\u0434\u043e-\u0442\u044d\u0433\u0438, \u043d\u043e \u043d\u0438\u0433\u0434\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043e\u043d\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u2014 \u044d\u0442\u043e \u043f\u043e\u043b\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432). \u0422\u0438\u043f \u043f\u043e\u043b\u044f \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u043a\u0430\u043a VARCHAR(512) \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0438\u043d\u0434\u0435\u043a\u0441 \u0442\u0438\u043f\u0430 fulltext ( FULLTEXT (tags) ).<\/p>\n<h5>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0441\u0435\u0432\u0434\u043e-\u0442\u044d\u0433\u043e\u0432<\/h5>\n<p>  \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0441\u0435\u0432\u0434\u043e-\u0442\u044d\u0433\u0438 \u0438\u0437 \u043f\u043e\u043b\u0435\u0439 title, lead, body \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0432 \u0431\u0430\u0437\u0443 (\u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u0434 INSERT statement). \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 phpmorphy \u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u0438 <a href=\"http:\/\/sourceforge.net\/projects\/phpmorphy\/files\/phpmorphy\/\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>.<\/p>\n<p>  \u0414\u043b\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u043b\u043e\u0437\u043d\u0430\u0447\u0430\u0449\u0438\u0445 \u0441\u043b\u043e\u0432 (\u0441\u0442\u043e\u043f-\u0441\u043b\u043e\u0432) \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043c\u0430\u0441\u0441\u0438\u0432 $stopwords, \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0441\u0442\u043e\u043f-\u0441\u043b\u043e\u0432 (<a href=\"http:\/\/pastebin.com\/raw.php?i=Z17mfEQQ\">\u043f\u0440\u0438\u043c\u0435\u0440 <\/a> \u2014 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u043a\u0430\u043a stopwords.txt ).<\/p>\n<pre><code class=\"php\">$stopwords=explode(&quot;\\n&quot;, file_get_contents(&quot;stopwords.txt&quot;));<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c phpmorphy \u0438 \u0435\u0433\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u0438, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u043c title,lead \u0438 body \u0438 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0435\u043c \u0432\u0441\u0435 \u0441\u043b\u043e\u0432\u0430 \u0447\u0435\u0440\u0435\u0437 phpmorphy.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0441\u0435\u0432\u0434\u043e-\u0442\u044d\u0433\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\"> $lowercaseLetters = array(&quot;'\u0430'&quot;, &quot;'\u0431'&quot;, &quot;'\u0432'&quot;, &quot;'\u0433'&quot;, &quot;'\u0434'&quot;, &quot;'\u0435'&quot;, &quot;'\u0451'&quot;, &quot;'\u0436'&quot;, &quot;'\u0437'&quot;, &quot;'\u0438'&quot;, &quot;'\u0439'&quot;, &quot;'\u043a'&quot;, &quot;'\u043b'&quot;, &quot;'\u043c'&quot;, &quot;'\u043d'&quot;, &quot;'\u043e'&quot;, &quot;'\u043f'&quot;, &quot;'\u0440'&quot;, &quot;'\u0441'&quot;, &quot;'\u0442'&quot;, &quot;'\u0443'&quot;, &quot;'\u0444'&quot;, &quot;'\u0445'&quot;, &quot;'\u0446'&quot;, &quot;'\u0447'&quot;, &quot;'\u0448'&quot;, &quot;'\u0449'&quot;, &quot;'\u044a'&quot;, &quot;'\u044b'&quot;, &quot;'\u044c'&quot;, &quot;'\u044d'&quot;, &quot;'\u044e'&quot;, &quot;'\u044f'&quot;); $uppercaseLetters = array(&quot;'\u0410'&quot;, &quot;'\u0411'&quot;, &quot;'\u0412'&quot;, &quot;'\u0413'&quot;, &quot;'\u0414'&quot;, &quot;'\u0415'&quot;, &quot;'\u0401'&quot;, &quot;'\u0416'&quot;, &quot;'\u0417'&quot;, &quot;'\u0418'&quot;, &quot;'\u0419'&quot;, &quot;'\u041a'&quot;, &quot;'\u041b'&quot;, &quot;'\u041c'&quot;, &quot;'\u041d'&quot;, &quot;'\u041e'&quot;, &quot;'\u041f'&quot;, &quot;'\u0420'&quot;, &quot;'\u0421'&quot;, &quot;'\u0422'&quot;, &quot;'\u0423'&quot;, &quot;'\u0424'&quot;, &quot;'\u0425'&quot;, &quot;'\u0426'&quot;, &quot;'\u0427'&quot;, &quot;'\u0428'&quot;, &quot;'\u0429'&quot;, &quot;'\u042a'&quot;, &quot;'\u042b'&quot;, &quot;'\u042c'&quot;, &quot;'\u042d'&quot;, &quot;'\u042e'&quot;, &quot;'\u042f'&quot;);  function cyrUpper($str) { global $lowercaseLetters; global $uppercaseLetters;  return str_replace(&quot;'&quot;, &quot;&quot;, preg_replace($lowercaseLetters, $uppercaseLetters, $str)); } function cyrLower($str) { global $lowercaseLetters; global $uppercaseLetters;  return str_replace(&quot;'&quot;, &quot;&quot;, preg_replace( $uppercaseLetters,$lowercaseLetters, $str)); }  function cleanUP ($new_string)  {  \/\/$new_string=nl2br($new_string);  $new_string= str_replace(&quot;-&quot;,&quot; &quot;,$new_string);   $new_string= str_replace(&quot;\\r\\n&quot;,&quot; &quot;,$new_string);   $new_string= str_replace(&quot;\\r&quot;,&quot; &quot;,$new_string);     $new_string= str_replace(&quot;\\n&quot;,&quot; &quot;,$new_string);   $new_string= str_replace(&quot;.&quot;,&quot; &quot;,$new_string); $new_string = ereg_replace(&quot;[^0-9 \u0430\u0431\u0432\u0433\u0434\u0435\u0451\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0410\u0411\u0412\u0413\u0414\u0415\u0401\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f]&quot;, &quot;&quot;,$new_string ); return $new_string; }      require_once( 'morphy\/src\/common.php');  $text=cleanUP($_REQUEST[title].&quot; &quot;.$_REQUEST[lead].&quot; &quot;.$_REQUEST[body].&quot; &quot;); $aText = explode(' ',$text);         $aPort = array();         $aMorph = array();                  foreach ($aText as $word) \t\t              $aMorph[] = cyrUpper($word);\/\/\u043d\u0443\u0436\u043d\u043e \u0432 \u0432\u0438\u043d1251 \u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0435 \u0441\u044c\u0435\u0434\u0435\u043d\u0438\u0435                         \/\/ set some options         $opts = array(             'storage' =&gt; PHPMORPHY_STORAGE_FILE,             \/\/ Extend graminfo for getAllFormsWithGramInfo method call             'with_gramtab' =&gt; false,             \/\/ Enable prediction by suffix             'predict_by_suffix' =&gt; true,             \/\/ Enable prediction by prefix             'predict_by_db' =&gt; true );                $dir = 'morphy\/dicts'; $lang = 'ru_RU';                   \/\/ Create descriptor for dictionary located in $dir directory with russian language         $dict_bundle = new phpMorphy_FilesBundle($dir, 'rus');                  \/\/ Create phpMorphy instance         try {             $morphy = new phpMorphy($dict_bundle, $opts);         } catch(phpMorphy_Exception $e) {             throw new Exception('Error occured while creating stemmer instance: ' . $e-&gt;getMessage());         }                           try {      \t             if($getroot==22)                 $pseudo_root = $morphy-&gt;getPseudoRoot($aMorph);\/\/\u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u0432\u0437\u044f\u0442\u044c \u043a\u043e\u0440\u043d\u0438 \u0441\u043b\u043e\u0432             else                 $pseudo_root = $morphy-&gt;getBaseForm($aMorph);\/\/\u043b\u0438\u0431\u043e \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0444\u043e\u0440\u043c\u0443             \/\/\u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 $getroot=TRUE                      } catch(phpMorphy_Exception $e) {             throw new Exception('Error occured while text processing: ' . $e-&gt;getMessage());         }  \t   foreach ($pseudo_root as $roots){  $slovo=cyrLower($roots[0]); if (strlen( $slovo)&gt;3 && !in_array($slovo,$stopwords) && count($roots)==1 ) {   $tags.=$slovo.&quot; &quot;;  }  }  } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u044d\u0433\u043e\u0432 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 $tags \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u0441\u043e\u043e\u0442\u0432. \u043f\u043e\u043b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043b\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f. <\/p>\n<h6>\u041f\u0440\u0438\u043c\u0435\u0440<\/h6>\n<p>  \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442  <\/p>\n<blockquote><p>\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Samsung \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0442\u0432\u0435\u0440\u0434\u043e\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0436\u0435\u0441\u0442\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u043e\u0432 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0440\u0435\u0445\u043c\u0435\u0440\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 V-NAND. \u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043c \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u0435\u0439, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0432 2 \u0440\u0430\u0437\u0430 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0434\u043e 10 \u0440\u0430\u0437. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f SSD \u0434\u0438\u0441\u043a\u0438 \u043e\u0431\u044a\u0435\u043c\u043e\u043c 480 \u0438 960 \u0413\u0411, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u0427\u0442\u043e \u0436\u0435 \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432, \u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0441\u0440\u043e\u043a\u043e\u0432 \u0432\u044b\u043f\u0443\u0441\u043a\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u043e \u043d\u0435 \u0431\u044b\u043b\u043e.<\/p><\/blockquote>\n<p>  \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043b\u043e\u0432:  <\/p>\n<blockquote><p> \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0442\u0432\u0435\u0440\u0434\u043e\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0440\u043e\u043a \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442\u044c \u043f\u043e\u0432\u044b\u0448\u0430\u0442\u044c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u043f\u0430\u043c\u044f\u0442\u044c \u043e\u0431\u044a\u0435\u043c \u043d\u0430\u0447\u0430\u0442\u044c \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c \u043c\u043e\u043c\u0435\u043d\u0442 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043a\u0430\u0441\u0430\u0442\u044c\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0436\u0435\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u0432\u044b\u043f\u0443\u0441\u043a \u0442\u0440\u0435\u0445\u043c\u0435\u0440\u043d\u044b\u0439 <\/p><\/blockquote>\n<h5>SQL \u0437\u0430\u043f\u0440\u043e\u0441<\/h5>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435- \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 SQL \u0437\u0430\u043f\u0440\u043e\u0441 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439:<\/p>\n<pre><code class=\"sql\"> SELECT * FROM news WHERE  MATCH (tags)  AGAINST ('[ \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0441\u0435\u0432\u0434\u043e \u0442\u044d\u0433\u043e\u0432 ]'  ) &gt; [\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u043b\u0435\u0432\u0430\u043d\u0442\u043d\u043e\u0441\u0442\u0438] <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u043b\u0435\u0432\u0430\u043d\u0442\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u00ab\u043f\u043e\u0445\u043e\u0436\u0435\u0441\u0442\u044c\u00bb \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u2014 \u043f\u043e\u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 (\u043d\u0430\u0447\u043d\u0438\u0442\u0435 \u0441 \u0435\u0434\u0438\u043d\u0438\u0446\u044b)    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/190034\/\"> http:\/\/habrahabr.ru\/post\/190034\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u00ab\u043f\u043e\u0445\u043e\u0436\u0438\u0445\u00bb \u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u0414\u0443\u043c\u0430\u044e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0431\u043b\u043e\u0433\u043e\u0432 \u0438\u043b\u0438 \u043d\u043e\u0432\u043e\u0441\u0442\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<br \/>  \u0426\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0438\u043d\u0446\u0438\u043f, \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u043e\u043c\u0438\u043b\u044c\u0444\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u0440 \u043d\u0435 \u043f\u0440\u043e\u0444. \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0430 \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u044c.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ed1\/657\/68d\/ed165768d135de50d6166c7be6cbb943.png\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-190034","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/190034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=190034"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/190034\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=190034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=190034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=190034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}