{"id":362,"date":"2013-01-15T22:51:16","date_gmt":"2013-01-15T22:51:16","guid":{"rendered":"http:\/\/entrian.com\/blog\/?p=362"},"modified":"2021-07-01T07:15:23","modified_gmt":"2021-07-01T07:15:23","slug":"1-4-9-loose-search-and-quoted-wildcards","status":"publish","type":"post","link":"https:\/\/entrian.com\/blog\/1-4-9-loose-search-and-quoted-wildcards\/","title":{"rendered":"Entrian Source Search 1.4.8: Loose search, wildcards in quoted phrases"},"content":{"rendered":"<ul>\n<li>New feature: <strong>Loose search<\/strong>, which searches for matches near to each other rather than for exact phrases:<br \/>\n<a href=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2013\/01\/loose-query.png\"><\/a><a href=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2013\/01\/loose-query1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-370 alignnone\" src=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2013\/01\/loose-query1.png\" alt=\"Screenshot\" width=\"625\" height=\"190\" srcset=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2013\/01\/loose-query1.png 625w, https:\/\/entrian.com\/blog\/wp-content\/uploads\/2013\/01\/loose-query1-300x91.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><br \/>\nThe default behaviour for <span class=\"query\">loose:&#8221;some phrase&#8221;<\/span> is to allow up to ten tokens between the matches, but you can tune that: <span class=\"query\">loose100:&#8221;some phrase&#8221;<\/span> allows 100 tokens between the matches.\u00a0 The terms don&#8217;t have to appear on the same line for matches to be found, nor do they need to appear in the order you give them. \u00a0Thanks, Rory and Darker.<\/li>\n<li>You can now use <strong>wildcards in quoted phrases<\/strong>:<br \/>\n<a href=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2013\/01\/quoted-wildcard3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-374\" src=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2013\/01\/quoted-wildcard3.png\" alt=\"\" width=\"625\" height=\"224\" srcset=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2013\/01\/quoted-wildcard3.png 625w, https:\/\/entrian.com\/blog\/wp-content\/uploads\/2013\/01\/quoted-wildcard3-300x108.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><br \/>\n<\/a>And of course you can combine these two features to do a loose search for wildcards.<\/li>\n<li><strong>Breaking change<\/strong>: To escape an asterisk, eg. to search for <code>char*<\/code>, putting it in quotes no longer works (because wildcards now work in quoted phrases). \u00a0You need to escape it with a backslash: <span class=\"query\">char\\*<\/span> or quote it and add a space: <span class=\"query\">&#8220;char *&#8221;<\/span> (which will still find <code>char*<\/code>).<\/li>\n<li>The &#8220;Partial results&#8221; warning, which has always appeared during the initial build of an index, now also appears when you add a new root directory. \u00a0Thanks, Jason.<\/li>\n<li>Fixed a very rare (like, once ever) shutdown crash (AccessViolationException).<\/li>\n<li>Adding a root directory for which you don&#8217;t have read permission no longer crashes. \u00a0Thanks, Jean-Fran\u00e7ois.<\/li>\n<li>The &#8220;Licensed to&#8221; text no longer overlaps the &#8220;Hit&#8221; label when your window is very narrow.<\/li>\n<li>Source Search now works on PCs with <a href=\"http:\/\/support.microsoft.com\/kb\/811833\">FIPS Compliance<\/a> enabled.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>New feature: Loose search, which searches for matches near to each other rather than for exact phrases: The default behaviour for loose:&#8221;some phrase&#8221; is to allow up to ten tokens between the matches, but you can tune that: loose100:&#8221;some phrase&#8221; allows 100 tokens between the matches.\u00a0 The terms don&#8217;t have to appear on the same [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-362","post","type-post","status-publish","format-standard","hentry","category-30days","category-changelog"],"_links":{"self":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/comments?post=362"}],"version-history":[{"count":1,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":1252,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts\/362\/revisions\/1252"}],"wp:attachment":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/media?parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/categories?post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/tags?post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}