19 using System.Collections.Generic;
20 using Lucene.Net.Analysis;
21 using Lucene.Net.Index;
22 using Lucene.Net.Analysis.Tokenattributes;
24 namespace Lucene.Net.Search.Similar
80 public static Query FormSimilarQuery(System.String body,
Analyzer a, System.String field, ISet<string> stop)
86 ISet<string> already = Lucene.Net.Support.Compatibility.SetFactory.CreateHashSet<
string>();
89 String word = termAtt.
Term;
91 if (stop != null && stop.Contains(word))
94 if (already.Contains(word))
101 tmp.Add(tq,
Occur.SHOULD);