{"id":31954,"date":"2016-01-29T10:48:00","date_gmt":"2016-01-29T05:18:00","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=31954"},"modified":"2016-02-08T13:11:15","modified_gmt":"2016-02-08T07:41:15","slug":"how-to-get-highlighted-results-using-solr-and-solrj","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/","title":{"rendered":"How to get highlighted results using Solr and Solrj"},"content":{"rendered":"<p><span style=\"text-decoration: underline;\"><strong>UseCase<\/strong><\/span><\/p>\n<p>I am using Apache Solr as a search platform integrated with <a title=\"AEM Consulting Services\" href=\"https:\/\/2thenew.today\/wcm\/cq-aem-development-consulting\">AEM\u00a0CMS<\/a>. I had a requirement where I needed to highlight the matching part of the text in the search results. Another part was that it should work even if the browser doesn\u2019t have javascript enabled.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Solution<\/strong><\/span><\/p>\n<p>To achieve the highlighting functionality I used Solr\u2019s out of the box Highlighting Component\u00a0 which returns the highlighted text snippets of matching text in the original data.<\/p>\n<p>Query Parameters required to achieve highlighting are as follows:-<\/p>\n<p><strong>hl<\/strong> \u2013 Should be set to true as it enables highlighted snippets to be generated in the query response.<\/p>\n<p><strong>hl.fl<\/strong> \u2013 Specifies a list of fields to highlight. Wild char * will highlight all the fields<\/p>\n<p><strong>hl.fragsize <\/strong>\u2013 The size, in characters, of the snippets (aka fragments) created by the highlighter. In the original Highlighter, &#8220;<tt class=\"backtick\">0<\/tt>&#8221; indicates that the whole field value should be used with no fragmenting. By default fragment is of size 100 characters<\/p>\n<p><strong>hl.simple.pre<\/strong> \u2013 Specifies the text that should appear before a highlighted term.(e.g. &lt;span&gt;). It defaults to &lt;em&gt;<\/p>\n<p><strong>hl.simple.post<\/strong> \u2013\u00a0 Specifies the text that should appear after a highlighted term. (e.g. &lt;\/span&gt;). It defaults to &lt;\/em&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>I have used Solrj, a java client to communicate with Solr. Following is the code to set various parameters in Solrj so as to make Solr return highlighted results.<\/p>\n<p>[java]<br \/>\nprivate SolrQuery prepareQuery(SlingSolrSearchRequest request) {<\/p>\n<p>\u00a0\u00a0\u00a0 String query = request.query;<\/p>\n<p>\u00a0\u00a0\u00a0 SolrQuery queryParams = new SolrQuery();<\/p>\n<p>\u00a0\u00a0\u00a0 queryParams.set(CommonParams.Q, &lt;query-Search-Term&gt;);<br \/>\n \u00a0<\/p>\n<p>\/\/Setting Highlighting parameters using Solrj<\/p>\n<p> \/\/this will set the all the highlighting parameter to default values<\/p>\n<p>\u00a0\u00a0\u00a0 queryParams.setHighlight(true).setHighlightSnippets(1);<br \/>\n\u00a0 \u00a0 queryParams.setParam(&quot;hl.fl&quot;, &quot;*&quot;);<\/p>\n<p>\u00a0\u00a0\u00a0 queryParams.setParam(&quot;hl.fragsize&quot;, &quot;0&quot;);<\/p>\n<p>\u00a0\u00a0\u00a0 return queryParams;<\/p>\n<p>}<\/p>\n<p> SolrQuery queryParams = prepareQuery(request);<\/p>\n<p> SolrClient solrClient = getSolrClient()\/\/ returns SolrClient<\/p>\n<p> queryResponse = solrClient.query(queryParams);<br \/>\n[\/java]<\/p>\n<p>When the above code is executed it will generate following queryString<\/p>\n<p><strong>q=title%3A&lt;searchText&gt;&amp;hl=true&amp;hl.snippets=1&amp;hl.fl=*&amp;hl.fragsize=0<\/strong><\/p>\n<p>The Response from the Solr will have highlighting element. It will have the results with highlighted hits as<\/p>\n<p>[javascript]<\/p>\n<p>&quot;highlighting&quot;: {<br \/>\n &quot;\/content\/&lt;page1&gt;\/&lt;page2&gt;\/&lt;page3&gt;&quot;: {<br \/>\n &quot;indexed_field1&quot;: [&quot;01 |&lt;em&gt;Search-Term&lt;\/em&gt; This is highlighted&quot;],<br \/>\n &quot;title&quot;: [&quot;&lt;em&gt; Search-Term &lt;\/em&gt; This got highlighted&quot;]<br \/>\n }<br \/>\n}<br \/>\n[\/javascript]<\/p>\n<p>Following code snippet will read highlighted result data .<\/p>\n<p>[code]<br \/>\nString content =queryResponse.getHighlighting().get(id).get(&quot;title&quot;)[0];<br \/>\n[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>UseCase I am using Apache Solr as a search platform integrated with AEM\u00a0CMS. I had a requirement where I needed to highlight the matching part of the text in the search results. Another part was that it should work even if the browser doesn\u2019t have javascript enabled. Solution To achieve the highlighting functionality I used [&hellip;]<\/p>\n","protected":false},"author":552,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":34,"footnotes":""},"categories":[1],"tags":[3075,3076,1874,3028,3029],"class_list":["post-31954","post","type-post","status-publish","format-standard","hentry","category-technology","tag-aem-solr","tag-aem-solrj","tag-apache-solr","tag-result-highlighing","tag-solrj"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"UseCase I am using Apache Solr as a search platform integrated with AEM CMS. I had a requirement where I needed to highlight the matching part of the text in the search results. Another part was that it should work even if the browser doesn\u2019t have javascript enabled. Solution To achieve the highlighting functionality I used\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Priyanku Dwivedi\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"How to get highlighted results using Solr and Solrj | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"UseCase I am using Apache Solr as a search platform integrated with AEM CMS. I had a requirement where I needed to highlight the matching part of the text in the search results. Another part was that it should work even if the browser doesn\u2019t have javascript enabled. Solution To achieve the highlighting functionality I used\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to get highlighted results using Solr and Solrj | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"UseCase I am using Apache Solr as a search platform integrated with AEM CMS. I had a requirement where I needed to highlight the matching part of the text in the search results. Another part was that it should work even if the browser doesn\u2019t have javascript enabled. Solution To achieve the highlighting functionality I used\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-get-highlighted-results-using-solr-and-solrj\\\/#article\",\"name\":\"How to get highlighted results using Solr and Solrj | TO THE NEW Blog\",\"headline\":\"How to get highlighted results using Solr and Solrj\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/Priyanku\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2016-01-29T10:48:00+05:30\",\"dateModified\":\"2016-02-08T13:11:15+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-get-highlighted-results-using-solr-and-solrj\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-get-highlighted-results-using-solr-and-solrj\\\/#webpage\"},\"articleSection\":\"Technology, AEM Solr, AEM Solrj, Apache Solr, result-highlighing, Solrj\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-get-highlighted-results-using-solr-and-solrj\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-get-highlighted-results-using-solr-and-solrj\\\/#listItem\",\"name\":\"How to get highlighted results using Solr and Solrj\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-get-highlighted-results-using-solr-and-solrj\\\/#listItem\",\"position\":3,\"name\":\"How to get highlighted results using Solr and Solrj\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/Priyanku\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/Priyanku\\\/\",\"name\":\"Priyanku Dwivedi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-get-highlighted-results-using-solr-and-solrj\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9adf32274f071efda1243a6e1366a392dc8743b9481e86d276e6e8616877829f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Priyanku Dwivedi\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-get-highlighted-results-using-solr-and-solrj\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-get-highlighted-results-using-solr-and-solrj\\\/\",\"name\":\"How to get highlighted results using Solr and Solrj | TO THE NEW Blog\",\"description\":\"UseCase I am using Apache Solr as a search platform integrated with AEM CMS. I had a requirement where I needed to highlight the matching part of the text in the search results. Another part was that it should work even if the browser doesn\\u2019t have javascript enabled. Solution To achieve the highlighting functionality I used\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/how-to-get-highlighted-results-using-solr-and-solrj\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/Priyanku\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/Priyanku\\\/#author\"},\"datePublished\":\"2016-01-29T10:48:00+05:30\",\"dateModified\":\"2016-02-08T13:11:15+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to get highlighted results using Solr and Solrj | TO THE NEW Blog","description":"UseCase I am using Apache Solr as a search platform integrated with AEM CMS. I had a requirement where I needed to highlight the matching part of the text in the search results. Another part was that it should work even if the browser doesn\u2019t have javascript enabled. Solution To achieve the highlighting functionality I used","canonical_url":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/#article","name":"How to get highlighted results using Solr and Solrj | TO THE NEW Blog","headline":"How to get highlighted results using Solr and Solrj","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/Priyanku\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"datePublished":"2016-01-29T10:48:00+05:30","dateModified":"2016-02-08T13:11:15+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/#webpage"},"articleSection":"Technology, AEM Solr, AEM Solrj, Apache Solr, result-highlighing, Solrj"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.today\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/#listItem","name":"How to get highlighted results using Solr and Solrj"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/#listItem","position":3,"name":"How to get highlighted results using Solr and Solrj","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/Priyanku\/#author","url":"https:\/\/2thenew.today\/blog\/author\/Priyanku\/","name":"Priyanku Dwivedi","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/9adf32274f071efda1243a6e1366a392dc8743b9481e86d276e6e8616877829f?s=96&d=mm&r=g","width":96,"height":96,"caption":"Priyanku Dwivedi"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/#webpage","url":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/","name":"How to get highlighted results using Solr and Solrj | TO THE NEW Blog","description":"UseCase I am using Apache Solr as a search platform integrated with AEM CMS. I had a requirement where I needed to highlight the matching part of the text in the search results. Another part was that it should work even if the browser doesn\u2019t have javascript enabled. Solution To achieve the highlighting functionality I used","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/Priyanku\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/Priyanku\/#author"},"datePublished":"2016-01-29T10:48:00+05:30","dateModified":"2016-02-08T13:11:15+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"How to get highlighted results using Solr and Solrj | TO THE NEW Blog","og:description":"UseCase I am using Apache Solr as a search platform integrated with AEM CMS. I had a requirement where I needed to highlight the matching part of the text in the search results. Another part was that it should work even if the browser doesn\u2019t have javascript enabled. Solution To achieve the highlighting functionality I used","og:url":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"How to get highlighted results using Solr and Solrj | TO THE NEW Blog","twitter:description":"UseCase I am using Apache Solr as a search platform integrated with AEM CMS. I had a requirement where I needed to highlight the matching part of the text in the search results. Another part was that it should work even if the browser doesn\u2019t have javascript enabled. Solution To achieve the highlighting functionality I used","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"31954","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 12:13:52","updated":"2024-02-29 08:25:22","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to get highlighted results using Solr and Solrj\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"Technology","link":"https:\/\/2thenew.today\/blog\/category\/technology\/"},{"label":"How to get highlighted results using Solr and Solrj","link":"https:\/\/2thenew.today\/blog\/how-to-get-highlighted-results-using-solr-and-solrj\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/31954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/552"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=31954"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/31954\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=31954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=31954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=31954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}