<?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 Search document 📜 by node ☋ in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/search-document-by-node/m-p/109311#M30654</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We need to create a query to find documents by node.&lt;/P&gt;&lt;P&gt;We have documents with the following properties:&lt;/P&gt;&lt;PRE&gt;&amp;lt;queryResponse&amp;gt;
	&amp;lt;objects&amp;gt;
		&amp;lt;objects&amp;gt;
			&amp;lt;properties&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isMajorVersion" localName="isMajorVersion" queryName="cmis:isMajorVersion"&amp;gt;
					&amp;lt;s02:value&amp;gt;false
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="scs:doc_valido" localName="doc_valido" displayName="Válido" queryName="scs:doc_valido"&amp;gt;
					&amp;lt;s02:value&amp;gt;true
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isPrivateWorkingCopy" localName="isPrivateWorkingCopy" queryName="cmis:isPrivateWorkingCopy"/&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isLatestMajorVersion" localName="isLatestMajorVersion" queryName="cmis:isLatestMajorVersion"&amp;gt;
					&amp;lt;s02:value&amp;gt;false
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isImmutable" localName="isImmutable" queryName="cmis:isImmutable"&amp;gt;
					&amp;lt;s02:value&amp;gt;false
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isLatestVersion" localName="isLatestVersion" queryName="cmis:isLatestVersion"&amp;gt;
					&amp;lt;s02:value&amp;gt;true
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isVersionSeriesCheckedOut" localName="isVersionSeriesCheckedOut" queryName="cmis:isVersionSeriesCheckedOut"&amp;gt;
					&amp;lt;s02:value&amp;gt;false
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="inside:doc_origen" localName="doc_origen" displayName="Origen" queryName="inside:doc_origen"&amp;gt;
					&amp;lt;s02:value&amp;gt;true
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="scs:es_revocado" localName="es_revocado" displayName="Consentimiento Revocado" queryName="scs:es_revocado"/&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="alfcmis:nodeRef" localName="nodeRef" queryName="alfcmis:nodeRef"&amp;gt;
					&amp;lt;s02:value&amp;gt;workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:objectTypeId" localName="objectTypeId" queryName="cmis:objectTypeId"&amp;gt;
					&amp;lt;s02:value&amp;gt;D:inside:documento
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:baseTypeId" localName="baseTypeId" queryName="cmis:baseTypeId"&amp;gt;
					&amp;lt;s02:value&amp;gt;cmis:document
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:versionSeriesCheckedOutId" localName="versionSeriesCheckedOutId" queryName="cmis:versionSeriesCheckedOutId"/&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:objectId" localName="objectId" queryName="cmis:objectId"&amp;gt;
					&amp;lt;s02:value&amp;gt;workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b;1.1
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:contentStreamId" localName="contentStreamId" queryName="cmis:contentStreamId"&amp;gt;
					&amp;lt;s02:value&amp;gt;store://2019/11/28/15/50/53811130-6cb7-419b-afce-060249a17d0a.bin
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:versionSeriesId" localName="versionSeriesId" queryName="cmis:versionSeriesId"&amp;gt;
					&amp;lt;s02:value&amp;gt;workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyInteger propertyDefinitionId="cmis:contentStreamLength" localName="contentStreamLength" queryName="cmis:contentStreamLength"&amp;gt;
					&amp;lt;s02:value&amp;gt;15533
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyInteger&amp;gt;
				&amp;lt;propertyDateTime propertyDefinitionId="cmis:creationDate" localName="creationDate" queryName="cmis:creationDate"&amp;gt;
					&amp;lt;s02:value&amp;gt;2017-03-30T13:22:30.251Z
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyDateTime&amp;gt;
				&amp;lt;propertyDateTime propertyDefinitionId="inside:doc_fechaCaptura" localName="doc_fechaCaptura" displayName="Fecha de Captura" queryName="inside:doc_fechaCaptura"&amp;gt;
					&amp;lt;s02:value&amp;gt;2017-03-30T13:22:26.565Z
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyDateTime&amp;gt;
				&amp;lt;propertyDateTime propertyDefinitionId="cmis:lastModificationDate" localName="lastModificationDate" queryName="cmis:lastModificationDate"&amp;gt;
					&amp;lt;s02:value&amp;gt;2017-03-30T13:22:31.206Z
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyDateTime&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_sexo" localName="doc_sexo" displayName="Sexo Paciente" queryName="scs:doc_sexo"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:description" localName="description" queryName="cmis:description"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:createdBy" localName="createdBy" queryName="cmis:createdBy"&amp;gt;
					&amp;lt;s02:value&amp;gt;
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_valorCSV" localName="doc_valorCSV" displayName="Valor CSV" queryName="inside:doc_valorCSV"&amp;gt;
					&amp;lt;s02:value&amp;gt;0gN3S+P8f3GeUqDVLbp7Ch6LuxDXRenGl
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_apellido1" localName="doc_apellido1" displayName="Primer Apellido Paciente" queryName="scs:doc_apellido1"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_apellido2" localName="doc_apellido2" displayName="Segundo Apellido Paciente" queryName="scs:doc_apellido2"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:contentStreamFileName" localName="contentStreamFileName" queryName="cmis:contentStreamFileName"&amp;gt;
					&amp;lt;s02:value&amp;gt;ES_E00010207_2017_C1A890A28C4D38A2DEBB9B40FE9322.pdf
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_nass" localName="doc_nass" displayName="NASS" queryName="scs:doc_nass"&amp;gt;
					&amp;lt;s02:value&amp;gt;051999999971
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_organo" localName="doc_organo" displayName="Organos" queryName="inside:doc_organo"&amp;gt;
					&amp;lt;s02:value&amp;gt;E00010207
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_dni" localName="doc_dni" displayName="DNI Paciente" queryName="scs:doc_dni"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:id_doc_revocado" localName="id_doc_revocado" displayName="Identificado del Documento de Revocación" queryName="scs:id_doc_revocado"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_tamano" localName="doc_tamano" displayName="Tamano de la Digitalizacion" queryName="scs:doc_tamano"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_nombre" localName="doc_nombre" displayName="Nombre Paciente" queryName="scs:doc_nombre"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:contentStreamMimeType" localName="contentStreamMimeType" queryName="cmis:contentStreamMimeType"&amp;gt;
					&amp;lt;s02:value&amp;gt;application/pdf
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_identificadorDocOrigen" localName="doc_identificadorDocOrigen" displayName="Identificador Documento Origen" queryName="inside:doc_identificadorDocOrigen"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_fechaNacimiento" localName="doc_fechaNacimiento" displayName="Fecha de Nacimiento Paciente" queryName="scs:doc_fechaNacimiento"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_identificador" localName="doc_identificador" displayName="Identificador" queryName="inside:doc_identificador"&amp;gt;
					&amp;lt;s02:value&amp;gt;ES_E00010207_2017_C1A890A28C4D38A2DEBB9B40FE9322
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_versionNTI" localName="doc_versionNTI" displayName="Version NTI" queryName="inside:doc_versionNTI"&amp;gt;
					&amp;lt;s02:value&amp;gt;
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_tipoFirma" localName="doc_tipoFirma" displayName="Tipo de Firma" queryName="inside:doc_tipoFirma"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_sns" localName="doc_sns" displayName="SNS" queryName="scs:doc_sns"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_firma" localName="doc_firma" displayName="Valor Firma" queryName="scs:doc_firma"&amp;gt;
					&amp;lt;s02:value&amp;gt;
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_numHistoriaClinica" localName="doc_numHistoriaClinica" displayName="Numero de Historia Clinica" queryName="scs:doc_numHistoriaClinica"&amp;gt;
					&amp;lt;s02:value&amp;gt;11645069
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:versionLabel" localName="versionLabel" queryName="cmis:versionLabel"&amp;gt;
					&amp;lt;s02:value&amp;gt;1.1
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:checkinComment" localName="checkinComment" queryName="cmis:checkinComment"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_estadoElaboracion" localName="doc_estadoElaboracion" displayName="Estado de Elaboración" queryName="inside:doc_estadoElaboracion"&amp;gt;
					&amp;lt;s02:value&amp;gt;EE99
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:name" localName="name" queryName="cmis:name"&amp;gt;
					&amp;lt;s02:value&amp;gt;ES_E00010207_2017_C1A890A28C4D38A2DEBB9B40FE9322.pdf
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_numExpediente" localName="doc_numExpediente" displayName="Numero de Expediente" queryName="scs:doc_numExpediente"&amp;gt;
					&amp;lt;s02:value&amp;gt;11645069
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_tipoDocumental" localName="doc_tipoDocumental" displayName="Tipo Documental" queryName="inside:doc_tipoDocumental"&amp;gt;
					&amp;lt;s02:value&amp;gt;TD02
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_idioma" localName="doc_idioma" displayName="Idioma de la Digitalizacion" queryName="scs:doc_idioma"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:lastModifiedBy" localName="lastModifiedBy" queryName="cmis:lastModifiedBy"&amp;gt;
					&amp;lt;s02:value&amp;gt;
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_resolucion" localName="doc_resolucion" displayName="Resolucion de la Digitalizacion" queryName="scs:doc_resolucion"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_defGeneracionCSV" localName="doc_defGeneracionCSV" displayName="Definición Generación CSV" queryName="inside:doc_defGeneracionCSV"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:changeToken" localName="changeToken" queryName="cmis:changeToken"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_nombreFormato" localName="doc_nombreFormato" displayName="Nombre de Formato" queryName="inside:doc_nombreFormato"&amp;gt;
					&amp;lt;s02:value&amp;gt;PDF
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:versionSeriesCheckedOutBy" localName="versionSeriesCheckedOutBy" queryName="cmis:versionSeriesCheckedOutBy"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_certificado" localName="doc_certificado" displayName="Valor Certificado" queryName="scs:doc_certificado"&amp;gt;
					&amp;lt;s02:value&amp;gt;
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:valorCSV_revocado" localName="valorCSV_revocado" displayName="Valor CSV del Documento de Revocación" queryName="scs:valorCSV_revocado"/&amp;gt;
			&amp;lt;/properties&amp;gt;
		&amp;lt;/objects&amp;gt;
	&amp;lt;/objects&amp;gt;
