cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Polanco <pol...@hotmail.com>
Subject Using Lucene search results with Cocoon and XSP
Date Thu, 21 Oct 2004 01:31:18 GMT
I used the Lucene factory method Field.Text(String, String) to index, 
tokenize and store several hundreds short xml files. I stored the entire 
xml content of these files in a field called "content".

Now I want to use the Lucene search results with Cocoon. If I execute 
the code shown below  then I get a string with all the requested xml 
content which I'm able to see with "view" for debugging purposes. The 
problem is that I'm not able to apply a stylesheet to a string as it is 
returned by hits.doc(i).get("content").  I think that I shouldn't be 
using the <xsp:expr> expression but do not know what to use instead.


<![CDATA[
for(int i = 0; i < hits.length(); i++)
{]]
    <xsp:content>
       <xsp:expr>hits.doc(i).get("content")</xsp:expr>
    </xsp:content>
<![CDATA[
}
searcher.close();


Thanks for any help.
Juan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message