Hi Nuwan,

1. First check adding the customer indexer including the profile as well.

Eg: This is the one already in AM.

<indexer
class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer"
mediaTypeRegEx="application/vnd.(.)+\+xml" profiles
="default,api-store,api-publisher"/>

2. Please verify the media type of the resource is matching to the given
type in indexing configuration.

Thanks.
Ajith




On Mon, Jun 9, 2014 at 7:34 PM, Nuwan Dias <[email protected]> wrote:

> Hi,
>
> I'm trying to register a custom indexer for the API Manager. I have
> indexer in an external jar file and put in to the components/lib directory.
>
> The Indexer implements
> the org.wso2.carbon.registry.indexing.indexer.Indexer interface and the
> 'getIndexedDocument' method.
>
> I have registered my indexer in the registry.xml as <indexer
> class="org.wso2.carbon.wsdl.indexer.WSDLIndexer"
> mediaTypeRegEx="application/api+wsdl+xml"/>
>
> When I create a registry resource with the above provided media type, the
> indexer does not seem to execute. Anything wrong I could be doing or is
> there anything else to be done?
>
> I have some debug logs and sysouts within my indexer, these are not being
> printed at the moment. That's how I figured the indexer is not running. Is
> there any way to find out whether a resource was indexed?
>
> Thanks,
> NuwanD.
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : [email protected]
> Phone : +94 777 775 729
>



-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  [email protected]
Mobile : +94772217350
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to