[opencms-dev] Search : Field Values

M Butcher mbutcher at grcomputing.net
Mon Apr 19 22:41:01 CEST 2004


If you just want to _see_ the values (and don't want to search them), 
then you should just use the readProperty() method of the CmsObject.

Matt

Vinod Kumar wrote:
> Hi,
>  
> How can I add more fields to a document  (page & binary ) returned from 
> a search.?
>  
> I have added a field "role"  through property management to a page .
> Now I want to retrieve the values stored in this field  in the document 
> returned from search.
>  
> I don't  care if the search is performed on values in these fields . I 
> just want the value of this field in my search jsp
>  
> How can I do that ?
>  
> eg : In search page
>  
> doc.get("title") gives me the title of the page . but
>  
> doc.get("role") produces null
>  
> Please Help. This is very urgent
>  
> Thanks
> Rk
> 
> ------------------------------------------------------------------------
> STOP MORE SPAM with the new MSN 8 <http://g.msn.com/8HMBEN/2728??PS=> 
> and get 2 months FREE*_______________________________________________ 
> This mail is send to you from the opencms-dev mailing list To change 
> your list options, or to unsubscribe from the list, please visit 
> http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list