You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2020/12/09 14:37:05 UTC

[GitHub] [lucenenet] NightOwl888 edited a comment on issue #398: Migrating from lucene.net 3.0 to 4.8

NightOwl888 edited a comment on issue #398:
URL: https://github.com/apache/lucenenet/issues/398#issuecomment-741809442


   > In 3.0.3, we called new Index.IndexWriter(_luceneDir, analyzer, False, Index.IndexWriter.MaxFieldLength.UNLIMITED)
   We don't seem to have any method to pass the MaxFieldLength property to the new IndexWriter, has it become obsolete and can I simply ignore it?
   
   From https://lucene.apache.org/core/3_6_2/api/all/org/apache/lucene/index/IndexWriter.MaxFieldLength.html:
   
   ### Deprecated. 
   *use [LimitTokenCountAnalyzer](https://lucenenet.apache.org/docs/4.8.0-beta00013/api/analysis-common/Lucene.Net.Analysis.Miscellaneous.LimitTokenCountAnalyzer.html) instead.*
   
   From what I gather, unlimited is now the default and if you need to limit the field length, you can use the specialized analyzer.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org