Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Plugin migration from Jira v7 to Jira v8 causes problems with Lucene classes

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!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you