private TopDocs topDocs; //搜索到的doc。 #endregion Fields #region Constructors /// <summary> /// Search构造函数 /// </summary> /// <param name="_form">主窗</param> /// <param name="_mode">搜索模式</param> public Search(FileFinder _form, SearchMode _mode) { //修改maxCluseCount是为了用PrefixQuery时没有数量的限制, //PrefixQuery会将找到的数据用TermQuery,然后用booleanQuery.add()方法。 BooleanQuery.SetMaxClauseCount(int.MaxValue); this.oldBoolQuery = new BooleanQuery(); this.form = _form; this.SetSearcher(_mode); }
public SaveResult(FileFinder _form, SaveForm _saveForm, Search _serach, string _fullName, PageRange _pageRange) { this.saveForm = _saveForm; this.form = _form; this.lvStatus = this.form.LVStatus; this.fullName = _fullName; this.search = _serach; this.pageRange = _pageRange; this.setpValue = 100 / (this.pageRange.End - this.pageRange.Begin + 2); this.lastValue = 100 - this.setpValue * (this.pageRange.End - this.pageRange.Begin + 1); }
public SaveForm(FileFinder _form, Search _search) { InitializeComponent(); this.form = _form; this.search = _search; this.lblWarning.Visible = false; this.rdoFirst.Checked = true; this.lbl1.Enabled = false; this.lbl2.Enabled = false; this.lbl3.Enabled = false; this.cmbBegin.Enabled = false; this.cmbEnd.Enabled = false; for (int i = 1; i <= this.form.PageNums; i++) { this.cmbBegin.Items.Add(i); this.cmbEnd.Items.Add(i); } this.cmbBegin.SelectedIndex = 0; this.cmbEnd.SelectedIndex = 0; }
private Thread threadGetMP3Tag; //获取MP3TAG数据的线程 #endregion Fields #region Constructors /// <summary> /// 索引前需要重新初始化 /// </summary> public Index(FileFinder _form, IndexMode type) { this.form = _form; this.indexType = type; }