Reputation: 55
I am beginning to learn Lucene.Net and was wondering how you declare the version number?
Here is what I have, but it doesn't work:
var analyzer = new StandardAnalyzer(Version.LUCENE_30); //Version.Lucene_30 is where the problem lies.
I have also tried:
var analyzer = new StandardAnalyzer(Lucene.Net.Util.Version);
but get the same result.
Upvotes: 0
Views: 608
Reputation: 55
To declare the version of Lucene.Net you can create a variable:
var version = Lucene.Net.Util.Version.LUCENE_30;
After this just add the variable into the StandardAnalyzer argument:
var analyzer = new StandardAnalyzer(version);
Upvotes: 2