# Using your custom QueryFunction

In order to use your new QueryFunction, you must deploy it to the Discovery Framework.

If you are using the default portal bundle, theyour-query-filter-name-filter|config directory that you created contains an ant build file. The ant deploy task places a .jar file containing the custom QueryFunction into the endeca-portal/tomcat-<version>/lib/ext directory.

To deploy your custom QueryFunction (if you are not using the default portal bundle):

1. Put the new QueryFunction.jar into the container's global classpath.
2. Restart the Discovery Framework so that the portal picks up the new class file.

Once you have deployed your custom QueryFunction, you can use it in any component.