<?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 Lucene Search in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221942#M175072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm developing a GWT application that uses the Alfresco Repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my application I do some lucene searches in the Alfresco repository, but I start notice that something is wrong. So, I started to use the node browser to test the querys I use, and I found what is going on. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing is, If I do the query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH:"/app:company_home/cm:FolderA/cm:FolderB/cm:FolderC//*" AND TYPE:"{&lt;/SPAN&gt;&lt;A href="http://www.model.pt/model/content/1.0}myType" rel="nofollow noopener noreferrer"&gt;http://www.model.pt/model/content/1.0}myType&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;teste_psql.sql&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;moredataModel.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;estrutura_expediente.dia&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And this is right (these are some documents that I have in my desktop and just added them to alfresco).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the strange thing is, if I do the query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH:"/app:company_home/cm:FolderA/cm:FolderB/cm:FolderC//*" AND TYPE:"{&lt;/SPAN&gt;&lt;A href="http://www.model.pt/model/content/1.0}myType" rel="nofollow noopener noreferrer"&gt;http://www.model.pt/model/content/1.0}myType&lt;/A&gt;&lt;SPAN&gt;" AND &lt;/SPAN&gt;&lt;STRONG&gt;@cm\:name:"teste_psql.sql"&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;nothing is found… The same happens for the file &lt;/SPAN&gt;&lt;STRONG&gt;sigpoaModel.xml&lt;/STRONG&gt;&lt;SPAN&gt; BUT not for the file &lt;/SPAN&gt;&lt;STRONG&gt;estrutura_expediente.dia&lt;/STRONG&gt;&lt;SPAN&gt;!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do the query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH:"/app:company_home/cm:FolderA/cm:FolderB/cm:FolderC//*" AND TYPE:"{&lt;/SPAN&gt;&lt;A href="http://www.model.pt/model/content/1.0}myType" rel="nofollow noopener noreferrer"&gt;http://www.model.pt/model/content/1.0}myType&lt;/A&gt;&lt;SPAN&gt;" AND &lt;/SPAN&gt;&lt;STRONG&gt;@cm\:name:"estrutura_expediente.dia"&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the right result!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone tell me what is going on?&amp;nbsp; :x &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;Luis Gonçalves&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2009 13:19:15 GMT</pubDate>
    <dc:creator>luisg</dc:creator>
    <dc:date>2009-12-29T13:19:15Z</dc:date>
    <item>
      <title>Lucene Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221942#M175072</link>
      <description>Hi there…I'm developing a GWT application that uses the Alfresco Repository.In my application I do some lucene searches in the Alfresco repository, but I start notice that something is wrong. So, I started to use the node browser to test the querys I use, and I found what is going on. The thing is,</description>
      <pubDate>Tue, 29 Dec 2009 13:19:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221942#M175072</guid>
      <dc:creator>luisg</dc:creator>
      <dc:date>2009-12-29T13:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221943#M175073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some news here…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do the query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH:"/app:company_home/cm:FolderA/cm:FolderB/cm:FolderC//*" AND TYPE:"{&lt;/SPAN&gt;&lt;A href="http://www.model.pt/model/content/1.0}myType" rel="nofollow noopener noreferrer"&gt;http://www.model.pt/model/content/1.0}myType&lt;/A&gt;&lt;SPAN&gt;" AND @cm\:name:moredataModel.xml*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the right result. But for the file teste_psql.sql I had tried&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH:"/app:company_home/cm:FolderA/cm:FolderB/cm:FolderC//*" AND TYPE:"{&lt;/SPAN&gt;&lt;A href="http://www.model.pt/model/content/1.0}myType" rel="nofollow noopener noreferrer"&gt;http://www.model.pt/model/content/1.0}myType&lt;/A&gt;&lt;SPAN&gt;" AND @cm\:name:teste_psql.sql*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH:"/app:company_home/cm:FolderA/cm:FolderB/cm:FolderC//*" AND TYPE:"{&lt;/SPAN&gt;&lt;A href="http://www.model.pt/model/content/1.0}myType" rel="nofollow noopener noreferrer"&gt;http://www.model.pt/model/content/1.0}myType&lt;/A&gt;&lt;SPAN&gt;" AND @cm\:name:*teste_psql.sql*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;even&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH:"/app:company_home/cm:FolderA/cm:FolderB/cm:FolderC//*" AND TYPE:"{&lt;/SPAN&gt;&lt;A href="http://www.model.pt/model/content/1.0}myType" rel="nofollow noopener noreferrer"&gt;http://www.model.pt/model/content/1.0}myType&lt;/A&gt;&lt;SPAN&gt;" AND @cm\:name:teste*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and none of them worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 14:14:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221943#M175073</guid>
      <dc:creator>luisg</dc:creator>
      <dc:date>2009-12-29T14:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221944#M175074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I share the same frustration with Lucene Search.&amp;nbsp; I want to look into it a bit more.&amp;nbsp; First, can you post the link that explains to write the code this way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lucille&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 16:11:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221944#M175074</guid>
      <dc:creator>lucille_arkenst</dc:creator>
      <dc:date>2009-12-29T16:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221945#M175075</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 solved my problem, searching the documents by its id, and not for its name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I think this is something that should be clarified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my code I used the code (in java):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;String query = "PATH:\""+path+"//*\" AND " +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "TYPE:\"{&lt;A href="http://www.mymodel.pt/model/content/1.0}document\" rel="nofollow noopener noreferrer"&gt;http://www.mymodel.pt/model/content/1.0}document\&lt;/A&gt;" AND " +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "@cm\\:name:\""+documentName+"\"";&lt;BR /&gt;&lt;BR /&gt;Query q = new Query(Constants.QUERY_LANG_LUCENE, query);&lt;BR /&gt;QueryResult queryResult = getRepositoryService().query(STORE, q, false);&lt;BR /&gt;org.alfresco.webservice.types.ResultSet resultSet = queryResult.getResultSet();&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;/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;But when the program will fail in the line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Reference reference = new Reference(STORE, rows[0].getNode().getId(), null);&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;Giving me a nullPointerException, cause the query don't give me any results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, as I told you before, if I execute the query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PATH:""+path+"//*" AND TYPE:"{&lt;/SPAN&gt;&lt;A href="http://www.mymodel.pt/model/content/1.0}document" rel="nofollow noopener noreferrer"&gt;http://www.mymodel.pt/model/content/1.0}document&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The document is in the list, but I don't get the document passing its name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luis Gonçalves&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 17:22:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221945#M175075</guid>
      <dc:creator>luisg</dc:creator>
      <dc:date>2009-12-29T17:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221946#M175076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is your indexation state OK ? (I mean the synchronisation between data and indexes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;because it look like a out of synch problem…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 09:52:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221946#M175076</guid>
      <dc:creator>alex54</dc:creator>
      <dc:date>2010-01-11T09:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221947#M175077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi luisg,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you get any solution for your problem? Iam also facing similar kind of problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:50:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221947#M175077</guid>
      <dc:creator>maqsood</dc:creator>
      <dc:date>2010-01-21T10:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221948#M175078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try to reindex your whole reposiory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Include following line in your repository properties file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;index.recovery.mode=FULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and restart alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lucene starts to behave in strange manner if indexes are not synced. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;About that, can anyone answer why this happens and what one can do to prevent this happening? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is very unpleasant if it happens on production servers..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jan 2010 15:01:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221948#M175078</guid>
      <dc:creator>msvoren</dc:creator>
      <dc:date>2010-01-24T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221949#M175079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi msvoren,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help. but it didn't seem to be work out for me…&amp;nbsp; &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;BR /&gt;&lt;SPAN&gt;Any other solution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 12:33:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search/m-p/221949#M175079</guid>
      <dc:creator>maqsood</dc:creator>
      <dc:date>2010-01-27T12:33:25Z</dc:date>
    </item>
  </channel>
</rss>

