看出错提示一下子就可以改好了. 文件位于search下面的 PhraseQuery.cs
/// <seealso cref="Lucene.Net.search.Query.ExtractTerms(java.util.Set)">
/// </seealso>
public override void ExtractTerms(System.Collections.Hashtable queryTerms)
{
foreach (Term term in terms)
{
if (queryTerms[term] == null) ///add 判断by http://lookcode.net
{
queryTerms.Add(term, term);
}
}
}
/// </seealso>
public override void ExtractTerms(System.Collections.Hashtable queryTerms)
{
foreach (Term term in terms)
{
if (queryTerms[term] == null) ///add 判断by http://lookcode.net
{
queryTerms.Add(term, term);
}
}
}