Lucene.NET - What is the Version parameter in the MultiFieldQueryParser constructor?

We are facing a serious bug with the Lucene.NET 2.3 codebase. We are upgrading to Lucene 2.9 in the hope that the error is fixed.

Upgrading to the latest version, we see that the MultiFieldQueryParser constructor is [Deprecated]:

[Obsolete("Use the ctor with Version param instead.")]
public MultiFieldQueryParser(string[] fields, Analyzer analyzer)

Instead, we should use a constructor that takes a Version parameter:

public MultiFieldQueryParser(Version version, string[] fields, Analyzer analyzer)

The problem is that I can’t find the documentation about what the version parameter is, what it should be, what I should pass here.

Can anyone light this light?

+3
source share
1 answer

, .

, Version.LUCENE_CURRENT. , , .

Lucene: , java-.

+6

Source: https://habr.com/ru/post/1739869/


All Articles