&amp;lt;/queryResponse&amp;gt;&lt;/PRE&gt;&lt;P&gt;We have tried to find it using the nodeRef query, as follows:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM inside:documento WHERE alfcmis:nodeRef=1234&lt;/PRE&gt;&lt;P&gt;And the systems responds to us:&lt;/P&gt;&lt;P&gt;Column refers to unqueryable property alfcmis:nodeRef&lt;/P&gt;&lt;P&gt;In addition we have also tried to use a real nodeRef value:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM inside:documento WHERE alfcmis:nodeRef=workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b&lt;/PRE&gt;&lt;P&gt;However the system replies to us:&lt;/P&gt;&lt;P&gt;line 1:53 mismatched input 'workspace:' expecting COLON ([@12,53:62='workspace:',&amp;lt;37&amp;gt;,1:53]) in where&lt;BR /&gt;[query, whereClause, searchOrCondition, searchAndCondition, searchNotCondition, searchTest, predicate, comparisonPredicate, literalOrParameterName, parameterName, recoverFromMismatchedToken]&lt;/P&gt;&lt;P&gt;To solve the previous issue we have found that we maybe should use colon instead of equal sign:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/4.2/concepts/rm-searchsyntax-fields.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/4.2/concepts/rm-searchsyntax-fields.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So then, we wrote:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM inside:documento WHERE alfcmis:nodeRef:workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b&lt;/PRE&gt;&lt;P&gt;And the output is:&lt;/P&gt;&lt;P&gt;line 1:63 no viable alternative at character '/'&lt;/P&gt;&lt;P&gt;Due to the last exception we found that strings would need to be enclosed in single quotes '' and special characters be escaped with backslashes \&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/34940423/error-in-calling-cmis-query-if-string-contains-single-or-double-quote" target="_blank" rel="noopener nofollow noreferrer"&gt;https://stackoverflow.com/questions/34940423/error-in-calling-cmis-query-if-string-contains-single-or-double-quote&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then we tried both approaches, first with single quotes:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM inside:documento WHERE alfcmis:nodeRef:'workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b
'&lt;/PRE&gt;&lt;P&gt;And the output would be:&lt;/P&gt;&lt;P&gt;ine 1:53 no viable alternative at input ''workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b\n''&lt;BR /&gt;(decision=28 state 66) decision=&amp;lt;&amp;lt;569:1: predicate : ( comparisonPredicate | inPredicate | likePredicate | nullPredicate | quantifiedComparisonPredicate | quantifiedInPredicate | textSearchPredicate | folderPredicate );&amp;gt;&amp;gt; in where&lt;BR /&gt;[query, whereClause, searchOrCondition, searchAndCondition, searchNotCondition, searchTest, predicate]&lt;BR /&gt;faultactor=&lt;/P&gt;&lt;P&gt;Besides we tried the second approach, with backslashes:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM inside:documento WHERE alfcmis:nodeRef:'workspace:\/\/SpacesStore\/d6988090-0475-44e0-b346-75041da3cd7b
'&lt;/PRE&gt;&lt;P&gt;And the systems replies with:&lt;/P&gt;&lt;P&gt;1:53 no viable alternative at input ''workspace:\/\/SpacesStore\/d6988090-0475-44e0-b346-75041da3cd7b\n''&lt;BR /&gt;(decision=28 state 66) decision=&amp;lt;&amp;lt;569:1: predicate : ( comparisonPredicate | inPredicate | likePredicate | nullPredicate | quantifiedComparisonPredicate | quantifiedInPredicate | textSearchPredicate | folderPredicate );&amp;gt;&amp;gt; in where&lt;BR /&gt;[query, whereClause, searchOrCondition, searchAndCondition, searchNotCondition, searchTest, predicate]&lt;/P&gt;&lt;P&gt;As well we have read:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-finding-content-by-search-query.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-finding-content-by-search-query.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-finding-content-by-term.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-finding-content-by-term.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-searching-for-nodes.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-searching-for-nodes.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/4.2/references/API-JS-findNode.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/4.2/references/API-JS-findNode.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/24190975/alfresco-unable-to-cmis-query-by-path" target="_blank" rel="noopener nofollow noreferrer"&gt;https://stackoverflow.com/questions/24190975/alfresco-unable-to-cmis-query-by-path&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/search-enterprise/concepts/searchsyntax-escaping.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/search-enterprise/concepts/searchsyntax-escaping.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2020 11:10:50 GMT</pubDate>
    <dc:creator>yone</dc:creator>
    <dc:date>2020-04-03T11:10:50Z</dc:date>
    <item>
      <title>Search document 📜 by node ☋</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-document-by-node/m-p/109311#M30654</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We need to create a query to find documents by node.&lt;/P&gt;&lt;P&gt;We have documents with the following properties:&lt;/P&gt;&lt;PRE&gt;&amp;lt;queryResponse&amp;gt;
	&amp;lt;objects&amp;gt;
		&amp;lt;objects&amp;gt;
			&amp;lt;properties&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isMajorVersion" localName="isMajorVersion" queryName="cmis:isMajorVersion"&amp;gt;
					&amp;lt;s02:value&amp;gt;false
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="scs:doc_valido" localName="doc_valido" displayName="Válido" queryName="scs:doc_valido"&amp;gt;
					&amp;lt;s02:value&amp;gt;true
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isPrivateWorkingCopy" localName="isPrivateWorkingCopy" queryName="cmis:isPrivateWorkingCopy"/&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isLatestMajorVersion" localName="isLatestMajorVersion" queryName="cmis:isLatestMajorVersion"&amp;gt;
					&amp;lt;s02:value&amp;gt;false
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isImmutable" localName="isImmutable" queryName="cmis:isImmutable"&amp;gt;
					&amp;lt;s02:value&amp;gt;false
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isLatestVersion" localName="isLatestVersion" queryName="cmis:isLatestVersion"&amp;gt;
					&amp;lt;s02:value&amp;gt;true
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="cmis:isVersionSeriesCheckedOut" localName="isVersionSeriesCheckedOut" queryName="cmis:isVersionSeriesCheckedOut"&amp;gt;
					&amp;lt;s02:value&amp;gt;false
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="inside:doc_origen" localName="doc_origen" displayName="Origen" queryName="inside:doc_origen"&amp;gt;
					&amp;lt;s02:value&amp;gt;true
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyBoolean&amp;gt;
				&amp;lt;propertyBoolean propertyDefinitionId="scs:es_revocado" localName="es_revocado" displayName="Consentimiento Revocado" queryName="scs:es_revocado"/&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="alfcmis:nodeRef" localName="nodeRef" queryName="alfcmis:nodeRef"&amp;gt;
					&amp;lt;s02:value&amp;gt;workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:objectTypeId" localName="objectTypeId" queryName="cmis:objectTypeId"&amp;gt;
					&amp;lt;s02:value&amp;gt;D:inside:documento
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:baseTypeId" localName="baseTypeId" queryName="cmis:baseTypeId"&amp;gt;
					&amp;lt;s02:value&amp;gt;cmis:document
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:versionSeriesCheckedOutId" localName="versionSeriesCheckedOutId" queryName="cmis:versionSeriesCheckedOutId"/&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:objectId" localName="objectId" queryName="cmis:objectId"&amp;gt;
					&amp;lt;s02:value&amp;gt;workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b;1.1
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:contentStreamId" localName="contentStreamId" queryName="cmis:contentStreamId"&amp;gt;
					&amp;lt;s02:value&amp;gt;store://2019/11/28/15/50/53811130-6cb7-419b-afce-060249a17d0a.bin
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyId propertyDefinitionId="cmis:versionSeriesId" localName="versionSeriesId" queryName="cmis:versionSeriesId"&amp;gt;
					&amp;lt;s02:value&amp;gt;workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyId&amp;gt;
				&amp;lt;propertyInteger propertyDefinitionId="cmis:contentStreamLength" localName="contentStreamLength" queryName="cmis:contentStreamLength"&amp;gt;
					&amp;lt;s02:value&amp;gt;15533
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyInteger&amp;gt;
				&amp;lt;propertyDateTime propertyDefinitionId="cmis:creationDate" localName="creationDate" queryName="cmis:creationDate"&amp;gt;
					&amp;lt;s02:value&amp;gt;2017-03-30T13:22:30.251Z
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyDateTime&amp;gt;
				&amp;lt;propertyDateTime propertyDefinitionId="inside:doc_fechaCaptura" localName="doc_fechaCaptura" displayName="Fecha de Captura" queryName="inside:doc_fechaCaptura"&amp;gt;
					&amp;lt;s02:value&amp;gt;2017-03-30T13:22:26.565Z
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyDateTime&amp;gt;
				&amp;lt;propertyDateTime propertyDefinitionId="cmis:lastModificationDate" localName="lastModificationDate" queryName="cmis:lastModificationDate"&amp;gt;
					&amp;lt;s02:value&amp;gt;2017-03-30T13:22:31.206Z
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyDateTime&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_sexo" localName="doc_sexo" displayName="Sexo Paciente" queryName="scs:doc_sexo"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:description" localName="description" queryName="cmis:description"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:createdBy" localName="createdBy" queryName="cmis:createdBy"&amp;gt;
					&amp;lt;s02:value&amp;gt;
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_valorCSV" localName="doc_valorCSV" displayName="Valor CSV" queryName="inside:doc_valorCSV"&amp;gt;
					&amp;lt;s02:value&amp;gt;0gN3S+P8f3GeUqDVLbp7Ch6LuxDXRenGl
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_apellido1" localName="doc_apellido1" displayName="Primer Apellido Paciente" queryName="scs:doc_apellido1"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_apellido2" localName="doc_apellido2" displayName="Segundo Apellido Paciente" queryName="scs:doc_apellido2"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:contentStreamFileName" localName="contentStreamFileName" queryName="cmis:contentStreamFileName"&amp;gt;
					&amp;lt;s02:value&amp;gt;ES_E00010207_2017_C1A890A28C4D38A2DEBB9B40FE9322.pdf
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_nass" localName="doc_nass" displayName="NASS" queryName="scs:doc_nass"&amp;gt;
					&amp;lt;s02:value&amp;gt;051999999971
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_organo" localName="doc_organo" displayName="Organos" queryName="inside:doc_organo"&amp;gt;
					&amp;lt;s02:value&amp;gt;E00010207
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_dni" localName="doc_dni" displayName="DNI Paciente" queryName="scs:doc_dni"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:id_doc_revocado" localName="id_doc_revocado" displayName="Identificado del Documento de Revocación" queryName="scs:id_doc_revocado"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_tamano" localName="doc_tamano" displayName="Tamano de la Digitalizacion" queryName="scs:doc_tamano"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_nombre" localName="doc_nombre" displayName="Nombre Paciente" queryName="scs:doc_nombre"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:contentStreamMimeType" localName="contentStreamMimeType" queryName="cmis:contentStreamMimeType"&amp;gt;
					&amp;lt;s02:value&amp;gt;application/pdf
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_identificadorDocOrigen" localName="doc_identificadorDocOrigen" displayName="Identificador Documento Origen" queryName="inside:doc_identificadorDocOrigen"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_fechaNacimiento" localName="doc_fechaNacimiento" displayName="Fecha de Nacimiento Paciente" queryName="scs:doc_fechaNacimiento"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_identificador" localName="doc_identificador" displayName="Identificador" queryName="inside:doc_identificador"&amp;gt;
					&amp;lt;s02:value&amp;gt;ES_E00010207_2017_C1A890A28C4D38A2DEBB9B40FE9322
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_versionNTI" localName="doc_versionNTI" displayName="Version NTI" queryName="inside:doc_versionNTI"&amp;gt;
					&amp;lt;s02:value&amp;gt;
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_tipoFirma" localName="doc_tipoFirma" displayName="Tipo de Firma" queryName="inside:doc_tipoFirma"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_sns" localName="doc_sns" displayName="SNS" queryName="scs:doc_sns"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_firma" localName="doc_firma" displayName="Valor Firma" queryName="scs:doc_firma"&amp;gt;
					&amp;lt;s02:value&amp;gt;
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_numHistoriaClinica" localName="doc_numHistoriaClinica" displayName="Numero de Historia Clinica" queryName="scs:doc_numHistoriaClinica"&amp;gt;
					&amp;lt;s02:value&amp;gt;11645069
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:versionLabel" localName="versionLabel" queryName="cmis:versionLabel"&amp;gt;
					&amp;lt;s02:value&amp;gt;1.1
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:checkinComment" localName="checkinComment" queryName="cmis:checkinComment"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_estadoElaboracion" localName="doc_estadoElaboracion" displayName="Estado de Elaboración" queryName="inside:doc_estadoElaboracion"&amp;gt;
					&amp;lt;s02:value&amp;gt;EE99
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:name" localName="name" queryName="cmis:name"&amp;gt;
					&amp;lt;s02:value&amp;gt;ES_E00010207_2017_C1A890A28C4D38A2DEBB9B40FE9322.pdf
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_numExpediente" localName="doc_numExpediente" displayName="Numero de Expediente" queryName="scs:doc_numExpediente"&amp;gt;
					&amp;lt;s02:value&amp;gt;11645069
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_tipoDocumental" localName="doc_tipoDocumental" displayName="Tipo Documental" queryName="inside:doc_tipoDocumental"&amp;gt;
					&amp;lt;s02:value&amp;gt;TD02
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_idioma" localName="doc_idioma" displayName="Idioma de la Digitalizacion" queryName="scs:doc_idioma"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:lastModifiedBy" localName="lastModifiedBy" queryName="cmis:lastModifiedBy"&amp;gt;
					&amp;lt;s02:value&amp;gt;
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_resolucion" localName="doc_resolucion" displayName="Resolucion de la Digitalizacion" queryName="scs:doc_resolucion"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_defGeneracionCSV" localName="doc_defGeneracionCSV" displayName="Definición Generación CSV" queryName="inside:doc_defGeneracionCSV"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:changeToken" localName="changeToken" queryName="cmis:changeToken"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="inside:doc_nombreFormato" localName="doc_nombreFormato" displayName="Nombre de Formato" queryName="inside:doc_nombreFormato"&amp;gt;
					&amp;lt;s02:value&amp;gt;PDF
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="cmis:versionSeriesCheckedOutBy" localName="versionSeriesCheckedOutBy" queryName="cmis:versionSeriesCheckedOutBy"/&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:doc_certificado" localName="doc_certificado" displayName="Valor Certificado" queryName="scs:doc_certificado"&amp;gt;
					&amp;lt;s02:value&amp;gt;
					&amp;lt;/s02:value&amp;gt;
				&amp;lt;/propertyString&amp;gt;
				&amp;lt;propertyString propertyDefinitionId="scs:valorCSV_revocado" localName="valorCSV_revocado" displayName="Valor CSV del Documento de Revocación" queryName="scs:valorCSV_revocado"/&amp;gt;
			&amp;lt;/properties&amp;gt;
		&amp;lt;/objects&amp;gt;
	&amp;lt;/objects&amp;gt;
