10
<Project Name>And GlobalWeb <Document Type>vices Version 1.0 <Note: Text enclosed in square brackets and displayed in blue italics (style=InfoBlue) is included to provide  guidance to the author and should be deleted before publishing the document. A paragraph entered following this style will automatically be set to normal (style=Body Text).> <To customize automatic fields in Microsoft Word (which display a gray background when selected), select  File>Propertie s and replace the Title, Subject and Company fields with the appropriate information for this document. After closing the dialog, automatic fields may be updated throughout the document by selecting  Edit>Select All (or Ctrl-A) and pressing F9, or simply click on the field and press F9. This must be done  separately for Headers and Footers. Alt-F9 will toggle between displaying the field names and the field contents. See Word help for more information on working with fields.> 48349465.doc

Indexing Service

Embed Size (px)

Citation preview

Page 1: Indexing Service

8/8/2019 Indexing Service

http://slidepdf.com/reader/full/indexing-service 1/10

<Project Name>And GlobalWeb

<Document Type>vices

Version 1.0

<Note: Text enclosed in square brackets and displayed in blue italics (style=InfoBlue) is included to provide guidance to the author and should be deleted before publishing the document. A paragraph entered following this style will automatically be set to normal (style=Body Text).>

<To customize automatic fields in Microsoft Word (which display a gray background when selected), select File>Properties and replace the Title, Subject and Company fields with the appropriate information for this

document. After closing the dialog, automatic fields may be updated throughout the document by selecting Edit>Select All (or Ctrl-A) and pressing F9, or simply click on the field and press F9. This must be done separately for Headers and Footers. Alt-F9 will toggle between displaying the field names and the field contents. See Word help for more information on working with fields.>

48349465.doc

Page 2: Indexing Service

8/8/2019 Indexing Service

http://slidepdf.com/reader/full/indexing-service 2/10

YLPortal And GlobalWeb 20-Dec-10<Document Type>ices Version: 1.0

Website Searching Using Microsoft IndexServices

This document explains the process of using Microsoft Index Services for website's searchfunctionality.

The process of searching in Indexing services is similar to reading a book. We look at thecatalog to locate specific chapter in the book similar to this, searching tool also searches for a word inthe catalog and locates the particular page or document. With Index Services we can specify a specificgroup of documents or HTML pages to be indexed, and then create an ASP.Net page that can querythis index.

This process includes two steps. First we have to create a catalog which includes alldocuments and HTML pages to be searched. Second we have to make use of this catalog in ourASP.Net page.

Configuring Microsoft Indexing ServicesThe first step in creating an index for your search application is to configure Indexing Services on theIIS server that your Web application will be running. To do this you need access to the Web serveritself. Open the Microsoft management console by clicking Start, then Run; type mmc and click Ok.Next, to open the Indexing Services snap-in, you must:

• Click file,

• Click Add/Remove Snap-In,

• Click Add,

• Select the Indexing Service Snap-In,

• Click Add,

• Click Finish,

• Close the dialog

After following these steps you should see something similar to the screenshot below.

Confidential Page 2 of 10

Page 3: Indexing Service

8/8/2019 Indexing Service

http://slidepdf.com/reader/full/indexing-service 3/10

YLPortal And GlobalWeb 20-Dec-10<Document Type>ices Version: 1.0

To create a new catalog, right-click on the Indexing Service node, click New and then Catalog. Youthen need to choose a location to store the catalog file. Once you've done that, expand the catalogthat you just created and click on the directories icon. Right-click on the directories folder, click newdirectory, and add the directory or directories that contain the content that you want to search. Thesedirectories can reside anywhere that the host computer can access, virtual directories and even UNCpaths ( \\Server\share ) may be used. However, each directory that is indexed must either residephysically, or be included as a virtual directory, in the root of the website that you are indexing. If adirectory is specified that is not in the web root via a physical folder or virtual directory, the resultswill be displayed in your search, but they will return broken links.

Indexing Services will effectively index HTML, Word, and, once properly configured, PDF documents.To ensure that your required directories will be indexed you should verify that the index flag isproperly set on the files and folders. You can verify this setting by right clicking on any folder or fileand selecting properties. Click the "Advanced button" and make sure that the "For fast searching,allow indexing services to index this folder" checkbox is checked, as shown in the screenshot to theright.

