<?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 problem in Lucene through web-service in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-lucene-through-web-service/m-p/94928#M65092</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;SPAN&gt;I am trying to search in the repository using web-service and Lucene. My search depends on document metadata (properties). I am trying to search for document by name and owner (my custom document property).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt;&lt;SPAN&gt; If I created a document called "sample.txt" and search for it, search succeeded. But, if I delete the file and uploaded it again with the same name and try to search for it again, I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Node does not exist: workspace://SpacesStore/3a8c490c-fcaf-11db-851c-ebd74aa2bd91&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that Lucene does not update its index and still have the same reference for old one (the deleted one).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What can I do to force the Lucene to reindex the document noting that I am using web-service API for all the work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2) &lt;/STRONG&gt;&lt;SPAN&gt;For my custom property "owner", I tried to search by using the two queries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;@\\{http\\://&lt;A href="http://www.alfresco.org/model/content/1.0\\}owner:%22test" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\\}owner:'test&lt;/A&gt;"&lt;BR /&gt;@owner\:"test"&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But both fail and does not return result noting that there are documents that match the query criteria.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I solve this problem and can search by my custom properties?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 12:31:52 GMT</pubDate>
    <dc:creator>wael_shaban</dc:creator>
    <dc:date>2007-05-08T12:31:52Z</dc:date>
    <item>
      <title>problem in Lucene through web-service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-lucene-through-web-service/m-p/94928#M65092</link>
      <description>Hi,I am trying to search in the repository using web-service and Lucene. My search depends on document metadata (properties). I am trying to search for document by name and owner (my custom document property).I have the following problems:1) If I created a document called "sample.txt" and search for</description>
      <pubDate>Tue, 08 May 2007 12:31:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-lucene-through-web-service/m-p/94928#M65092</guid>
      <dc:creator>wael_shaban</dc:creator>
      <dc:date>2007-05-08T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem in Lucene through web-service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-lucene-through-web-service/m-p/94929#M65093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I didn't know about your first problem, but I also have your second problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read in the Wiki (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search_Documentation#Lucene_Language" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search_Documentation#Lucene_Language&lt;/A&gt;&lt;SPAN&gt;) about how to write the queries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Attributes as fields&lt;BR /&gt;&lt;UL&gt;@{namespace-uri}name&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;QName qname = QName.createQName(NamespaceService.ALFRESCO_URI, "int-ista");&lt;BR /&gt;results = searcher.query(storeRef, "lucene", "\\@" + escapeQName(qname) + ":\"01\"", null, 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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.- The NamespaceService is not available in WebServices API… is it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.- Wich class implements escapeQName???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.- From wich package do I have to import the QName, because I have seen in a example javax.xml.namespace.QName, but it doesnt have the createQName static method&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4.- Why in the wiki I have told, there are some fields wroten in green, like ASPECT, ID… and some others in red, like QNAME, @{namespace-uri}name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5.- If I try to write directly the namespace-uri, how do I have to write it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please, help!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 16:08:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-lucene-through-web-service/m-p/94929#M65093</guid>
      <dc:creator>putodemonio</dc:creator>
      <dc:date>2007-06-07T16:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem in Lucene through web-service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-lucene-through-web-service/m-p/94930#M65094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Below sample seach file contain text alfresco and creator should be an admin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;queryString = "+PARENT:\"workspace://SpacesStore/"+&amp;lt;&amp;lt;Add Parent Node reference id&amp;gt;&amp;gt;; //(ex.)nodes[0].getReference().getUuid() &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;queryString = queryString+ " AND TEXT:\"alfresco\" AND \\@\\{http\\:\\/\\/&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org\\/model\\/content\\/1.0\\}creator:admin" rel="nofollow noopener noreferrer"&gt;www.alfresco.org\\/model\\/content\\/1.0\\}creator:admin&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, queryString );&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it will help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 06:31:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-lucene-through-web-service/m-p/94930#M65094</guid>
      <dc:creator>rajvael</dc:creator>
      <dc:date>2010-08-26T06:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem in Lucene through web-service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-in-lucene-through-web-service/m-p/94931#M65095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much, even three years from my question, hehehe!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll call my client to tell him I'm able to finish his project!! hahaha!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;excuse my joke, hehe!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose I resolved the problem… I dont remember how… posibly changing some funtionality…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ANYWAY, THANK YOU VERY MUCH!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 08:58:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-in-lucene-through-web-service/m-p/94931#M65095</guid>
      <dc:creator>putodemonio</dc:creator>
      <dc:date>2010-08-26T08:58:08Z</dc:date>
    </item>
  </channel>
</rss>

