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?
At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.
Read the story
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.