cancel
Showing results for 
Search instead for 
Did you mean: 

How to search on Discussion/Topics?

alex_chew
Champ in-the-making
Champ in-the-making
Hi,

I want to add a search function on Discussion/Topics. From forumModel.xml  the fm:toopic type is a child type of cm:folder. The out-of-the-box implementation saves topic title to fm:topic type and saves topic content to fmSmiley Tongueost type. Here comes my question: How to find topics by searching on topic contents?

I tried to build new lucene query by following out-of-the-box findTopicByTags function, but I don't know how to build lucene query on fm:topic–fmSmiley Tongueost parent-child association. My Alfresco version is community 4.0.c. Any tips will be appreciated.

Regards,
Alex
1 REPLY 1

alex_chew
Champ in-the-making
Champ in-the-making
I solved this with a walk around. By adding a custom field postText with type d:text, I can update OOTB createTopic/updateTopic method to set the value. I built a new lucene query to search on fmSmiley TongueostText field.  Everything goes well.