<?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: Modifying search query for Full Text Search in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272003#M225133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure if this would help you&amp;nbsp;&amp;nbsp; but I can mention query which helps to filter some specific text :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the below example you will not be able to search content having text as "fox"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For e.g. - the Lucene query you can check in nodebrowser&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+(TEXT:*) -(TEXT:fox)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here &lt;/SPAN&gt;&lt;STRONG&gt;"+"&lt;/STRONG&gt;&lt;SPAN&gt; will be considered as "must match "&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;"-"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; as "must not match"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now if you want to apply this when you are searching from search box&amp;nbsp; then you have&amp;nbsp; to make change at API level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SearchContext is the class which is basically used for building query . You can check buildQuery() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 09:18:35 GMT</pubDate>
    <dc:creator>amitabhandari1</dc:creator>
    <dc:date>2011-03-23T09:18:35Z</dc:date>
    <item>
      <title>Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272000#M225130</link>
      <description>Hi all,Alfresco search will search also the contents and I have a constraint that the search should not search and get the details if the search text is a XML tag.For instance If I have a xml called Sample.xml,&amp;lt;sample-xml&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABCDEFGH&amp;lt;/sample-xml&amp;gt;If I enter the text "sample-xml", it sh</description>
      <pubDate>Mon, 14 Mar 2011 09:11:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272000#M225130</guid>
      <dc:creator>jeyaa</dc:creator>
      <dc:date>2011-03-14T09:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272001#M225131</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;If you mean "I do not want to find the tages &amp;lt;sample.xml&amp;gt; in the content of my XML file", then this is down to your converter from xml to text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe the default is to strip out tags ??&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, 21 Mar 2011 14:43:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272001#M225131</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2011-03-21T14:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272002#M225132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply andy. I would be grateful if you'd explain me in detail about your solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 05:44:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272002#M225132</guid>
      <dc:creator>jeyaa</dc:creator>
      <dc:date>2011-03-22T05:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272003#M225133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure if this would help you&amp;nbsp;&amp;nbsp; but I can mention query which helps to filter some specific text :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the below example you will not be able to search content having text as "fox"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For e.g. - the Lucene query you can check in nodebrowser&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+(TEXT:*) -(TEXT:fox)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here &lt;/SPAN&gt;&lt;STRONG&gt;"+"&lt;/STRONG&gt;&lt;SPAN&gt; will be considered as "must match "&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;"-"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; as "must not match"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now if you want to apply this when you are searching from search box&amp;nbsp; then you have&amp;nbsp; to make change at API level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SearchContext is the class which is basically used for building query . You can check buildQuery() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 09:18:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272003#M225133</guid>
      <dc:creator>amitabhandari1</dc:creator>
      <dc:date>2011-03-23T09:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272004#M225134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply amita. This would be really helpful to me. &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;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 09:44:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272004#M225134</guid>
      <dc:creator>jeyaa</dc:creator>
      <dc:date>2011-03-23T09:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272005#M225135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Amita,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lucene search is not considering "&amp;lt;" and "&amp;gt;" characters. Do you have any idea about that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;try.xml&lt;BR /&gt;&amp;lt;sample&amp;gt;lucene&amp;lt;/sample&amp;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;BR /&gt;&lt;SPAN&gt;If I try with &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;@cm\:name:"try*" +TEXT:"lucene" &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;@cm\:name:"try*" +TEXT:"&amp;lt;lucene&amp;gt;"&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;SPAN&gt;Both query is resulting me ""try.xml", since the text "lucene" is not inside tags. Why the search is behaving like this.? Any Idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 10:33:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272005#M225135</guid>
      <dc:creator>jeyaa</dc:creator>
      <dc:date>2011-03-23T10:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272006#M225136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did&amp;nbsp; you try directly with&amp;nbsp; this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TEXT:&amp;lt;sample&amp;gt;lucene&amp;lt;/sample&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 10:45:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272006#M225136</guid>
      <dc:creator>amitabhandari1</dc:creator>
      <dc:date>2011-03-23T10:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272007#M225137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No amita, I have a xml named try.xml and there it has the content &amp;lt;sample&amp;gt;lucene&amp;lt;/sample&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had written the query as&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@cm\:name:"try*" +TEXT:"&amp;lt;lucene&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried with the query u added now, it too gives the same result amita.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 10:51:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272007#M225137</guid>
      <dc:creator>jeyaa</dc:creator>
      <dc:date>2011-03-23T10:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272008#M225138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not getting what search result you want .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to exclude use&amp;nbsp; -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to&amp;nbsp; get the content with that text then use +&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clarify your requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 11:04:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272008#M225138</guid>
      <dc:creator>amitabhandari1</dc:creator>
      <dc:date>2011-03-23T11:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272009#M225139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Let me explain you clearly amita.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to search the content of a file (ie., try.xml in my example) which is not an xml element. So from my above example, If I search by the text "sample", the search result should be '0'. So I want to exclude the text which is present inside the tags. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I did a sample search query, just to test whether lucene is considering "&amp;lt;" abd "&amp;gt;" characters in its search or not. So i have written 2 queries &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@cm\:name:"try*" +TEXT:"lucene"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@cm\:name:"try*" +TEXT:"&amp;lt;lucene&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In which both the queries returned the same result. So from this we can say that lucene is not considering "&amp;lt;" and "&amp;gt;" in its search. I had an idea of writing query like this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;@cm\:name:"try*" -TEXT:"&amp;lt;*&amp;gt;"&amp;nbsp; +TEXT:"sample"&lt;SPAN class="line-numbers-rows"&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;ie., eliminating the content which is inside the xml tags. But from the above conclusion those tags(&amp;lt;&amp;gt;) will not be considered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how could I pursue to eliminate the xml elements from searching?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jeya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 11:31:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272009#M225139</guid>
      <dc:creator>jeyaa</dc:creator>
      <dc:date>2011-03-23T11:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272010#M225140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case you might have to&amp;nbsp; check which Analyzer&amp;nbsp; is using for search.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also create your own Analyzers . You need analyzer which will consider "&amp;lt; &amp;gt;" also during search.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 12:16:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272010#M225140</guid>
      <dc:creator>amitabhandari1</dc:creator>
      <dc:date>2011-03-23T12:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying search query for Full Text Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272011#M225141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks amita, will look on that prespective. Thanks once again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 13:58:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/modifying-search-query-for-full-text-search/m-p/272011#M225141</guid>
      <dc:creator>jeyaa</dc:creator>
      <dc:date>2011-03-23T13:58:53Z</dc:date>
    </item>
  </channel>
</rss>

