<?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 Full-Text Search not working. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/full-text-search-not-working/m-p/256959#M210089</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;I am using Alfresco 4.2.b with Java foundation api in my app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am adding a text content to repository and query it with lucene. I can't find the content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add the content from alfresco web client same query is working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My lucene is like ALL:MYCONTENT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue is similar with&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=4&amp;amp;t=37137&amp;amp;hilit=lucene" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=4&amp;amp;t=37137&amp;amp;hilit=lucene&lt;/A&gt;&lt;SPAN&gt; but it is not solved either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2012 16:53:54 GMT</pubDate>
    <dc:creator>beslan</dc:creator>
    <dc:date>2012-12-07T16:53:54Z</dc:date>
    <item>
      <title>Full-Text Search not working.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/full-text-search-not-working/m-p/256959#M210089</link>
      <description>Hi,I am using Alfresco 4.2.b with Java foundation api in my app.I am adding a text content to repository and query it with lucene. I can't find the content.If I add the content from alfresco web client same query is working.My lucene is like ALL:MYCONTENT.My issue is similar with&amp;nbsp; https://forums.alf</description>
      <pubDate>Fri, 07 Dec 2012 16:53:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/full-text-search-not-working/m-p/256959#M210089</guid>
      <dc:creator>beslan</dc:creator>
      <dc:date>2012-12-07T16:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Full-Text Search not working.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/full-text-search-not-working/m-p/256960#M210090</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;I have solved the problem. It is simple but hard to find.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If mimetype of content is null then full text search is not working.&lt;/SPAN&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;ContentService contentService = this.getServiceRegistry().getContentService();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ContentWriter writer = contentService.getWriter(contentNodeRef, ContentModel.PROP_CONTENT, true);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;writer.setMimetype(content.getMimeType()); //This was null for me.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;writer.setEncoding("UTF-8");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;writer.putContent(new ByteArrayInputStream(contentBuffer));&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 07:43:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/full-text-search-not-working/m-p/256960#M210090</guid>
      <dc:creator>beslan</dc:creator>
      <dc:date>2012-12-10T07:43:56Z</dc:date>
    </item>
  </channel>
</rss>

