Click here to Skip to main content
11,706,007 members (48,789 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Anatomy of a relevant search engine (part 1)

, 4 Jun 2009 CPOL 84.1K 1.1K 101
Information retrieval, semantic search relevance and ranking. About anatomy of a search engine. The simplest search engine source code.
SimplestSearchEngine.zip
SimplestSearchEngine
Properties
Settings.settings
simplest_search_engine.bmp
SimplestSearchEngine.exe
namespace SimplestSearchEngine
{
	partial class Form1
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Windows Form Designer generated code

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.buttonIndex = new System.Windows.Forms.Button();
			this.labelIndex = new System.Windows.Forms.Label();
			this.textBoxQuery = new System.Windows.Forms.TextBox();
			this.buttonSearch = new System.Windows.Forms.Button();
			this.listBoxResults = new System.Windows.Forms.ListBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
			this.SuspendLayout();
			// 
			// buttonIndex
			// 
			this.buttonIndex.Location = new System.Drawing.Point(16, 25);
			this.buttonIndex.Name = "buttonIndex";
			this.buttonIndex.Size = new System.Drawing.Size(75, 23);
			this.buttonIndex.TabIndex = 0;
			this.buttonIndex.Text = "Index files";
			this.buttonIndex.UseVisualStyleBackColor = true;
			this.buttonIndex.Click += new System.EventHandler(this.buttonIndex_Click);
			// 
			// labelIndex
			// 
			this.labelIndex.AutoSize = true;
			this.labelIndex.Location = new System.Drawing.Point(106, 30);
			this.labelIndex.Name = "labelIndex";
			this.labelIndex.Size = new System.Drawing.Size(77, 13);
			this.labelIndex.TabIndex = 1;
			this.labelIndex.Text = "No file indexed";
			// 
			// textBoxQuery
			// 
			this.textBoxQuery.Location = new System.Drawing.Point(16, 70);
			this.textBoxQuery.Name = "textBoxQuery";
			this.textBoxQuery.Size = new System.Drawing.Size(303, 20);
			this.textBoxQuery.TabIndex = 2;
			// 
			// buttonSearch
			// 
			this.buttonSearch.Location = new System.Drawing.Point(325, 68);
			this.buttonSearch.Name = "buttonSearch";
			this.buttonSearch.Size = new System.Drawing.Size(75, 23);
			this.buttonSearch.TabIndex = 3;
			this.buttonSearch.Text = "Search";
			this.buttonSearch.UseVisualStyleBackColor = true;
			this.buttonSearch.Click += new System.EventHandler(this.buttonSearch_Click);
			// 
			// listBoxResults
			// 
			this.listBoxResults.FormattingEnabled = true;
			this.listBoxResults.Location = new System.Drawing.Point(16, 109);
			this.listBoxResults.Name = "listBoxResults";
			this.listBoxResults.Size = new System.Drawing.Size(384, 225);
			this.listBoxResults.TabIndex = 4;
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(13, 93);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(45, 13);
			this.label1.TabIndex = 5;
			this.label1.Text = "Results:";
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(12, 54);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 13);
			this.label2.TabIndex = 6;
			this.label2.Text = "Search terms:";
			// 
			// openFileDialog
			// 
			this.openFileDialog.FileName = "openFileDialog1";
			this.openFileDialog.Filter = "Text files|*.txt";
			this.openFileDialog.InitialDirectory = "c:";
			this.openFileDialog.Multiselect = true;
			this.openFileDialog.Title = "Select text files to index";
			// 
			// Form1
			// 
			this.AcceptButton = this.buttonSearch;
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(417, 349);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.listBoxResults);
			this.Controls.Add(this.buttonSearch);
			this.Controls.Add(this.textBoxQuery);
			this.Controls.Add(this.labelIndex);
			this.Controls.Add(this.buttonIndex);
			this.Name = "Form1";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Simplest Search Engine";
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.Button buttonIndex;
		private System.Windows.Forms.Label labelIndex;
		private System.Windows.Forms.TextBox textBoxQuery;
		private System.Windows.Forms.Button buttonSearch;
		private System.Windows.Forms.ListBox listBoxResults;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.OpenFileDialog openFileDialog;
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Adrian Pirvu
Romania Romania
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150819.1 | Last Updated 4 Jun 2009
Article Copyright 2009 by Adrian Pirvu
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid