TAILIEUCHUNG - Beginning Zend Framework phần 9

Họ được xác định trong phương thức hành động để bạn tham khảo và để chứng minh rằng họ không nhất thiết phải được thiết lập cấp giờ cho câu hỏi quan trọng. Làm thế nào để bạn thông báo sử dụng thông tin SMTP bạn thiết lập? Dễ dàng! Vượt qua trong các đối tượng vào gửi () phương pháp. | CHAPTER 8 CREATING A SEARCH ENGINE USING ZEND_SEARCH_LUCENE Figure 8-1. Search engine components The search engine is composed of an index segments documents and fields. The index is the main file that contains a collection of documents. It contains the data the user can search through and is represented as a physical file stored in the local file system. Indexes contain segments that are created each time a document is added into the index. Segments are sub-indexes that can be searched independently. The more segments in an index the slower the performance of the index and ultimately your searches. Documents contain the actual data the user can search through. Documents contain content such as HTML content from a page the title of a book or any other value that is deemed important for the user. Each document is further broken down into fields. Each field in the document contains itemized content. For example the document containing book information could contain three fields title field date field and description field. Each field is open for the user to search through. In the world of Zend Framework each layer shown in Figure 8-1 is represented as objects except for the segment which is handled behind the scenes. The index is represented as a Zend_Search_Lucene object and is stored in a directory of your choosing. Documents that are stored in the index are represented as Zend_Search_Lucene_Document objects and contain Zend_Search_Lucene_Field objects. Let s start creating each of the pieces that the search engine needs . Creating the Foundation The next sections cover how to build the foundations of each of the layers of the search engine from the index to the fields. 318 Download at CHAPTER 8 CREATING A SEARCH ENGINE USING ZEND_SEARCH_LUCENE Creating the Index Zend Framework represents an index as a Zend_Search_Lucene object. The Zend_Search_Lucene class allows you to create update delete optimize and add documents. Additional functionality is shown .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.