Next, you want to set the properties of this catalog so that the HTML paths can be used, and so thatIndexing Services will generate abstracts for the documents as they are indexed. To do this right-clickon the catalog you just created and select Properties. On the tracking tab, you'll need to make surethat the "WWW Server:" field is set to the website that your application will be running from. Thisensures that the html paths work as they should when you get to building the front-end for thesearch.

If you want to display a short bit of each article along with your search results, then go to theGeneration tab, uncheck "inherit above settings from service," then check generate abstracts and setthe number of characters you wish to have displayed in each abstract.

Confidential Page 3 of 10

Page 4: Indexing Service

8/8/2019 Indexing Service

http://slidepdf.com/reader/full/indexing-service 4/10

YLPortal And GlobalWeb 20-Dec-10<Document Type>ices Version: 1.0

All these properties of the catalog are set in the screen similar to the below screenshot.

Wait For The Index To Be Built

Indexing Service automatically processes the catalog and prepares a word list for indexing. When yourun the code, you may not receive the results as expected because Indexing Service requires sometime to build the index. To verify the state of the index, click Indexing Service in the right pane, andthen verify that the Word List value for catalog is greater than zero. If the Word List value is zero,wait for the index to build the list. If needed restart the indexing service.

Index Data May Have Become Corrupted

If the search does not return the expected search results when you query the index, the index datamay have become corrupted. To troubleshoot this issue, stop and restart Indexing Service to re-indexall documents. To do this, follow these steps:

• Right click on the catalog that you have created, select all tasks and select stop.

• Now select the catalog again and select the start.

You can do the same by selecting Indexing service on local machine tab or you can follow thesesteps.

Confidential Page 4 of 10

Page 5: Indexing Service

8/8/2019 Indexing Service

http://slidepdf.com/reader/full/indexing-service 5/10

YLPortal And GlobalWeb 20-Dec-10<Document Type>ices Version: 1.0

1. Click Start , point to Settings , and then click Control Panel .

2. Double-click Administrative Tools , and then double-click Computer Management .

3. In the console tree, double-click Services and Applications .

4. Right-click Indexing Service and then click Stop .

5. Right-click Indexing Service and then click Start .

6.

To Update The Catalog

If you want to add or remove directories or add any files to the directories in file system, just rescanthe directories in the catalog by following these steps.

* Go to the indexing catalog and select the directory.

* Right click the directory and select Rescan (Full).

Or stop the catalog and restart the catalog, it will scan the whole directory again.

YLGlobalWeb Directories

Right Click on YLGlobalWebCatalog Show Settings for

1) General Tab

Confidential Page 5 of 10

Page 6: Indexing Service

8/8/2019 Indexing Service

http://slidepdf.com/reader/full/indexing-service 6/10

YLPortal And GlobalWeb 20-Dec-10<Document Type>ices Version: 1.0

Confidential Page 6 of 10

Page 7: Indexing Service

8/8/2019 Indexing Service

http://slidepdf.com/reader/full/indexing-service 7/10

YLPortal And GlobalWeb 20-Dec-10<Document Type>ices Version: 1.0

2) Tracking

3) Generation Tab

Confidential Page 7 of 10

Page 8: Indexing Service

8/8/2019 Indexing Service

http://slidepdf.com/reader/full/indexing-service 8/10

YLPortal And GlobalWeb 20-Dec-10<Document Type>ices Version: 1.0

4) Setting to avoid unwanted pages GlobalWeb in the Directories shown can set is as follows

a) In D:\Inetpub\Webapps\YLGlobalWeb\Careers folder files to be unchecked so that those are not thepart of indexing searching is shown in the below figure.

Confidential Page 8 of 10

Page 9: Indexing Service

8/8/2019 Indexing Service

http://slidepdf.com/reader/full/indexing-service 9/10

YLPortal And GlobalWeb 20-Dec-10<Document Type>ices Version: 1.0

b) In D:\Inetpub\Webapps\YLGlobalWeb\Home folder files to be unchecked so that those are not thepart of indexing searching is shown in the below figure.

c) In D:\Inetpub\Webapps\YLGlobalWeb\Clients folder files to be unchecked so that those are not thepart of indexing searching is shown in the below figure.

Confidential Page 9 of 10

Page 10: Indexing Service

8/8/2019 Indexing Service

http://slidepdf.com/reader/full/indexing-service 10/10

YLPortal And GlobalWeb 20-Dec-10<Document Type>ices Version: 1.0

Confidential Page 10 of 10