Search Component

Hi ALL,
I have developed a search component which searches for content in a site. Along with the content instances my code is retrieving the content components. How do I make my code to search only Content Instances? And I am displaying the results in the same portlet where i am rendering the search component but i want to display the results in a different page. How may I link to that page?

Thank You.

Re: Search Component

Have you extended "Query Content Component" to create "Search Component"?

search component

Hi pascuals,
I did not extended Query CC, I have extended the ContentComponent class and used SearchQuery class to retrieve content in toXML method. But u can find a oob SearchContentComponent in the dpm api. Find it in the vgn-appsvcs-cma.jar.

Regards

Re: Search component

In the xml Autonomy returns, you can get the id of the content type:

.....

<DREDATE>1200665944</DREDATE>
<DREDBNAME>ContentInstances</DREDBNAME>
<CONTENT_TYPE>ea895e6a7bf11110VgnVCM1000000286a8c0____</CONTENT_TYPE>
<CREATIONTIME>1177508628000</CREATIONTIME>

.....

So you can filter the results specifying the attribute CONTENT_TYPE in the Query in the Text parameter.

search component

Thanks but how may i link or dislpay the results in other template page?

thank you