<html><div style='background-color:'><P>while searching for my xml content type (Noticia) OpenCms generates this query:<BR><BR>+root:"<A href="mailto:root@o.c">root@o.c</A> <A href="mailto:sites@o.c">sites@o.c</A> <A href="mailto:default@o.c">default@o.c</A>" +type:noticia<BR><BR>(i've noticed the lowercase n in noticia but trying 'article' show<BR>no results anyway</P>
<P>+root:"<A href="mailto:root@o.c">root@o.c</A> <A href="mailto:sites@o.c">sites@o.c</A> <A href="mailto:default@o.c">default@o.c</A>" +type:article<BR><BR><BR>that's my code:<BR> search.setIndex("Offline project (VFS)");<BR> search.setField(new String[] { I_CmsDocumentFactory.DOC_TYPE });<BR> search.setQuery("Noticia");<BR> List results = search.getSearchResult();<BR><BR><BR>Noticia is defined in opencms-modules.xml as:<BR><type class="org.opencms.file.types.CmsResourceTypeXmlContent" ...><BR><BR><BR>this query<BR> +root:"<A href="mailto:root@o.c">root@o.c</A> <A href="mailto:sites@o.c">sites@o.c</A> <A href="mailto:default@o.c">default@o.c</A>" +type:xmlcontent<BR>shows 0 results too<BR><BR><BR>any idea?<BR><BR>thanks<BR></P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
From: <I>"azul z" <zazul_@hotmail.com></I><BR>Reply-To: <I>The OpenCms mailing list <opencms-dev@opencms.org></I><BR>To: <I>opencms-dev@opencms.org</I><BR>Subject: <I>Re: [opencms-dev] CmsSearch: all results</I><BR>Date: <I>Tue, 14 Mar 2006 15:42:51 +0000</I><BR><BR>
<DIV>
<DIV class=RTE>
<P>thanks, but no way</P>
<P>i've tried both forms (trying field title, rebuilding indexes, etc) without results<BR><BR>have u Ernesto or someone sample code on this topic?<BR></P>
<P>thanks<BR>Cristina<BR><BR></P></DIV>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
<DIV></DIV>From: <I>Ernesto De Santis <opencms@colaborativa.net></I><BR>Reply-To: <I>The OpenCms mailing list <opencms-dev@opencms.org></I><BR>To: <I>The OpenCms mailing list <opencms-dev@opencms.org></I><BR>Subject: <I>Re: [opencms-dev] CmsSearch: all results</I><BR>Date: <I>Tue, 14 Mar 2006 12:05:03 -0300</I><BR>>mmm, try in this way:<BR>><BR>>search.setField(new String[] { I_CmsDocumentFactory.DOC_TYPE });<BR>>search.setQuery("Noticia");<BR>><BR>>Sorry, In the first line you say in which fields you search.<BR>>field:value is the lucene syntax.<BR>><BR>>Regards<BR>>Ernesto.<BR>><BR>>azul z escribió:<BR>>>thanks Ernesto for your help<BR>>><BR>>>let's see if i've understood u<BR>>><BR>>>i've tried to retrieve all contents using type
field:<BR>>><BR>>>search.setField(new String[] { I_CmsDocumentFactory.DOC_TYPE });<BR>>>search.setQuery(I_CmsDocumentFactory.DOC_TYPE + ":Noticia");<BR>>><BR>>>(Noticia is my own xml content type)<BR>>><BR>>>is that a right way? i've tried but 0 results obtained...<BR>>><BR>>>thanks<BR>>>Cristina<BR>>><BR>>> <BR>>>------------------------------------------------------------------------<BR>>> From: /Ernesto De Santis <opencms@colaborativa.net>/<BR>>> Reply-To: /The OpenCms mailing list <BR>>><opencms-dev@opencms.org>/<BR>>> To: /The OpenCms mailing list <opencms-dev@opencms.org>/<BR>>> Subject: /Re:
[opencms-dev] CmsSearch: all results/<BR>>> Date: /Tue, 14 Mar 2006 11:11:55 -0300/<BR>>> >In lucene you can't search for all contents or empty values <BR>>>in<BR>>> >field.<BR>>> >You need index an extra field to do it.<BR>>> ><BR>>> >Example:<BR>>> >for all contents index a field "all" with value "true".<BR>>> ><BR>>> >Then, you can
search:<BR>>> ><BR>>> >cmsSearch.setQuery("all:true");<BR>>> ><BR>>> >Regards,<BR>>> >Ernesto.<BR>>> ><BR>>> >azul z escribió:<BR>>> >>hi list<BR>>> >> how can i instruct lucene to obtaing all results?<BR>>> >> if i try<BR>>> >> cmsSearch.setQuery("");<BR>>> >>zero results are
obtained<BR>>> >> which is the right query?<BR>>> >> thanks<BR>>> >>cristina<BR>>> >><BR>>> <BR>>> >>------------------------------------------------------------------------<BR>>> >>Éxitos, grandes clásicos y novedades. Un millón de <BR>>>canciones en MSN<BR>>> >>Music. <http://g.msn.com/8HMAESES/2755??PS=47575><BR>>> >><BR>>> >><BR>>> <BR>>>
>>------------------------------------------------------------------------<BR>>> >><BR>>> >><BR>>> >>_______________________________________________<BR>>> >>This mail is sent to you from the opencms-dev mailing list<BR>>> >>To change your list options, or to unsubscribe from the <BR>>>list,<BR>>> >>please visit<BR>>> >>http://lists.opencms.org/mailman/listinfo/opencms-dev<BR>>> >><BR>>> >><BR>>> <BR>>>
>>------------------------------------------------------------------------<BR>>> >><BR>>> >>No virus found in this incoming message.<BR>>> >>Checked by AVG Free Edition.<BR>>> >>Version: 7.1.385 / Virus Database: 268.2.2/280 - Release <BR>>>Date:<BR>>> >>13/03/2006<BR>>><BR>>> ><< opencms.vcf >><BR>>><BR>>> ><BR>>> >_______________________________________________<BR>>> >This mail is sent to you from the opencms-dev mailing
list<BR>>> >To change your list options, or to unsubscribe from the <BR>>>list,<BR>>> please visit<BR>>> >http://lists.opencms.org/mailman/listinfo/opencms-dev<BR>>><BR>>><BR>>>------------------------------------------------------------------------<BR>>>Acepta el reto MSN Premium: incluye Antivirus y Firewall de <BR>>>McAffee. Descárgalo y pruébalo 2 meses gratis. <BR>>><http://g.msn.com/8HMAESES/2731??PS=47575><BR>>><BR>>><BR>>>------------------------------------------------------------------------<BR>>><BR>>><BR>>>_______________________________________________<BR>>>This mail is sent to you from the opencms-dev mailing list<BR>>>To change your list options, or to
unsubscribe from the list, <BR>>>please visit<BR>>>http://lists.opencms.org/mailman/listinfo/opencms-dev<BR>>><BR>>><BR>>>------------------------------------------------------------------------<BR>>><BR>>>No virus found in this incoming message.<BR>>>Checked by AVG Free Edition.<BR>>>Version: 7.1.385 / Virus Database: 268.2.2/280 - Release Date: <BR>>>13/03/2006<BR>
<P>><< opencms.vcf >>
<DIV></DIV>
<P>><BR>>_______________________________________________<BR>>This mail is sent to you from the opencms-dev mailing list<BR>>To change your list options, or to unsubscribe from the list, please visit<BR>>http://lists.opencms.org/mailman/listinfo/opencms-dev<BR>
<P></FONT></P></BLOCKQUOTE></DIV><BR clear=all>
<HR>
Acepta el reto MSN Premium: incluye Antivirus y Firewall de McAffee. <A href="http://g.msn.com/8HMAESES/2731??PS=47575">Descárgalo y pruébalo 2 meses gratis.</A> <BR>
<P>><BR>>_______________________________________________<BR>>This mail is sent to you from the opencms-dev mailing list<BR>>To change your list options, or to unsubscribe from the list, please visit<BR>>http://lists.opencms.org/mailman/listinfo/opencms-dev<BR>
<P></FONT></P></BLOCKQUOTE></div><br clear=all><hr>Acepta el reto MSN Premium: incluye Antivirus y Firewall de McAffee. <a href="http://g.msn.com/8HMAESES/2731??PS=47575" target="_top">Descárgalo y pruébalo 2 meses gratis.</a> </html>