Thanks a lot OMR. That is great information. I am going to try it all tomorrow morning.
One question: I have a Javascript client side include file in a directory above the "materials" directory that all the pages include for the left nav. bar. I am assuming that because this file is above the materials directory and is not included in the sitemap, it will not be included in the search? Paul On Jul 27, 1:36 pm, omr <[email protected]> wrote: > As Jeremy has suggested, one way forward is to set up a Custom Search > Engine (CSE) with On-Demand Indexing. > > For information about Custom Search Engines, see: > > http://www.google.com/cse/docs/ > http://code.google.com/apis/customsearch/docs/start.html > http://www.google.com/support/customsearch/ > http://www.google.com/cse/docs/tos.html > > For information about On-Demand Indexing, see: > > http://www.google.com/support/customsearch/bin/answer.py?answer=115959 > http://www.google.com/support/customsearch/bin/topic.py?topic=16792 > http://www.google.com/support/customsearch/bin/answer.py?answer=115958 > > . > > The following suggested procedure describes how I might initially > proceed if I were in your situation. Please note that these are only > suggestions, intended to help you get started quickly. (This is > nowhere near a complete discussion of the many options available for > Custom Search.) Please read the Custom Search documentation and > decide how you'd like to proceed. > > (Disclaimers: The following suggestions are provided 'as-is' without > any warranty. I'm not liable for errors, omissions, or any > consequences of use. I'm not offering any additional support or > assistance. I'm not affiliated with Google.) > > . > > To create your Custom Search Engine, go to: > > http://www.google.com/cse/manage/create > > (You may be asked to sign-in again.) > > In the "Name" box, enter e.g.: "William K. Sanford Town Library > Materials". In the "Description" box, enter the same, or a short > description. (Don't spend more than a minute writing this entry; it > won't be displayed on your web site.) > > In the "Sites to search" box, enter (or copy-and-paste) exactly this: > > *.colonie.org/library/digitalLibrary/materials/* > > Confirm that you have read and agreed to the Custom Search Terms of > Service, and click "Next". (The next page offers styling options; > ignore them for now.) Again click "Next". > > You will be given code to create a search box (using the "Custom > Search Element"), but in this case I'd like to suggest an alternative > implementation initially. We'll get your search box code in the next > step. Click this link to go to your "My Search Engines" page: > > http://www.google.com/cse/manage/all > > (Please bookmark that page.) > Your Custom Search Engine is listed there. > Click the "control panel" link. > Click the "Look and feel" link (in the left column). > Under "Choose a hosting option", click: "Google-hosted page". > > Note: The "Google-hosted page" option implements a search box that > puts results on a separate page hosted by Google. IMO this may be the > easiest way to get started immediately (with no changes to your > current site design). Later you can investigate the other results- > hosting options, and other considerations for search box > implementation. > > Click the "Save" button. Click the "Get Code" button to obtain search > box code that implements the results-hosting option you chose. Copy- > and-paste the search box code to a test page on your site. > > Initially the CSE may not produce results (your pages have not yet > been indexed). Next you'll need to create and submit a Sitemap, and > request On-Demand Indexing. > > . > > For information about Sitemaps, see: > > http://www.google.com/support/webmasters/bin/answer.py?answer=156184 > > In the simplest form a Sitemap can consist of a list of URLs in a text > file. For your immediate purposes that may be sufficient. (Later you > may want to investigate the advantages of the XML Sitemap protocol.) > > There are various software tools available to help create Sitemaps. > In this case, you may not get a complete Sitemap from a tool that > operates by following static links. (Some of your pages appear to be > linked primarily through menu-script code rather than static links.) > You can create your Sitemap manually instead. > > To create your Sitemap: > Create a text file named "sitemap.txt". In that file, list all of the > URLs of pages that are located within the "materials" section of your > site. (Also include the URLs of the PDF files located in that > section.) Enter one URL per line. > > For more information about the requirements for a Sitemap text file, > scroll-down the following page (skipping the XML example for now), and > read the applicable guidelines under the "Text file" bullet item. > > http://www.google.com/support/webmasters/bin/answer.py?answer=183668 > > Upload your completed "sitemap.txt" file to the following location on > your site: > > http://www.colonie.org/library/digitalLibrary/materials/sitemap.txt > > Next, go to the Webmaster Tools: > > https://www.google.com/webmasters/tools/ > > (You may be asked to sign-in again.) > Click the "Add a site" button, and enter the home URL of the part of > the web site that you manage: > > http://www.colonie.org/library/digitalLibrary/materials/ > > The "Verify ownership" page will appear. There you can verify your > ownership of your part of the site (in order to gain full access to > the Webmaster Tools). (Note: Keep the "Verify ownership" page open in > your web browser while you complete the next step.) > > The default "Verification method" uses a "Meta tag". Copy-and-paste > the provided meta-tag code into the <head> section of your > "index.html" page: > > http://www.colonie.org/library/digitalLibrary/materials/index.html > > After you've copied the meta-tag into the <head> section of that page, > return to the "Verify ownership" page and click the "Verify" button. > > After completing verification, you can submit your Sitemap. Return to > the Webmaster Tools home page: > > https://www.google.com/webmasters/tools/ > > Your site should be listed in blue text. (If it is listed in gray, > you haven't successfully completed the Verification step; try again.) > > Click your verified site's name, > to enter the Webmaster Tools "Dashboard". > Click "Site configuration" (in the left column). > Click "Sitemaps". Click the "Submit a Sitemap" button. > Enter the URL of your uploaded "sitemap.txt" file: > > http://www.colonie.org/library/digitalLibrary/materials/sitemap.txt > > Sitemap processing might take several minutes (delays vary). Reload > the Webmaster Tools "Sitemaps" page to check status. After successful > processing a green check-mark appears. > > . > > After your Sitemap has been processed, you can request On-Demand > Indexing for your Custom Search Engine. Return to your "My Search > Engines" page: > > http://www.google.com/cse/manage/all > > Click the "control panel" link. > Click "Indexing" (in the left column). > Your Sitemap should be listed under "Identified Sitemaps". > > Under "On-demand indexing using Sitemaps", click the "Select a > Sitemap" drop-down menu, and select your Sitemap's name from that > menu. (If the Sitemap is not listed in the menu, choose "Custom" and > enter the sitemap's URL.) Click the "Index Now" button. According to > documentation, on-demand indexing may take up to 24 hours to complete. > > http://www.google.com/support/customsearch/bin/answer.py?answer=115959 > > . > > Custom Search discussion forum: > > http://www.google.com/support/forum/p/customsearch/ > http://www.google.com/support/forum/p/customsearch/browse > > -- omr -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
