Hi, all!
I'm trying to migrate the plugin which uses Lucene included in Jira 7, and the migration to Jira 8 was successful but how do I solve the problem with Lucene backward compatibility?
I'm trying to create a plugin that will support both versions of Jira 7 & 8.
I changed
public void addDocumentFieldsSearchable(Document doc, Issue issue) {
this.addDocumentFields(doc, issue, Field.Index.NOT_ANALYZED_NO_NORMS);
}
to
public void addDocumentFieldsSearchable(Document doc, Issue issue) {
FieldType ft = new FieldType(TextField.TYPE_STORED);
this.addDocumentFields(doc, issue, ft);
}
But when I install the plugin on Jira 7 i get exception:
Caused by: java.lang.NoClassDefFoundError: org/apache/lucene/index/IndexableFieldType
Best regards!
Hi!
did you updated the pom.xml?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.