Apache-solr-search-engine-basics

提供:Dev Guides
移動先:案内検索

Apache Solr-検索エンジンの基本

検索エンジンとは、ウェブページ、ニュースグループ、プログラム、画像などのインターネットリソースの巨大なデータベースを指します。 World Wide Web上の情報を見つけるのに役立ちます。

ユーザーは、キーワードまたはフレーズの形式でクエリを検索エンジンに渡すことにより、情報を検索できます。 次に、検索エンジンはデータベースを検索し、関連するリンクをユーザーに返します。

Google検索

検索エンジンのコンポーネント

一般的に、以下にリストされているように、検索エンジンの3つの基本的なコンポーネントがあります-

  • Web Crawler -Webクローラーは、 spiders または bots とも呼ばれます。 Webを横断して情報を収集するソフトウェアコンポーネントです。
  • データベース-Web上のすべての情報はデータベースに保存されます。 膨大な量のWebリソースが含まれています。
  • 検索インターフェイス-このコンポーネントは、ユーザーとデータベース間のインターフェイスです。 ユーザーがデータベースを検索するのに役立ちます。

検索エンジンはどのように機能しますか?

以下の操作の一部またはすべてを実行するには、検索アプリケーションが必要です。

Step Title Description
1 Acquire Raw Content The very first step of any search application is to collect the target contents on which search is to be conducted.
2 Build the document The next step is to build the document(s) from the raw contents which the search application can understand and interpret easily.
3 Analyze the document Before indexing can start, the document is to be analyzed.
4 Indexing the document

Once the documents are built and analyzed, the next step is to index them so that this document can be retrieved based on certain keys, instead of the whole contents of the document.

索引付けは、本の最後にある索引に似ています。一般的な単語がページ番号とともに表示されるため、本全体を検索するのではなく、これらの単語をすばやく追跡できます。

5 User Interface for Search Once a database of indexes is ready, then the application can perform search operations. To help the user make a search, the application must provide a user interface where the user can enter text and initiate the search process
6 Build Query Once the user makes a request to search a text, the application should prepare a query object using that text, which can then be used to inquire the index database to get relevant details.
7 Search Query Using the query object, the index database is checked to get the relevant details and the content documents.
8 Render Results Once the required result is received, the application should decide how to display the results to the user using its User Interface.

次の図をご覧ください。 検索エンジンの機能の全体像を示しています。

検索エンジン

これらの基本的な操作とは別に、検索アプリケーションは、管理ユーザーインターフェイスを提供して、管理者がユーザープロファイルに基づいて検索レベルを制御できるようにします。 検索結果の分析は、検索アプリケーションのもう1つの重要かつ高度な側面です。