Lucene.net 4.8 - IDE 无法识别 Lucene.Net.Standard 以及 StandardAnalyzer 的 [英] Lucene.net 4.8 - IDE doesn't recognize Lucene.Net.Standard as well as the StandardAnalyzer's

查看:82
本文介绍了Lucene.net 4.8 - IDE 无法识别 Lucene.Net.Standard 以及 StandardAnalyzer 的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Lucene.net版本4.8beta,在尝试使用分析器时,它无法识别StandardTokenizer.我已经在使用Lucene.Net.Analysis.我正在使用Visual Studio

Im using Lucene.net version 4.8beta, and when trying to use an Analyzer it doesnt recognize StandardTokenizer. I am already using Lucene.Net.Analysis. I am using Visual Studio

我已经尝试使用NuGet软件包管理器进行卸载,然后重新安装Beta.我有一个使用Lucene.net 3.03的旧项目,该项目使用了一些标准的分词器,例如WhitespaceTokenizer和LowerCaseFilter.4.8文档中的所有指南都提到了使用StandardTokenizer.

I have already tried using NuGet package manager to uninstall, and then reinstall the beta. I have an old project that uses Lucene.net 3.03 that uses some of the standard Tokenizers such as WhitespaceTokenizer and LowerCaseFilter. All the guides in the 4.8 Documentation mention using StandardTokenizer as well.

TokeStream result = new WhiteSpaceTokenizer(reader);
result = new LowerCaseFilter(result);

我希望该功能可用,但这只是告诉我它无法识别.

I expect the function to be useable, but this just tells me that it doesnt recognize it.

推荐答案

我只是想出了原因.

遇到同样的情况.NuGet Manager将仅提供v3.03作为最新的稳定版本",因此我不得不通过命令行安装versino 4.8.0-beta00006

Bumped into the same situation. NuGet Manager will only offer v3.03 as the "latest stable version" so I had to install versino 4.8.0-beta00006 via command line

Install-Package Lucene.Net -Pre

按照Lucene.Net快速入门指南的建议.

As Lucene.Net Quick Start Guide advised.

但是,他们忘了"告诉您的是,您将需要另外安装一个:

However, what they "forget" to tell you is that, you will need to install another separate one:

Install-Package Lucene.Net.Analysis.Common -Version 4.8.0-beta00006

这将缩小所有差距.

伙计,为什么他们不将所有东西都打包在一起……当我买车时,我期待一辆车.必须单独购买方向盘吗?真尴尬...

Man why don't they package everything all together... when I'm buying a car I'm expecting a car. Have to buy steering wheel separately? That's awkward...

这篇关于Lucene.net 4.8 - IDE 无法识别 Lucene.Net.Standard 以及 StandardAnalyzer 的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