<?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: Wildcards in Lucene Searches in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46684#M26267</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;The short names issue with wildcard queries (and fuzzy queries and prefix queries) is fixed in 2.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 15:41:52 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2007-01-10T15:41:52Z</dc:date>
    <item>
      <title>Wildcards in Lucene Searches</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46675#M26258</link>
      <description>HiThis follows on from an earlier thread which wasn't resolved.I'm having difficulty getting wildcard searches to work. For example:@cm\:name:heal*‍I've traced through the relevant code and the problem seems to be in org.alfresco.repo.search.impl.lucene.QueryParser, around line 720:&amp;nbsp; final public Qu</description>
      <pubDate>Tue, 07 Nov 2006 13:33:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46675#M26258</guid>
      <dc:creator>dbevacqua</dc:creator>
      <dc:date>2006-11-07T13:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in Lucene Searches</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46676#M26259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I should add that the result is that this line&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q = getFieldQuery(field, analyzer, term.image.substring(1, term.image.length()-1), s);&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;is not called when there is a wildcard, but is called when there isn't.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 15:42:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46676#M26259</guid>
      <dc:creator>dbevacqua</dc:creator>
      <dc:date>2006-11-07T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in Lucene Searches</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46677#M26260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok please ignore the above, and if you are near enough and appropriately armed, shoot me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Complete red herring - having just RTFM for PrefixQuery I see that it has correctly identified it. I should never really have doubted JavaCC…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still no results returned though &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 16:41:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46677#M26260</guid>
      <dc:creator>dbevacqua</dc:creator>
      <dc:date>2006-11-07T16:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in Lucene Searches</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46678#M26261</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;Having looked through the source for LuceneTest and Lucene2Test, I can't see any tests of the wildcard searches. Could somebody point me at one please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominic&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 17:55:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46678#M26261</guid>
      <dc:creator>dbevacqua</dc:creator>
      <dc:date>2006-11-07T17:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in Lucene Searches</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46679#M26262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok finally got a wildcard search to work by using the full QName of the property:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(escaping removed for readability)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@{ourNamespace}name:health*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20 results&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@{ourNamespace}name:health&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;19 results&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@{ourNamespace}name:healthy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 result&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this sheds some light and reassures you that I am not totally insane.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea why the short version is only working when wildcards not given? Something peculiar about our namespace name or the local name?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominic&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 18:56:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46679#M26262</guid>
      <dc:creator>dbevacqua</dc:creator>
      <dc:date>2006-11-07T18:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in Lucene Searches</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46680#M26263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes the full form uri must be used for a lucene search - sorry we should have spotted this earlier when you posted it. I'm not sure when the short form works if at all &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; I would suggest you stick with the long form - that's what we use when generating searches in the web-client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance, this is the query I generate when the user wants to search for content with the name of "myfile.txt":&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; TYPE:"{&lt;A href="http://www.alfresco.org/model/content/1.0}content" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content&lt;/A&gt;" AND @\{http\://&lt;A href="http://www.alfresco.org/model/content/1.0\}name:myfile.txt" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\}name:myfile.txt&lt;/A&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I've not tried to use the short form myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wildcarding is also working correctly. E.g. I generate this search when the user wants to find all files starting with the name "myfile":&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; TYPE:"{&lt;A href="http://www.alfresco.org/model/content/1.0}content" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content&lt;/A&gt;" AND @\{http\://&lt;A href="http://www.alfresco.org/model/content/1.0\}name:myfile*" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\}name:myfile*&lt;/A&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 14:24:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46680#M26263</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-11-08T14:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in Lucene Searches</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46681#M26264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kevin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply. The short form works when no wildcard is specified. I notice that the NamespaceResolver bein used only contains a mapping between one of the three prefixes in my content model and the namespace uri. There are a number of other null entries in the prefixes. DOn't know if this is of any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should point out that examples on this wiki page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search#Finding_nodes_by_text_property_values" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Finding_nodes_by_text_property_values&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use short names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway I shall use the full name from now on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominic&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 15:16:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46681#M26264</guid>
      <dc:creator>dbevacqua</dc:creator>
      <dc:date>2006-11-08T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in Lucene Searches</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46682#M26265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting that short names seem to be the problem - i've emailed our Lucene expert who wrote our integration and when he gets back from holiday hopefully he can shed some light on the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 09:16:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46682#M26265</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-11-09T09:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in Lucene Searches</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46683#M26266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot, It has been a great help. I was really mad trying to find what was wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 13:40:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46683#M26266</guid>
      <dc:creator>jtorres</dc:creator>
      <dc:date>2006-11-23T13:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in Lucene Searches</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46684#M26267</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;The short names issue with wildcard queries (and fuzzy queries and prefix queries) is fixed in 2.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 15:41:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wildcards-in-lucene-searches/m-p/46684#M26267</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-01-10T15:41:52Z</dc:date>
    </item>
  </channel>
</rss>