&amp;lt;/queryResponse&amp;gt;&lt;/PRE&gt;&lt;P&gt;We have tried to find it using the nodeRef query, as follows:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM inside:documento WHERE alfcmis:nodeRef=1234&lt;/PRE&gt;&lt;P&gt;And the systems responds to us:&lt;/P&gt;&lt;P&gt;Column refers to unqueryable property alfcmis:nodeRef&lt;/P&gt;&lt;P&gt;In addition we have also tried to use a real nodeRef value:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM inside:documento WHERE alfcmis:nodeRef=workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b&lt;/PRE&gt;&lt;P&gt;However the system replies to us:&lt;/P&gt;&lt;P&gt;line 1:53 mismatched input 'workspace:' expecting COLON ([@12,53:62='workspace:',&amp;lt;37&amp;gt;,1:53]) in where&lt;BR /&gt;[query, whereClause, searchOrCondition, searchAndCondition, searchNotCondition, searchTest, predicate, comparisonPredicate, literalOrParameterName, parameterName, recoverFromMismatchedToken]&lt;/P&gt;&lt;P&gt;To solve the previous issue we have found that we maybe should use colon instead of equal sign:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/4.2/concepts/rm-searchsyntax-fields.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/4.2/concepts/rm-searchsyntax-fields.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So then, we wrote:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM inside:documento WHERE alfcmis:nodeRef:workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b&lt;/PRE&gt;&lt;P&gt;And the output is:&lt;/P&gt;&lt;P&gt;line 1:63 no viable alternative at character '/'&lt;/P&gt;&lt;P&gt;Due to the last exception we found that strings would need to be enclosed in single quotes '' and special characters be escaped with backslashes \&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/34940423/error-in-calling-cmis-query-if-string-contains-single-or-double-quote" target="_blank" rel="noopener nofollow noreferrer"&gt;https://stackoverflow.com/questions/34940423/error-in-calling-cmis-query-if-string-contains-single-or-double-quote&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then we tried both approaches, first with single quotes:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM inside:documento WHERE alfcmis:nodeRef:'workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b
'&lt;/PRE&gt;&lt;P&gt;And the output would be:&lt;/P&gt;&lt;P&gt;ine 1:53 no viable alternative at input ''workspace://SpacesStore/d6988090-0475-44e0-b346-75041da3cd7b\n''&lt;BR /&gt;(decision=28 state 66) decision=&amp;lt;&amp;lt;569:1: predicate : ( comparisonPredicate | inPredicate | likePredicate | nullPredicate | quantifiedComparisonPredicate | quantifiedInPredicate | textSearchPredicate | folderPredicate );&amp;gt;&amp;gt; in where&lt;BR /&gt;[query, whereClause, searchOrCondition, searchAndCondition, searchNotCondition, searchTest, predicate]&lt;BR /&gt;faultactor=&lt;/P&gt;&lt;P&gt;Besides we tried the second approach, with backslashes:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM inside:documento WHERE alfcmis:nodeRef:'workspace:\/\/SpacesStore\/d6988090-0475-44e0-b346-75041da3cd7b
'&lt;/PRE&gt;&lt;P&gt;And the systems replies with:&lt;/P&gt;&lt;P&gt;1:53 no viable alternative at input ''workspace:\/\/SpacesStore\/d6988090-0475-44e0-b346-75041da3cd7b\n''&lt;BR /&gt;(decision=28 state 66) decision=&amp;lt;&amp;lt;569:1: predicate : ( comparisonPredicate | inPredicate | likePredicate | nullPredicate | quantifiedComparisonPredicate | quantifiedInPredicate | textSearchPredicate | folderPredicate );&amp;gt;&amp;gt; in where&lt;BR /&gt;[query, whereClause, searchOrCondition, searchAndCondition, searchNotCondition, searchTest, predicate]&lt;/P&gt;&lt;P&gt;As well we have read:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-finding-content-by-search-query.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-finding-content-by-search-query.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-finding-content-by-term.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-finding-content-by-term.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-searching-for-nodes.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/concepts/dev-api-by-language-alf-rest-searching-for-nodes.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/4.2/references/API-JS-findNode.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/4.2/references/API-JS-findNode.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/24190975/alfresco-unable-to-cmis-query-by-path" target="_blank" rel="noopener nofollow noreferrer"&gt;https://stackoverflow.com/questions/24190975/alfresco-unable-to-cmis-query-by-path&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/search-enterprise/concepts/searchsyntax-escaping.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/search-enterprise/concepts/searchsyntax-escaping.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 11:10:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-document-by-node/m-p/109311#M30654</guid>
      <dc:creator>yone</dc:creator>
      <dc:date>2020-04-03T11:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Search document 📜 by node ☋</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-document-by-node/m-p/109312#M30655</link>
      <description>&lt;P&gt;&lt;STRONG&gt;alfcmis:nodeRef&lt;/STRONG&gt; is not &lt;EM&gt;queriable&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Try something like:&lt;/P&gt;

&lt;PRE&gt;SELECT * FROM cmis:document where cmis:objectId = 'f7be870e-a591-4469-9a4e-5120a368a5f4'&lt;/PRE&gt;
&lt;P&gt;As every node in the CMIS Space is belonging to "workspace://SpacesStore" and you don't need to specify that.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 13:59:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-document-by-node/m-p/109312#M30655</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-04-03T13:59:17Z</dc:date>
    </item>
  </channel>
</rss>

