19 using Lucene.Net.Documents;
22 using Term = Lucene.Net.Index.Term;
24 namespace Lucene.Net.Search
40 private void InitBlock()
42 similarity = Net.Search.Similarity.Default;
57 return Search(CreateWeight(query), filter, n, sort);
74 Search(CreateWeight(query), null, results);
98 Search(CreateWeight(query), filter, results);
108 return Search(CreateWeight(query), filter, n);
118 return Search(query, null, n);
131 return Explain(CreateWeight(query), doc);
144 get {
return this.similarity; }
145 set { this.similarity = value; }
153 return query.
Weight(
this);
157 public virtual int[] DocFreqs(
Term[] terms)
159 int[] result =
new int[terms.Length];
160 for (
int i = 0; i < terms.Length; i++)
162 result[i] = DocFreq(terms[i]);
169 [Obsolete(
"Use Dispose() instead")]
175 public void Dispose()
180 protected abstract void Dispose(
bool disposing);
182 public abstract int DocFreq(
Term term);
183 public abstract int MaxDoc {
get; }
185 public abstract Document Doc(
int i);