{"id":208236,"date":"2014-01-06T13:17:03","date_gmt":"2014-01-06T09:17:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=208236"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=208236","title":{"rendered":"<span class=\"post_title\">Sphinx \u0434\u043b\u044f ASP.NET \u0447\u0435\u0440\u0435\u0437 jTemplates<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" align=\"left\" src=\"http:\/\/habr.habrastorage.org\/post_images\/126\/ee0\/f79\/126ee0f79655f11924d57255302c0026.png\"\/><br \/>  \u0415\u0441\u0442\u044c \u0443 \u043d\u0430\u0441 \u0445\u043e\u0431\u0431\u0438 \u2014 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d \u043f\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0435 \u043d\u0430\u043f\u0438\u0442\u043a\u043e\u0432 \u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u043e\u043f\u0442\u043e\u043c.<br \/>  \u0422\u043e\u0432\u0430\u0440\u044b \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0443\u0442\u0435\u043c \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u0432 \u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0438\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435.<br \/>  \u041a\u043b\u0438\u0435\u043d\u0442\u044b \u2014 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u044b \u0440\u0435\u0441\u0442\u043e\u0440\u0430\u043d\u043e\u0432 \u0438 \u043a\u0430\u0444\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0442\u043e\u0432\u0430\u0440\u044b \u043e\u043f\u0442\u043e\u043c \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0434\u0435\u043d\u044c.<br \/>  \u041a\u043e\u0433\u0434\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u0439 \u043f\u043e \u0442\u043e\u0432\u0430\u0440\u0430\u043c \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0438\u043b\u043e \u0437\u0430 20 \u0442\u044b\u0441., \u043f\u043e\u0438\u0441\u043a \u0447\u0435\u0440\u0435\u0437 like \u0432 MS SQL \u0441\u0442\u0430\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0443\u0436 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043b\u0438 \u0442\u043e\u0432\u0430\u0440 \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u0438\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0431\u044b\u043b\u0438 \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u0435\u0439\/\u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0435\u0439. \u041f\u043e\u0441\u043b\u0435 \u043c\u0435\u0441\u044f\u0446\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0443\u0445\u0438\u0449\u0440\u0435\u043d\u0438\u0439 \u0432 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0435 \u043f\u043e\u0438\u0441\u043a\u0430 \u0441 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0435\u0439 latin-cyrilic-latin, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, \u043c\u044b \u0432 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432 \u043e\u0441\u043e\u0437\u043d\u0430\u043b\u0438, \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0443\u043f\u0438\u043a\u043e\u0432\u044b\u0439 \u043f\u0443\u0442\u044c \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u043f\u043e\u0438\u0441\u043a\u0430.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041f\u043e\u0438\u0441\u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h4>\n<p>  \u041d\u0430\u0445\u043c\u0443\u0440\u0438\u0432 \u0431\u0440\u043e\u0432\u0438, \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a \u0436\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0440\u0435\u0448\u0430\u044e\u0442\u0441\u044f \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u0441\u043a\u0430\u0436\u0435\u043c \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0432\u0438\u043a\u0438\u043c\u0430\u0440\u0442\u0435. \u041a \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0432\u0438\u0441\u0442\u0438, \u043f\u043e\u0438\u0441\u043a \u0443 \u043d\u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0445\u043e\u0440\u043e\u0448\u043e, \u0434\u0430\u0436\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u043d\u0430\u0448\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0441\u043b\u043e\u0432\u0430\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u00ab\u041a\u043e\u043a\u043e \u043a\u043e\u043b\u0430\u00bb, \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043d\u0430\u0439\u0442\u0438 \u0438 \u00ab\u041a\u043e\u043a\u0430-\u043a\u043e\u043b\u044b\u00bb \u0438 \u00abCocain\u00bb. \u0427\u0442\u043e \u0436\u0435 \u0437\u0430 \u0421\u0423\u0411\u0414 \u0443 \u043d\u0438\u0445 \u0442\u0430\u043a\u0430\u044f \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u0430\u044f \u0443 \u043d\u0438\u0445, \u0432\u043e\u0441\u043a\u043b\u0438\u043a\u043d\u0443\u043b\u0438 \u043c\u044b.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0434\u043e\u043b\u0433\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043c\u044b \u043f\u043e\u043d\u044f\u043b\u0438, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d FullText Search Engine. \u041f\u043e\u043b\u0435\u0442\u0430\u0432 \u0432 \u043e\u0431\u043b\u0430\u043a\u0430\u0445, \u0447\u0442\u043e \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u043a\u043e\u0440\u043e, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u00ab\u043f\u043e\u0438\u0441\u043a \u0434\u043b\u044f \u043b\u044e\u0434\u0435\u0439\u00bb, \u0434\u0430 \u0435\u0449\u0435 \u0438 \u043a\u0430\u043a \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043f\u0438\u0440\u043e\u0436\u043e\u043a \u0443 \u043d\u0430\u0441 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f <a href=\"http:\/\/sphinxsearch.com\/blog\/2013\/06\/21\/faceted-search-with-sphinx\/\">facets<\/a> \u0444\u0438\u043b\u044c\u0442\u0440\u044b, \u043c\u044b \u0441\u0442\u0430\u043b\u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u043d\u0430 \u0447\u0435\u043c \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c.<br \/>  \u0418 \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, FullText Search \u0435\u0441\u0442\u044c \u0432 MS SQL 2008 Advanced Services \u0443\u0436\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432 \u043d\u0430\u0448\u0443 \u0421\u0423\u0411\u0414! \u041f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432\u0448\u0438\u0441\u044c \u0432 MS SQL \u0441 \u043d\u0435\u0434\u0435\u043b\u044e \u0438 \u043d\u0435 \u043d\u0430\u0439\u0434\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0438\u0440\u043e\u0436\u043a\u0430 \u0432 \u0432\u0438\u0434\u0435 facets, \u043c\u044b \u043d\u0430\u0431\u0440\u0435\u043b\u0438 \u043d\u0430 <a href=\"http:\/\/stackoverflow.com\/questions\/4501729\/what-search-tools-are-available-for-asp-net-site\/4501783#4501783\">\u0441\u0442\u0430\u0442\u044c\u044e<\/a> \u043e \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u044b\u0445 <a href=\"http:\/\/lucenenet.apache.org\/\">Lucene.NET<\/a>, <a href=\"http:\/\/lucene.apache.org\/solr\/\">Solr<\/a>, <a href=\"http:\/\/sphinxsearch.com\/\">Sphinx<\/a>.<\/p>\n<h4>\u0412\u044b\u0431\u043e\u0440 \u0434\u0432\u0438\u0436\u043a\u0430<\/h4>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 \u0434\u0432\u0438\u0436\u043a\u043e\u0432 \u0432\u044b\u0448\u0435, \u043c\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u043b\u0438 Sphinx \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c:  <\/p>\n<ol>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0434 Microsoft Windows<\/li>\n<li>\u0415\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 FAQ<\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 MS SQL<\/li>\n<li>\u0415\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0434\u043b\u044f .NET \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u0434\u0432\u0438\u0436\u043a\u043e\u043c<\/li>\n<li>\u0415\u0441\u0442\u044c <a href=\"http:\/\/sphinxsearch.com\/blog\/2013\/06\/21\/faceted-search-with-sphinx\/\">facets<\/a><\/li>\n<\/ol>\n<p>  <\/p>\n<h4>\u041a \u0434\u0435\u043b\u0443<\/h4>\n<p>  <\/p>\n<h5>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f Sphinx<\/h5>\n<p>  \u041d\u0430\u0448 <a href=\"http:\/\/yadi.sk\/d\/dbWA0D_LFX5nF\">\u043a\u043e\u043d\u0444\u0438\u0433<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0438\u0447\u0435\u0433\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0433\u043e. <br \/>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0440\u0444\u043e\u043b\u043e\u0433\u0438\u0439 stem_enru, soundex, metaphone (\u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0435, \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e <a href=\"http:\/\/habrahabr.ru\/post\/147745\/\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0437\u0430 \u0447\u0442\u043e \u0441\u043f\u0430\u0441\u0438\u0431\u043e <a href=\"http:\/\/habrahabr.ru\/users\/puma\/\" class=\"user_link\">Puma<\/a>).<br \/>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0431\u0430\u0437\u0435 MS SQL \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 View \u043f\u043e \u0442\u043e\u0432\u0430\u0440\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 Sphinx \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0435\u0440\u0433\u0430\u0435\u0442. \u041d\u043e \u043c\u044b \u043f\u043e\u0448\u043b\u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u043b\u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c Sphinx \u043d\u0430 \u043f\u043e\u0438\u0441\u043a \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0442\u043e\u0432\u0430\u0440\u0430\u043c, \u043d\u043e \u0438 \u043f\u043e \u0431\u0440\u0435\u043d\u0434\u0430\u043c, \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430\u043c \u0438 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c.<\/p>\n<h5>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Sphinx \u0432 ASP.NET<\/h5>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Sphinx, \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441\u043d\u044b\u0439 <a href=\"https:\/\/code.google.com\/p\/sphinx-dotnet-client\/\">Sphinx.Client<\/a>.<br \/>  \u041d\u0430\u0448 \u043a\u043b\u0430\u0441\u0441-\u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a SphinxHelper \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Sphinx \u0447\u0435\u0440\u0435\u0437 Sphinx.Client.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">SphinxHelper<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sphinx.Client.Connections; using Sphinx.Client.Commands.Search; using System.Collections; using Sphinx.Client.Commands.Collections; using Sphinx.Client.Commands.Attributes.Filters;  namespace Project.Helpers {     public class SphinxHelper     {         private static ConnectionBase CreateConnection()         {             PersistentTcpConnection p_connection = new PersistentTcpConnection(&quot;127.0.0.1&quot;, 9312);             p_connection.ConnectionTimeout = 10000;             return p_connection;         }          public static IList&lt;SearchQueryResult&gt; Query(string queryText, string indexes, int limitPerIndex)         {             return Query(&quot;&quot;, queryText, indexes, null, limitPerIndex, 0, MatchMode.Extended2, MatchRankMode.WordCount, ResultsSortMode.Extended, &quot;@weight DESC&quot;, &quot;&quot;);         }          public static IList&lt;SearchQueryResult&gt; Query(string select, string match, string indexes, AttributeFilterList filters, int pageSize, int offset, MatchMode matchMode, MatchRankMode rankingMode, ResultsSortMode sortMode, string sortBy, string groupBy)         {             IEnumerable&lt;string&gt; p_idxArray = indexes.Split(',');             SearchQuery p_query = null;             pageSize = pageSize &lt;= 0 ? 99999999 : pageSize;             IList&lt;SearchQueryResult&gt; p_ret = new System.Collections.Generic.List&lt;SearchQueryResult&gt;();              using (ConnectionBase connection = CreateConnection())             {                  SearchCommand p_search = new SearchCommand(connection);                 foreach (string p_idx in p_idxArray)                 {                      p_query = new SearchQuery(match, p_idx);                     p_query.Select = select;                       p_query.MatchMode = matchMode;                     p_query.RankingMode =  rankingMode;                     p_query.SortMode = sortMode;                     p_query.SortBy = sortBy;                                          if (!String.IsNullOrEmpty(groupBy))                     {                         p_query.GroupBy = groupBy;                         p_query.GroupSort = sortBy;                         p_query.GroupFunc = ResultsGroupFunction.Attribute;                         if (!String.IsNullOrEmpty(sortBy))                         {                             p_query.SortBy = string.Empty;                         }                     }                                           p_query.Limit = pageSize;                     p_query.Offset = offset;                      \/\/ \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b, \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0438\u0445                     if (filters != null && filters.Count &gt; 0)                         foreach (AttributeFilterBase p_filter in filters)                             p_query.AttributeFilters.Add(p_filter);                     p_query.Select = select;                     \/\/\u041a\u043e\u0433\u0434\u0430 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0438\u043d\u0434\u0435\u043a\u0441, \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0443\u043b\u044c\u0442\u0438\u0430\u0437\u0430\u043f\u0440\u043e\u0441                     \/\/search.QueryList.Add(p_query);                      p_search.QueryList.Clear();                     p_search.QueryList.Add(p_query);                     p_search.Execute();                     foreach (SearchQueryResult p_result in p_search.Result.QueryResults)                         p_ret.Add(p_result);                 }                 return p_ret;             }         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h5>\u0418\u0437 SearchQueryResult \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/h5>\n<p>  \u041f\u0440\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u043e\u0438\u0441\u043a\u0430 \u0441 \u0431\u0440\u0435\u043d\u0434\u0430\u043c\u0438 \u0438 \u0442\u043e\u0432\u0430\u0440\u0430\u043c\u0438, \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <a href=\"http:\/\/jtemplates.tpython.com\">jTemplates<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0434\u0435\u0440\u0433\u0430\u0435\u0442 SphinxHelper.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u043e\u0438\u0441\u043a\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">\t\/\/ \u041e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \t\/\/brandId - \u0444\u0438\u043b\u044c\u0442\u0440 \u043f\u043e \u0431\u0440\u0435\u043d\u0434\u0443 \t\/\/sellerId - \u0444\u0438\u043b\u044c\u0442\u0440 \u043f\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0443 \t\/\/categoryId - \u0444\u0438\u043b\u044c\u0442\u0440 \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \t\/\/specIds - \u0424\u0438\u043b\u044c\u0442\u0440 facets \t\/\/searchText - \u0424\u0438\u043b\u044c\u0442\u0440 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443     this.GetGroups = function (brandId, sellerId, categoryId, specIds, searchText) {          var waiter = $('#waiter_' + brandId);         waiter.css({ visibility: 'visible' });          var brandGroups = $('#brandGroups_' + brandId);         brandGroups.attr('loaded', true);          $.ajax({             type: &quot;POST&quot;,             context: { brandId: brandId, sellerId: sellerId, categoryId: categoryId, specIds: specIds, searchText: searchText },             url: currentHost() + &quot;WebServices\/Products.asmx\/GetBrandGroups&quot;,             data: &quot;{brandID:'&quot; + brandId + &quot;',sellerID:'&quot; + sellerId + &quot;', categoryID:'&quot; + categoryId + &quot;', specIds:'&quot; + specIds + &quot;',searchText:'&quot; + searchText + &quot;'}&quot;,             contentType: &quot;application\/json; charset=utf-8&quot;,             dataType: &quot;json&quot;,             success: brandsInRow2.GroupCallSuccess,             error: brandsInRow2.GroupCallError         });       }      this.GroupCallError = function (request, status, error) {         alert(request.responseText);     }      this.GroupCallSuccess = function (data, status) {         var data_decoded = $.parseJSON(data.d);         var brandGroups = $('#brandGroups_' + this.brandId);           brandGroups.setTemplate($(&quot;#templateProducts&quot;).html());         brandGroups.setParam('GetProductPriceActuality', brandsInRow2.GetProductPriceActuality);         brandGroups.setParam('GetProductPriceActuality1', brandsInRow2.GetProductPriceActuality1);         brandGroups.setParam('GetSpecDescription', brandsInRow2.GetSpecDescription);         brandGroups.setParam('GetBrandPriceName', brandsInRow2.GetBrandPriceName);         brandGroups.setParam('GetOrderProductFrameLink', brandsInRow2.GetOrderProductFrameLink);         brandGroups.setParam('GetSellerInfoFrameLink', brandsInRow2.GetSellerInfoFrameLink);         brandGroups.setParam('GetMessageSendFrameLink', brandsInRow2.GetMessageSendFrameLink);         brandGroups.processTemplate(data_decoded);         brandGroups.css({ display: 'block' });         \/\/ \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438         brandsInRow2.InitTips();          var waiter = $('#waiter_' + this.brandId);         waiter.css({ visibility: 'hidden' });     }        this.GetLinkOfferName = function (prodCnt, sellersCnt) {          var p_offers = prodCnt + ' ' + formatToRussian1(prodCnt, &quot;\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438&quot;);         if (sellersCnt &gt; 1)             p_offers = p_offers + ' ' + formatToRussian(sellersCnt, &quot;\u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a&quot;);          return p_offers;     }      this.GetBrandCountName = function (brandsCnt) {         return brandsCnt.toString() + ' ' + formatToRussian(brandsCnt, &quot;\u0431\u0440\u0435\u043d\u0434&quot;);     }      this.GetBrandPriceName = function (minPrice, maxPrice) {         if (minPrice == maxPrice)             return formatPrice(minPrice);         return '\u041e\u0442 ' + formatPrice(minPrice) + ' \u0434\u043e ' + formatPrice(maxPrice)     }      this.GetProductPriceActuality = function (product) {         return product.DaysUpdated &gt; 30 ? &quot;\u0426\u0435\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430 \u043d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0434\u0435\u043d\u044c, \u0442\u043e\u0447\u043d\u0443\u044e \u0446\u0435\u043d\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u044c \u0443 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u043e\u0440\u0430 &quot; + product.CompanyName + &quot;.&quot; : &quot;&quot;;     }      this.GetProductPriceActuality1 = function (product) {         return product.DaysUpdated &gt; 30 ? &quot;&quot; : &quot;hidden&quot;;     }       this.GetSpecDescription = function (specs) {         var escaped = specs;         var findReplace = [[\/&amp;\/g, &quot;&&quot;], [\/&lt;\/g, &quot;&lt;&quot;], [\/&gt;\/g, &quot;&gt;&quot;], [\/&quot;\/g, '&quot;'], [\/&#39;\/g, &quot;'&quot;]]         for (var item in findReplace)             escaped = escaped.replace(findReplace[item][0], findReplace[item][1]);         return escaped;     }      this.GetOrderProductFrameLink = function (productId) {         return currentHost() + &quot;OrderProductFrame.aspx?ProductID=&quot; + productId;     }      this.GetSellerInfoFrameLink = function (sellerId) {         return currentHost() + &quot;SellerShortInfoFrame.aspx?SellerID=&quot; + sellerId;     }      this.GetMessageSendFrameLink = function (productId) {         return currentHost() + &quot;MessageSendFrame.aspx?ProductID=&quot; + productId;     } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0431\u044b\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/jqueryui.com\/autocomplete\/\">AutoComplete<\/a> \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u0438\u0441\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u0430.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">AutoComplete<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">function setAutoComplete(s) {      var elem = $(&quot;#searchTextBox&quot;);     elem.autocomplete({         minLength: 2,         source: function (request, response) {             $.ajax({ type: &quot;POST&quot;,                 url: currentHost() + &quot;WebServices\/Common.asmx\/GetSearchComplete&quot;,                 data: &quot;{searchTerm:'&quot; + elem.val() + &quot;'}&quot;,                 contentType: &quot;application\/json; charset=utf-8&quot;,                 success: function (msg) {                     if (msg.d != &quot;&quot;) response($.parseJSON(msg.d)); else response('')                 }             });         },         select: function (event, ui) {             elem.addClass('ui-autocomplete-loading');             window.location.href = ui.item.linkUrl;             elem.selected = ui.item;             return false;         },         dataType: &quot;json&quot;     })     .data(&quot;autocomplete&quot;)._renderItem = function (ul, item) {         return $(&quot;&lt;li&gt;&lt;\/li&gt;&quot;) \t\t\t\t.data(&quot;item.autocomplete&quot;, item) \t\t\t\t.append(&quot;&lt;a href='&quot; + item.linkUrl + &quot;'&gt;&lt;ul class='search-complete'&gt;&lt;li class='pict'&gt;&lt;img src='&quot; + item.pictUrl + &quot;'\/&gt;&lt;\/li&gt;&lt;li class='name'&gt;&quot; + item.label + &quot;&lt;\/li&gt;&lt;\/ul&gt;&lt;\/a&gt;&quot;) \t\t\t\t.appendTo(ul);     };      elem.keydown(function (e) {         if (e.keyCode == 13) {             if (typeof (elem.selected) == 'undefined') {                 elem.addClass('ui-autocomplete-loading');                 SearchClick(); \/\/ \u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e\u0438\u0441\u043a\u0430                 e.preventDefault();             }         }     }); } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041e\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043d\u0430 Sphinx, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0438\u0440\u043e\u0436\u043a\u0438:  <\/p>\n<ol>\n<li>\u0427\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0438\u0441\u043a<\/li>\n<li>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u043e\u0438\u0441\u043a\u0430 \u2014 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435<\/li>\n<li>\u0420\u0430\u0437\u0433\u0440\u0443\u0437\u043a\u0430 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/li>\n<\/ol>\n<p>  \u041d\u0435 \u043c\u043e\u0433\u0443 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0442\u043e\u0447\u043d\u044b\u0435 \u0437\u0430\u043c\u0435\u0440\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0434\u043e \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Sphinx, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430 \u0440\u0430\u0434\u043e\u0441\u0442\u044f\u0445 \u0437\u0430\u0431\u044b\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0434\u043e. \u041d\u043e \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0432 \u0431\u0430\u0437\u0435 \u0431\u043e\u043b\u0435\u0435 20 \u0442\u044b\u0441. \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0438 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e (\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043c\u0435\u043d\u0435\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b).<\/p>\n<p>  \u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0432 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 (\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u043d\u0438 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445) \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/sphinxsearch.com\/docs\/archives\/1.10\/delta-updates.html\">\u0434\u0435\u043b\u044c\u0442\u0430-\u0438\u043d\u0434\u0435\u043a\u0441<\/a>, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u043a\u0430\u0436\u0434\u044b\u0435 10 \u043c\u0438\u043d\u0443\u0442. \u0410 \u043f\u043e\u043a\u0430, \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0437\u0430 5 \u0441\u0435\u043a\u0443\u043d\u0434 \u043a\u0430\u0436\u0434\u044b\u0435 \u043f\u043e\u043b \u0447\u0430\u0441\u0430. \u0420\u0430\u0437\u0433\u0440\u0443\u0437\u043a\u0430 MS SQL \u043f\u043e\u043c\u043e\u0433\u043b\u0430 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u043f\u0440\u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0435 \u043f\u0440\u0430\u0439\u0441-\u043b\u0438\u0441\u0442\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c.<\/p>\n<p>  P.S. \u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442, \u0432\u0440\u043e\u0434\u0435 \u0431\u044b, \u043f\u043e\u0447\u0438\u0441\u0442\u0438\u043b, \u0442\u0430\u043a \u043a\u0430\u043a \u0445\u0430\u0431\u0440\u0430\u044d\u0444\u0444\u0435\u043a\u0442 \u043e\u043d \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0435\u0442. \t\t\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\/208236\/\"> http:\/\/habrahabr.ru\/post\/208236\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" align=\"left\" src=\"http:\/\/habr.habrastorage.org\/post_images\/126\/ee0\/f79\/126ee0f79655f11924d57255302c0026.png\"\/><br \/>  \u0415\u0441\u0442\u044c \u0443 \u043d\u0430\u0441 \u0445\u043e\u0431\u0431\u0438 \u2014 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d \u043f\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0435 \u043d\u0430\u043f\u0438\u0442\u043a\u043e\u0432 \u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u043e\u043f\u0442\u043e\u043c.<br \/>  \u0422\u043e\u0432\u0430\u0440\u044b \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0443\u0442\u0435\u043c \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u0432 \u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0438\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435.<br \/>  \u041a\u043b\u0438\u0435\u043d\u0442\u044b \u2014 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u044b \u0440\u0435\u0441\u0442\u043e\u0440\u0430\u043d\u043e\u0432 \u0438 \u043a\u0430\u0444\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0442\u043e\u0432\u0430\u0440\u044b \u043e\u043f\u0442\u043e\u043c \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0434\u0435\u043d\u044c.<br \/>  \u041a\u043e\u0433\u0434\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u0439 \u043f\u043e \u0442\u043e\u0432\u0430\u0440\u0430\u043c \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0438\u043b\u043e \u0437\u0430 20 \u0442\u044b\u0441., \u043f\u043e\u0438\u0441\u043a \u0447\u0435\u0440\u0435\u0437 like \u0432 MS SQL \u0441\u0442\u0430\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0443\u0436 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043b\u0438 \u0442\u043e\u0432\u0430\u0440 \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u0438\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0431\u044b\u043b\u0438 \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u0435\u0439\/\u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0435\u0439. \u041f\u043e\u0441\u043b\u0435 \u043c\u0435\u0441\u044f\u0446\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0443\u0445\u0438\u0449\u0440\u0435\u043d\u0438\u0439 \u0432 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0435 \u043f\u043e\u0438\u0441\u043a\u0430 \u0441 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0435\u0439 latin-cyrilic-latin, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, \u043c\u044b \u0432 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432 \u043e\u0441\u043e\u0437\u043d\u0430\u043b\u0438, \u0447\u0442\u043e \u044d\u0442\u043e \u0442\u0443\u043f\u0438\u043a\u043e\u0432\u044b\u0439 \u043f\u0443\u0442\u044c \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u043f\u043e\u0438\u0441\u043a\u0430.  <\/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-208236","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/208236","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=208236"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/208236\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}