<html><div style='background-color:'><DIV class=RTE>
<P>thanks Ernesto for your help</P>
<P>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></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 11:11:55 -0300</I><BR>>In lucene you can't search for all contents or empty values 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>>>Éxitos, grandes clásicos y novedades. Un millón de canciones en MSN <BR>>>Music. <http://g.msn.com/8HMAESES/2755??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" target="_top">Descárgalo y pruébalo 2 meses gratis.</a> </html>