Documentation > Wiki > Support for auto phrase tokenfilter jar

🧩 Using the AutoPhrase TokenFilter JAR in Opensolr

The AutoPhrase TokenFilter is a powerful Solr plugin that helps you recognize and index multi-word expressions as single tokens (think: “New York City” as one unit, not three). This can significantly improve the quality of search, autocomplete, and analytics.


⚡️ Is It Enabled by Default?

Not on all Opensolr environments!
If you’re trying to use the AutoPhraseTokenFilterFactory and see errors like:

Plugin not found: solr.AutoPhraseTokenFilterFactory

…then the jar isn’t active on your server (yet).


🛠️ What To Do?

  1. Contact Us
    Simply send us a request and we’ll install the AutoPhrase library (or pretty much any other custom Solr plugin) for you.

  2. How to Request a Plugin

  3. Follow the step-by-step guide: How do I add a lib/jar file?
  4. Let us know which version of Solr you’re using (the right jar version matters!).
  5. Optionally, send the JAR file directly if it’s a custom or non-public library.

  6. After Installation

  7. Once the plugin is in place, add the appropriate <filter class="solr.AutoPhraseTokenFilterFactory" ... /> element to your field type in schema.xml.
  8. Reload your core to activate the new filter.
  9. Don’t forget to update your schema or config if needed—AutoPhrase sometimes requires its own config files or phrase lists.

🚨 Gotchas & Tips

  • Version Compatibility: Always use a plugin version that matches your Solr version.
  • Security: Opensolr reviews all uploaded JARs for security reasons—public/official plugins are easier/faster to approve!
  • Performance: Heavy custom token filters (like AutoPhrase) can impact indexing speed. Test with your real data!

🔍 Learn More


Questions? Contact Opensolr Support — we’re happy to help!

(If you’re a plugin power user, give us a heads up and we’ll have your Solr instance doing backflips in no time. 🕺)






Review us on Google Business
ISO-9001 CERTIFIED ISO-27001 CERTIFIED