<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Site search syntax for finding files by wildcard pattern in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/site-search-syntax-for-finding-files-by-wildcard-pattern/m-p/279569#M232699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've managed to find the files using the following search pattern: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;+PATH:"//cm:Reports//*" AND cm:name:WP*rep*.pdf&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But as soon as I add hyphens it doesn't work anymore: WP-*-rep-*.pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, that's not so important, but why is that and how can I include them into the pattern? Escaping using backslash or _x002d_ didn't work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2013 17:25:29 GMT</pubDate>
    <dc:creator>almoehi</dc:creator>
    <dc:date>2013-02-18T17:25:29Z</dc:date>
    <item>
      <title>Site search syntax for finding files by wildcard pattern</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/site-search-syntax-for-finding-files-by-wildcard-pattern/m-p/279568#M232698</link>
      <description>Hi everybody,I'd like to use the site search dashlet to find certain files in a doc lib sub folder. The are of type pdf and their names follow a defined scheme with variables. How is the syntax for that? Let's say, for example, I have a folder "Reports" in the doc lib, and in this folder are, amongs</description>
      <pubDate>Mon, 18 Feb 2013 17:14:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/site-search-syntax-for-finding-files-by-wildcard-pattern/m-p/279568#M232698</guid>
      <dc:creator>almoehi</dc:creator>
      <dc:date>2013-02-18T17:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Site search syntax for finding files by wildcard pattern</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/site-search-syntax-for-finding-files-by-wildcard-pattern/m-p/279569#M232699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've managed to find the files using the following search pattern: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;+PATH:"//cm:Reports//*" AND cm:name:WP*rep*.pdf&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But as soon as I add hyphens it doesn't work anymore: WP-*-rep-*.pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, that's not so important, but why is that and how can I include them into the pattern? Escaping using backslash or _x002d_ didn't work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 17:25:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/site-search-syntax-for-finding-files-by-wildcard-pattern/m-p/279569#M232699</guid>
      <dc:creator>almoehi</dc:creator>
      <dc:date>2013-02-18T17:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Site search syntax for finding files by wildcard pattern</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/site-search-syntax-for-finding-files-by-wildcard-pattern/m-p/279570#M232700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can escape "-" using \ in query expressions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also quote the expression - you are allowed to use - and * inside phrases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also you can prefix cm:name with = to enforce pattern matching and not token matching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What version of Alfresco are we talking about?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*.pdf &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;….should all find the docs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The lucene tokeniser does some odd stuff with 12-3-04 as it thinks it is a date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You may be falling for this. Infact it does this for any odd number temr split by -: etc ….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using lucene you probably want to consider moving to SOLR or changing the default analysis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also decide to use a separator that does not mean anything in the query language.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You should also consider putting metadata on your nodes rather then encoding this in the name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It will also much easier and more efficient to query. (you can configure the search to use these fields)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you have to escape punctuation as the start the easiest thing is to miss it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 10:57:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/site-search-syntax-for-finding-files-by-wildcard-pattern/m-p/279570#M232700</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2013-03-11T10:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Site search syntax for finding files by wildcard pattern</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/site-search-syntax-for-finding-files-by-wildcard-pattern/m-p/279571#M232701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your answer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;What version of Alfresco are we talking about?&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Alfresco Community 4.2.c (I thought it would be shown somewhere as I've selected it from the dropdown box on creating the topic).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;You can escape "-" using \ in query expressions. …&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Escaping the hyphens does not work, nor does quoting, but the = prefix did the trick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;You can also decide to use a separator that does not mean anything in the query language. …&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I have to stick to the naming scheme as it is defined by the project guidelines. Meta data gets lost when the file is passed around. And yes, "*.pdf" or simply "pdf" finds all pdfs in the directory, but I really need to look for the mentioned pattern (there are other pdfs in the directory and sometimes I need to find a subset, for example the second report of all groups).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you helped me a lot with that, thanks again. Maybe I should spend some time learning lucene basics. The problem is that our project members definitely won't be willing to do so. They keep complaining to me about the search function. Like me they don't ever need the full power of the engine, they only need it for finding file names in the document lib and thus expect it to work like windows file explorer. It would be really nice to have some simple document-lib-only search in future releases that provides exactly that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 13:23:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/site-search-syntax-for-finding-files-by-wildcard-pattern/m-p/279571#M232701</guid>
      <dc:creator>almoehi</dc:creator>
      <dc:date>2013-03-11T13:23:43Z</dc:date>
    </item>
  </channel>
</rss>

