Clicking Ok adds the resources to the source

Click on Search Management in the breadcrumb trail to return to the Search Management screen, where we will continue looking at the Search Indexes list. Next to the button that launched the Assign index sources screen, there is a blue circle button with a white X. Clicking this will delete the index. The next button, an arrow wrapped in a circle on a blue circle, is the button for rebuilding an index. Since we just created this index, it is a good idea to run the rebuild right now. Once you have pressed the button, you will be prompted to confirm your choice. If you click Ok, the search index will be rebuilt. This can take a long time. Once it is complete, you will get a report of the files indexed. Clicking Ok will take you to the Index overview screen for the rebuilt index. This page displays information about this index. All of the functionality available on this screen is also available on the Search Management screen. (You can get to the Index overview screen from the Search Management screen by clicking on the name of the desired index.) Click on Search Management in the breadcrumb trail at the top of the screen.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Low Cost Web Hosting services

Clicking Ok adds the resources to the source

Managing Search Indexes We will now look at the Search Indexes list at the bottom of the Search Management screen. Previously, we created a new index called Playground. It should be displayed at the top of the Search Indexes list. At the beginning of each entry in this list, there are four buttons. The first, a blue expanding folder, loads the Edit screen for the index. There you can change the rebuild mode, the locale, and the project for that index. (We set these when we created the new index.) The second button, a green book in front of a blue expanding folder, loads the Assign index sources screen. This screen allows us to specify which sources to use with this index. To add the Playground Source source that we created earlier, we can select it from the list on the right and click the Add index sources button. This will add the item to the Index sources list, which indicates that this index is now using our new source.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Low Cost Web Hosting services

Clicking Ok adds the resources to the source

Clicking Ok adds the resources to the source and returns you to the View index source screen. Clicking the third button at the beginning of an entry in the Index sources list, a white page behind a green book, loads the Assign document types screen. We have seen that it is possible to specify exactly which types of documents are indexed. That is done here. Using this interface you can set which types of documents will be indexed in this source. Usually, you will want at least HTML pages and generic documents to be indexed. To add new types, check the desired boxes in the Document types available section and then click the Add document types button. The types will then show up in the Document types section. (generic, html, and text are shown in the screenshot above.) These document types will now be indexed. Click View index sources in the breadcrumb trail at the top of the screen to return to the View index sources screen. The last of the four buttons in an entry in the Index sources section of this screen is a white X on a blue circle. Clicking this will delete the source. After the buttons is the name of the index source. If you click on this, OpenCms will display an overview of the index source settings for that source. At this point we have looked at all of the index source tools. Now click on the Search Management item in the breadcrumb trail, and we will look at the rest of the search tools.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Low Cost Web Hosting services

The search technology included with OpenCms relies upon

Put a descriptive, human-readable name in the Name field. The second field, Indexer, is a drop-down list. By default, it has only one entry, org.opencms.search.CmsVfsIndexer. This is the name of the java object that will do the actual indexing. Developers can create their own custom indexers if they need, but most of the time the CmsVfsIndexer is sufficient. Clicking Ok will create the new index source and return you to the View index sources screen. Now our new index shows up in the Index sources list at the bottom of the page. At the beginning of the line for our new Playground Source entry, there are four buttons. The first button, a green book in front of a blue folder, loads the Edit index source screen, which allows you to change the indexer (which we set when we created the source). The second button, a yellow folder behind a green book, loads the Assign resources screen. With this tool, we can specify which areas of the VFS this source will index. For our current project, we just want to add one directory, /sites/default/playground, but you can add as many resources as you want. (When a folder is added to a source, all of its subfolders are also automatically indexed.)

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Low Cost Web Hosting services

The search technology included with OpenCms relies upon

Clicking Ok will create the index and return you to the Search Management screen. You will now see the new index listed in the Search Indexes section. Index Sources An index can contain information about different areas of the VFS and also about different types of files. Clicking on the View index sources button will take you to the main management interface for overseeing the sources. At the top of the View index sources screen is the Index source actions section, which has one button, New index source. In the Index sources section there is a list of all the currently configured index sources. By default, there are two pre-configured sources, Source1, which indexes all files of all types in the /sites/default folder, and Source2, which indexes the German-language help information. Source1 is used by both the Online and Offline search indexes, and Source2 is used by the German online help search index. We will create a custom index to index just the /playground folder by clicking on the New index source button in the Index source actions section.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Low Cost Web Hosting services

The search technology included with OpenCms relies upon

