<?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: Help with searching in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/help-with-searching/m-p/44821#M24791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With the default search setting you are saying give me all the documents with either "boo" OR "shoo" in them.&amp;nbsp; As a result the two files are returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want both terms to be in the documents returned, but not necessarily as a phrase, use +boo +shoo - this is saying give you all the documents with both boo AND shoo in them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want the phrase "boo shoo" then you need to put the query in quotes - "boo shoo" - this says find the documents with the exact phrase "boo shoo" in it - should only return one result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to return documents with both "boo" and "shoo" in them by default, you may want to change the setting in your web-client-config-custom.xml file as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;config&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ……&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– enable AND for simple and advanced search by default –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;search-and-terms&amp;gt;true&amp;lt;/search-and-terms&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ……&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/client&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;The wiki gives some technical information on how search is setup at &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Version 2 of Alfresco has upgraded to Lucene v2.0.0 ( &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Release_2.0" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Release_2.0&lt;/A&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2007 13:14:03 GMT</pubDate>
    <dc:creator>dnind</dc:creator>
    <dc:date>2007-02-27T13:14:03Z</dc:date>
    <item>
      <title>Help with searching</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-searching/m-p/44820#M24790</link>
      <description>I recently installed the new release of Alfresco 2.0 and am giving it a test whirl and I have come to understand that the search engine supports Lucene. I must admit here that I have no prior knowledge in Lucene queries and I was hoping someone would be able to help me with an issue in searching tha</description>
      <pubDate>Sun, 25 Feb 2007 05:40:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-searching/m-p/44820#M24790</guid>
      <dc:creator>atariq</dc:creator>
      <dc:date>2007-02-25T05:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with searching</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-searching/m-p/44821#M24791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With the default search setting you are saying give me all the documents with either "boo" OR "shoo" in them.&amp;nbsp; As a result the two files are returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want both terms to be in the documents returned, but not necessarily as a phrase, use +boo +shoo - this is saying give you all the documents with both boo AND shoo in them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want the phrase "boo shoo" then you need to put the query in quotes - "boo shoo" - this says find the documents with the exact phrase "boo shoo" in it - should only return one result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to return documents with both "boo" and "shoo" in them by default, you may want to change the setting in your web-client-config-custom.xml file as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;config&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ……&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– enable AND for simple and advanced search by default –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;search-and-terms&amp;gt;true&amp;lt;/search-and-terms&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ……&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/client&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;The wiki gives some technical information on how search is setup at &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Version 2 of Alfresco has upgraded to Lucene v2.0.0 ( &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Release_2.0" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Release_2.0&lt;/A&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 13:14:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-searching/m-p/44821#M24791</guid>
      <dc:creator>dnind</dc:creator>
      <dc:date>2007-02-27T13:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with searching</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-searching/m-p/44822#M24792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, dnind, that worked just fine! &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;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been fooling around with Lucene queries and I had been trying to use the AND operator (e.g boo AND shoo) but it would keep breaking with a 'Query could not be parsed' error. Writing it in this form '+boo +shoo', however, worked like a charm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With respect to the code snippet you posted for default searches (something that would really help), I'm still trying to get a hang of how the code works and how the wiki can help. It's all a little helter skelter to me, now, I'm afraid. I had been looking at the wiki page but it almost seems as if it discusses hard coded searches – not something practical, for obvious reasons. Would I have to put your &amp;lt;config&amp;gt; …. &amp;lt;/config&amp;gt; code within an advanced search tab or is the block on its own?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any case, I'm going to get my hands dirty some more. Thanks again for your help on this!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 15:37:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-searching/m-p/44822#M24792</guid>
      <dc:creator>atariq</dc:creator>
      <dc:date>2007-02-28T15:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with searching</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-with-searching/m-p/44823#M24793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The basics for configuration of the web client (for Tomcat).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The default web client configuration file - web-client-config.xml - is located at &amp;lt;alfresco&amp;gt;/tomcat/webapps/alfresco/WEB-INF/classes/alfresco&amp;nbsp; You can see in this file the settings you can change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to over-ride any of these settings you need to include them in the web-client-config-custom.xml file located at &amp;lt;alfresco&amp;gt;/tomcat/shared/classes/alfresco/extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is good practice to do this as the files in the /tomcat/shared folder are not altered when you upgrade Alfresco or if the alfresco.war file is redeployed (if this happens, it replaces all the files under the webapps/alfresco folder).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in the search example the default is set in &amp;lt;alfresco&amp;gt;/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/web-client-config.xml&amp;nbsp; to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;config&amp;gt;&lt;BR /&gt;&amp;nbsp; ……….&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ……….&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– set this value to true to enable AND text terms for simple/advanced search by default –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;search-and-terms&amp;gt;false&amp;lt;/search-and-terms&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ……..&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/client&amp;gt;&lt;BR /&gt;&amp;nbsp; ……..&lt;BR /&gt;&amp;lt;/config&amp;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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;To over-ride this so that it is enabled change &amp;lt;alfresco&amp;gt;/tomcat/shared/classes/alfresco/extension/web-client-config-custom.xml to include:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;config&amp;gt;&lt;BR /&gt;&amp;nbsp; ……….&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ……….&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– enable AND text terms for simple/advanced search by default –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;search-and-terms&amp;gt;true&amp;lt;/search-and-terms&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ……..&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/client&amp;gt;&lt;BR /&gt;&amp;nbsp; ……..&lt;BR /&gt;&amp;lt;/config&amp;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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;STRONG&gt;Note:&amp;nbsp; You need to restart Alfresco for these changes to take effect.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Further resources that contain some good information to get started with (and can explain it better than I can):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Web Client Configuration Guide at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Client_Configuration_Guide" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Client_Configuration_Guide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Web Client Customisation Guide&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Client_Customisation_Guide" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Client_Customisation_Guide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are serious about using Alfresco I would highly recommend the book Alfresco Enterprise Content Management Implementation if your just getting started, particularly Chapter 7 on extending the content model:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_Books" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_Books&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:50:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-with-searching/m-p/44823#M24793</guid>
      <dc:creator>dnind</dc:creator>
      <dc:date>2007-03-01T11:50:46Z</dc:date>
    </item>
  </channel>
</rss>

