Github user osma commented on the pull request:
https://github.com/apache/jena/pull/52#issuecomment-101336857
Oh, right. Hmm.
How about this: TextIndexLucene currently calls IndexWriter.addDocument()
and IndexWriter.updateDocument(). But there are versions of these methods that
take an Analyzer parameter which overrides the default analyzer of the index.
So if you could, within TextIndexLucene methods (or perhaps your own, similar
class TextIndexLuceneMultilingual), determine the correct analyzer to use based
on the Entity, then you could call addDocument and updateDocument with the
right Analyzer parameter.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---