The search technology included with OpenCms relies upon the Lucene search engine library, an advanced java library for efficiently searching large numbers of documents. Lucene is Open Source software maintained by the Apache Foundation. This search engine can be found at http://lucene.apache.org. The tools accessed from the Search Management screen provide functions for managing your search indexes and for running test searches. Creating an Index Most of the time, the built-in indexes will be sufficient, but you may sometimes want to create a separate index. For example, you may want to search only a selected area of your site. You can create a new index using the New Index screen. We will create a new index for searching in the /playground folder only. The Name field should contain a descriptive name of the index’s contents. The Rebuild Mode drop-down list has two options, Auto and Manual. If it is set to Auto, OpenCms will rebuild the search index as needed. If it is set to Manual, then we will need to run the index rebuild by hand. (We will discuss this below.) Usually, Auto is what you want. You can use the Locale drop-down list to select which language to index. You can only use one language in each index, so if you desire multiple language support, you will need to create multiple indexes. The Project drop-down list determines which project will be indexed. If this is set to Online, the index will only search (and therefore only return hits for) published documents. If site visitors are going to use this search index, you want to use this option. If you set this to Offline or to another custom project, OpenCms will build an index against the unpublished files in the VFS. You should not allow site visitors to use this index.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Low Cost Web Hosting services

The drop-down list at the top of the

Searches and Indexes OpenCms comes with a built-in search engine. The Search Management screen is used to access tools that tune this search engine. The Search Management screen is divided into two sections. The top section, Index actions, is used to access tools for managing the search engine’s index files. The bottom section, Search Indexes, lists the existing indexes. There are two buttons in the Index actions section, New Index and View index Sources. Before explaining these tools, we will see briefly how searching works in OpenCms. The most efficient search engines read through a collection of data (such as a website or a group of documents) and create a special catalog of all of the words in the collection and which documents these words appear in. This catalog is called an index because it performs a similar task to the index in the back of a book it correlates a word to the locations where it appears. More advanced search engines, such as the one in OpenCms, store additional information such as how many times a word appears in a document and where in the document the word appears. The search engine can use this additional information to return an ordered list of documents with the best matches first. Once a search engine has an index, it can perform searches. When a request comes in for a new search, the search engine breaks down the terms in the search request, examines the indexes, and returns a list of matching documents.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Low Cost Web Hosting services

The drop-down list at the top of the

While the other screens differ in minor details (namely, in what information they show in the previews), they function in almost exactly the same way as the Image Galleries screen. What are the other galleries for? Here’s a brief explanation of each: Download galleries are used to store binary files, such as word processor documents, PDF files, or programs, that visitors can download to their local computers. HTML galleries provide a place to store snippets of useful HTML code that editors can share and reuse. External link galleries are for storing links to external websites. Using one of these galleries saves you having to retype long URLs every time you want to create a link, with the additional advantage that OpenCms automatically verifies the connection and warns you if the link goes bad. Table galleries are used to keep a stock selection of HTML tables to use in different documents. We will now move on to the Search Management screen.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Low Cost Web Hosting services

The drop-down list at the top of the

The drop-down list at the top of the gallery displays the name and path of the current gallery, and you can click on it to choose a different gallery. Beneath this drop-down list are the button for uploading new images into the gallery and the search input box (for searching within the gallery). Beneath that is a list of all of the images in the gallery. This gallery, the playground gallery, has only one image. Clicking the image in the list will display it in the image viewer. When an image is loaded in the image viewer, a small toolbar will also be loaded, giving you the option to publish the image (button with two arrows), delete the image (button with red X) or change the name of the image (input box and green pencil button). You can upload new images to a gallery from within the image gallery viewer. To do so, click on the Upload new file button (an orange arrow pointing down at a gray box) located just beneath the gallery drop-down list at the top. You will be prompted to select the image file that you want to upload to the server from your local file system. Underneath the Name field there is a checkbox called unzip file. If you are uploading a ZIP file containing one or more images, you should check this box. If you have a large number of images to upload, you may find it convenient to add them all to one ZIP archive and then upload the archive file. OpenCms will unzip the file and add all the images to the current gallery. You will not be prompted to edit the properties of each file. Click the Next button to continue. From here, OpenCms will take you through the file creation wizard that we examined in Chapter 3. Once you have edited the file’s properties, you will be returned to the gallery manager, and the new image(s) will appear in the manager’s file list.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Low Cost Web Hosting services

External Link Validation The External Link Validation screen

Clicking on the Image Galleries button will bring up an explorer-like view of all of the image galleries in the site. The main difference between this view and the standard explorer view is that this view collects and presents information on all of the image galleries in the site. This is reflected in the information displayed in the Name column. Here, the path (relative to the site /default/site in this case) is displayed instead of just the name of the file. As in the explorer view, clicking on a gallery’s icon will bring up a context menu for that gallery. Clicking on the Open gallery button will open a window with the gallery viewer.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Discount Web Hosting services