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/08 15:46:23 UTC

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

NightOwl888 commented on issue #398:
URL: https://github.com/apache/lucenenet/issues/398#issuecomment-740700939


   Documentation is still a work in progress, and updating it for .NET is currently blocked until #396 is completed.
   
   > In our project, we make use of the CustomScoreQuery which used to be part of the Lucene.Net.Search.Function namespace. It is no longer there. According to the Apache documentation is is deprecated and should be replaced by using the FunctionScoreQuery, but this class doesn't seem to exist in 4.8. What should we use instead?
   
   > We used a class that inherited from CustomScoreProvider in Lucene.Net.Search.Function, but it is no longer there in 4.8. We used it combined with the CustomScoreQuery as returnvalue for the GetCustomScoreProvider method There doesn't seem to be any alternative. What should we use instead?
   
   [CustomScoreQuery](https://lucenenet.apache.org/docs/4.8.0-beta00013/api/queries/Lucene.Net.Queries.CustomScoreQuery.html) and [CustomScoreProvder](https://lucenenet.apache.org/docs/4.8.0-beta00013/api/queries/Lucene.Net.Queries.CustomScoreProvider.html) are still there, but the project has been split into [26 specialized assemblies](https://github.com/apache/lucenenet#all-packages-1) rather than having everything in one assembly. You just need to reference the [Lucene.Net.Queries](https://www.nuget.org/packages/Lucene.Net.Queries/) package.
   
   > We used a WhitespaceAnalyzer in 3.0, Which doesn't seem to be there anymore. What is the replacement for that?
   
   [WhiteSpaceAnalyzer](https://lucenenet.apache.org/docs/4.8.0-beta00009/api/analysis-common/Lucene.Net.Analysis.Core.WhitespaceAnalyzer.html) is in the [Lucene.Net.Analysis.Common](https://www.nuget.org/packages/Lucene.Net.Analysis.Common/) package.


----------------------------------------------------------------
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