<?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: luceneSearch TEXT problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257268#M210398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally I solved the problem with the current Query, i dont know if it's the best way but for me it works great!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var query='-PATH:\"/www/avm_webapps/ROOT/banner/*\" AND @cm\\:content:'+buscar+'';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var nodos= search.luceneSearch(storeid,query);&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;Thanks to all for your help!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Dec 2010 09:52:59 GMT</pubDate>
    <dc:creator>neo6200</dc:creator>
    <dc:date>2010-12-16T09:52:59Z</dc:date>
    <item>
      <title>luceneSearch TEXT problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257262#M210392</link>
      <description>Hi everyone:I have a little problem with a webscritp, when i make a lucene search TEXT:"prueba" in the node browser for a Web Project it works perfect. But when i do it in the WEBSCRIPT it doesn't return any result. I've tryed with a "PATH:\"/www/avm_webapps/ROOT/noticia/*\"" instead of TEXT and wor</description>
      <pubDate>Tue, 16 Nov 2010 16:45:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257262#M210392</guid>
      <dc:creator>neo6200</dc:creator>
      <dc:date>2010-11-16T16:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: luceneSearch TEXT problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257263#M210393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Buenas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;He deducido que hablas castellano por los comentarios si no es así dímelo e intento traducir el mensaje. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hace algún tiempo tuve el mismo problema que tu, en mi caso fue intentando buscar desde un JS… ¿Sabes cual era el problema? A la hora de construir la variable total (nombre y path) me daba problemas hasta que conseguí sacarlo. En mi caso era una categoria con el nombre "Normativa SAC", te pego lo que hice sobre el script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var catName = "Normativa SAC";&lt;BR /&gt;var srchQuery = "+TYPE:\"cm:category\" +PATH:\"/cm:generalclassifiable//*\"";&lt;BR /&gt;srchQuery += " +@cm\\:name:\""+catName+"//*\"";&lt;BR /&gt;&lt;BR /&gt;//Saca la categorya Normativa SAC y sus hijos&lt;BR /&gt;var docs = search.luceneSearch(srchQuery);&amp;nbsp; &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Si quieres copia y pega esa consulta montada (sabiendo que funciona) y la adaptas según tus necesidades &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otra cosa que te sería de ayuda: Para analizar donde estaba el problema, me hice un script pequeño con la consulta y usé la consola de javascript que trae alfresco. &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/es/viewtopic.php?f=6&amp;amp;t=2838&amp;amp;start=0" rel="nofollow noopener noreferrer"&gt;Ojea este enlace&lt;/A&gt;&lt;SPAN&gt; que explico como va el tema y si tienes duda pregunta sin problemas &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Un saludo ^^ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PD: Quizás este tipo de consulta en español deberías de hacerla en el foro en &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/es/" rel="nofollow noopener noreferrer"&gt;castellano&lt;/A&gt;&lt;SPAN&gt; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 17:24:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257263#M210393</guid>
      <dc:creator>cristinamr</dc:creator>
      <dc:date>2010-11-16T17:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: luceneSearch TEXT problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257264#M210394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Buenas.&lt;BR /&gt;&lt;BR /&gt;He deducido que hablas castellano por los comentarios si no es así dímelo e intento traducir el mensaje. &lt;BR /&gt;&lt;BR /&gt;Hace algún tiempo tuve el mismo problema que tu, en mi caso fue intentando buscar desde un JS… ¿Sabes cual era el problema? A la hora de construir la variable total (nombre y path) me daba problemas hasta que conseguí sacarlo. En mi caso era una categoria con el nombre "Normativa SAC", te pego lo que hice sobre el script:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var catName = "Normativa SAC";&lt;BR /&gt;var srchQuery = "+TYPE:\"cm:category\" +PATH:\"/cm:generalclassifiable//*\"";&lt;BR /&gt;srchQuery += " +@cm\\:name:\""+catName+"//*\"";&lt;BR /&gt;&lt;BR /&gt;//Saca la categorya Normativa SAC y sus hijos&lt;BR /&gt;var docs = search.luceneSearch(srchQuery);&amp;nbsp; &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Si quieres copia y pega esa consulta montada (sabiendo que funciona) y la adaptas según tus necesidades &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; &lt;BR /&gt;&lt;BR /&gt;Otra cosa que te sería de ayuda: Para analizar donde estaba el problema, me hice un script pequeño con la consulta y usé la consola de javascript que trae alfresco. &lt;A href="http://forums.alfresco.com/es/viewtopic.php?f=6&amp;amp;t=2838&amp;amp;start=0" rel="nofollow noopener noreferrer"&gt;Ojea este enlace&lt;/A&gt; que explico como va el tema y si tienes duda pregunta sin problemas &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;BR /&gt;&lt;BR /&gt;Un saludo ^^ &lt;BR /&gt;&lt;BR /&gt;PD: Quizás este tipo de consulta en español deberías de hacerla en el foro en &lt;A href="http://forums.alfresco.com/es/" rel="nofollow noopener noreferrer"&gt;castellano&lt;/A&gt; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Te agradezco mucho tu interes pero mi problema esta con el campo TEXT: de la query realmente el PATH me funciona perfectamente y lo que me mosquea es que el node browser lanza mis querys ok pero el webscript no recupera nada,&amp;nbsp; incluso quitando el path y que busque en todo alfesco no me encuentra nada.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ya que la busqueda actualmente no ingluye paths ni nada y ademas es una busqueda dentro de un StoreId en AVM, no se si hay que hacer algun tipo de configuracion o algo para que esto funcione.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Intentare postear esto en el foro en español lo hice aqui porque el español no tiene pinta de tener muchos colaboradores activos.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gracias a todo el mundo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;——————————————————————————————————————————————————-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really thank you very much about our interest but my problem resides in the TEXT: argument of the Lucene Search, it woks great in the node browser but my WebScript doesn't find something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just would like to know if there is something to do for using the TEXT argument in a LuceneSearch because im currently only looking for the TEXT in the luceneQuery.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This webscript is searching for content in a webproject storeid FYI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank's to all who can help me bringing some light to this isue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 11:18:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257264#M210394</guid>
      <dc:creator>neo6200</dc:creator>
      <dc:date>2010-11-17T11:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: luceneSearch TEXT problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257265#M210395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;…lo que me mosquea es que el node browser lanza mis querys ok pero el webscript no recupera nada,&amp;nbsp; incluso quitando el path y que busque en todo alfesco no me encuentra nada.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Lo raro es que si por el node browser devuelve, exitstir existe, el problema está en cómo montes la consulta y la interpreta alfresco. Recuerdo que con la búsqueda que te puse arriba tuve muchiiiiiisimos problemas porque no me devolvía resultados &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Si te sirve lo que yo hice fue un script con una función de prueba y depurandolo con la consola que tiene alfresco para scripts, fui poco a poco componiendo la query final. Es decir: Primero busqué por el path, una vez me devolvió, le añadí el aspecto y el tipo, y finalmente, una vez me devolvió resultados, añadí el nombre de la categoría que quería buscar. Es decir que el ejemplo que te he puesto sé que no te sirve pero te lo puse de referencia para que vieras la sintaxis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;En cuando a lo de la búsqueda AVM desconozco si hay que poner algo adicional, pero desde luego si te funciona en el node browser, un 95% de los casos el problema se encuentra en al componer la query que no la interpreta bien (máxime siendo la base la misma que hayas lanzado en el node browser, previamente).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Un saludo.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 15:07:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257265#M210395</guid>
      <dc:creator>cristinamr</dc:creator>
      <dc:date>2010-11-17T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: luceneSearch TEXT problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257266#M210396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi neo6200,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use this query in a webscript to search a word (searchTerm) in a particular Share site (MySiteName) :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;+PATH:"/app:company_home/st:sites/cm:MySiteName//*"+ALL:"searchTerm"&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;Hope this help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Laurent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 10:51:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257266#M210396</guid>
      <dc:creator>laurent1050</dc:creator>
      <dc:date>2010-11-18T10:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: luceneSearch TEXT problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257267#M210397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same problem that neo6200&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if i search +TEXT:something in the Node Browser i got the results, but, the same search using webscript, search.luceneSearch("+TEXT:something"); does not return any node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the same with +ALL:something, Node Browser returns results, but with the webscript nothing…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;anyone knows what may be happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Alfresco 3.3G&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 09:07:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257267#M210397</guid>
      <dc:creator>ruben_arjonilla</dc:creator>
      <dc:date>2010-12-16T09:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: luceneSearch TEXT problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257268#M210398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally I solved the problem with the current Query, i dont know if it's the best way but for me it works great!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var query='-PATH:\"/www/avm_webapps/ROOT/banner/*\" AND @cm\\:content:'+buscar+'';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var nodos= search.luceneSearch(storeid,query);&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;Thanks to all for your help!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 09:52:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucenesearch-text-problem/m-p/257268#M210398</guid>
      <dc:creator>neo6200</dc:creator>
      <dc:date>2010-12-16T09:52:59Z</dc:date>
    </item>
  </channel>
</rss>

