Referencing the discussion here
https://forum.hibernate.org/viewtopic.php?f=9&t=1016667&p=2468462#p2468462
I think it might be useful to allow you to trigger a custom analyzer in a class- or fieldbridge. This would allow you to select appropriate analyzers for any custom field within a bridge. This would probably usually be a classbridge.
I can see a few ways to do this:
1. Add a setAnalyzer method to the luceneOptions element. This would prevent interface changes.
2. Implement a new interface AnalyzerBridge that offers a setAnalyzer method.
3. Implement a new interface AnalyzerSelectBridge that allows you to select a predefined analyzer.
|