Tips for using Portal Search
Content Model has only one search collection
At this time the Content Model Search Service has only one search collection. This search collection is provided with the installation by default. We cannot modify this default Content Model search collection or create additional search collections under the Content Model Search Service. The content model search service is listed because we can include it in scopes.
Users cannot see portal site search results in their preferred language
If the preferred language of the crawler user ID does not match the language of the search collection, users might not see search results in their language. Therefore, set the preferred language of the portal site crawler user ID to match the language of the portal site search collection that it crawls. If you do this after you started a crawl on the portal site search collection, you need to reset the portal site collection. Refer to Reset the default search collection.
If the portal site is multilingual and the users use different languages to search WebSphere Portal, set the portal site collections up as described under Crawl a multilingual portal site.
Use the Search Center with external search services with different languages
To use external search services such as Google and Yahoo! with an English search keyword, a URL such as the sample URL mentioned in the Search Center portlet help for configuring the portlet works fine as is: http://www.google.com/search?q= . However, if you search in other languages, consult the documentation of the remote search service that we use to ensure that the web interface is set up and used appropriately for the languagthat we use for your search. This can avoid problems with the displayed results, depending on the combination of languages set for WebSphere Portal, the browser, and the search.
How Portal Search handles special characters when indexing
Portal Search indexes words that are composed of consecutive literalso that is letters, digits, and special characters., including the following characters:
- The hash or pound sign ( # ).
- The percent sign ( % ).
- The plus sign ( + ).
- The asterisk ( * ).
During indexing special characters are handled as follows:
- Blank or white space; this includes the tab
- Blanks separate words and are not indexed. Example: The string key board is indexed as two separate words key and board .
- Line break or new line
- Line breaks separate words and are not indexed unless they are preceded by a dash ( - ). Examples:
- The string
key
...is indexed as two separate words key and board .
board
- The string
key-
board...is indexed as one word keyboard.
- Dot or sentence end period ( . ) and comma ( , )
- Dots and commas separate words and are not indexed, unless they are both preceded and followed by a letter or digit. Example: The string www.ibm.com is indexed as www.ibm.com and not as three separate words.
- Question mark ( ? ) and exclamation mark ( ! )
- Question marks and exclamation marks separate words and are not indexed unless they are followed by a letter.
- Other punctuation: ( ) { } [ ] < > ; : / \ | " _ -
- These characters separate words and are not indexed.
- Other characters
- All other characters are removed from the strings in which they appear but do not separate words.
- All characters that split words are discarded during indexing and searching.
- The previous statements apply to indexing. However, in a search query all characters that can be part of the search syntax are treated is that capacity and not as part of the search query. These are the plus ( + ) and minus ( - ) signs, double quotation marks ( " ), and the asterisk wild card character ( * ). If users want to include such characters in their search query, they must enclose them in double quotation marks.
For example "+hello" searches for the string +hello; "*Hello*" searches for the string *Hello*.
- The less than ( < ) and greater than ( > ) symbols are special HTML characters that Search cannot handle.
Time required for crawls and imports and availability of documents
The following search administration tasks can require extended periods of time:
- Crawl a content source.
During the crawl documents might not be immediately available for searching or browsing.
- Indexing the documents fetched by a crawl.
When a crawl has been complete and all documents have been collected, building the index takes some more time.
- Import a search collection.
When you import data to a collection, it can take some time until the content sources for the collection are shown in the Content Sources in Collection box and the documents of the imported collection are available for crawling.
These tasks are put in a queue. It might therefore take several minutes until they are executed and the respective time counters start, for example, the crawl Run time and the timeout for the crawl set by the option Stop collecting after (minutes): . The time required for these tasks is further influenced by the following factors:
- The number of documents in the content source that is being crawled
- The size of the documents in the content source that is being crawled
- Speed and availability of the processors, hard drive storage systems, and network connection.
- The value selected from the Stop collecting after (minutes): drop-down menu when createdd or edited the content source.
Therefore both the time limito that we can specify and the timethat are shown for these processes work as approximate time limits. This applies, for example, to the following scenarios:
- When you start a crawl by selecting a content source in the Content Sources in Collection box and clicking Start collecting.
- When you import a search collection and when you start a crawl on the imported search collection.
- When an installation is complete and you initialize the pre-configured portal site collection by selecting the portal site content source and clicking Start collecting.
- The time shown under Last update completed in the collection status information is later than we might assume by just adding the crawler time limit specified by Stop collecting after (minutes): to the crawling start time. This delay is caused by the additional time required by building the index.
Furthermore, this influences other status indicaters given in the Manage Search portlet.
For example, the number of documents shown for a content source can show with an unexpectedly low figure or even at zero ( 0 ) until the crawl on that content source has been completed.
Memory required for crawls
Depending on the Portal Search environment, crawling can require large amounts of memory. Therefore, before you start a crawl, make sure that WebSphere Portal has enough free memory. Memory shortage can cause a corrupted search collection and eventually lead to a system freeze.
To resolve this problem, raise the limit to the number of open files using the ulimit command as root administrator.
Due to the resources needed for a crawl and index, IBM recommends that you schedule crawls to occur when user activity is relatively low.
Crawl a portal site for the first time can result in a message
When you start the crawl on a portal site for the first time, this can result in the following message:
EJPJP0009E: Wrong root url for Portal site crawler: https://root_url
We can ignore this message. The crawl runs correctly.
To resolve this problem, edit the content source, select the General Parameters tab, and the set the parameter Stop fetching documents after (seconds): to a value of 90 seconds.
Uninstall WebSphere Portal does not delete search collections
When you uninstall WebSphere Portal, the directories and files for the search collections are not deleted. Therefore, before you uninstall WebSphere Portal, delete all search collections by selecting the collections individually and clicking the option Delete Collection. If you do not do this, these files and directories remain on the hard drive. To delete the search collection data after uninstalling WebSphere Portal, you need to do this manually. The directory path of a search collection is determined by what you typed in the field Location of Collection when createdd the search collection. We can look up the collection location by performing the following steps:
- Select Administration > Search Administration > Manage Search > Search Collections.
- Select the collection from the Search Collections box.
- The collection location is shown in the list under Search collection status information.
HTTP crawler does not support JavaScript
The HTTP crawler of the Portal Search Service does not support JavaScript. Therefore some text of web documents might not be accessible for search by users. This depends on how the text is prepared for presentation in the browser. Specifically text generated by JavaScript might or might not be available for search.
UNIX operating systems might require higher limit of open files for Portal Search to work properly
The limit for the number of open files in a UNIX operating system might be too low for Portal Search to work properly. This might result in a Portlet Unavailable error. To resolve this problem and allow a higher number of files to be handled, raise the limit to the number of open files by issuing the following command as root administrator:
ulimit -n 4096
Create the portal site search collection fails
Problem: If the file path length for the location of search collections exceeds its limit, the collection cannot be created. This can occur particularly when the portal site collection is created under UNIX operating systems.
Cause:
The file path length for the portal search collection is limited to 118 characters. If this limit is exceeded, the default collection cannot be created. The following items contribute to the length of the file path:
- The installation directory path. Under UNIX operating systems the installation directory path name can be longer than under other operating systems.
- By default, the search collection for the portal site content is created under the path your_portal_install_directory/PortalServer/collections.
- The name of the virtual portal.
- The name of the search collection.
Solution: Proceed as follows:
- Change the default directory location for the portal site search collection to a shorter path, so that the complete path and file name does not exceed a length of 118 characters. For details about how to do this refer to Configure the default location for search collections.
- Re-create the portal site search collection. For details about how to do this refer to Reset the default search collection.
Search collections unavailable in cluster if failover occurs
Problem: If a cluster member in a cluster fails, users who were using the affected cluster member when the failover occurred can no longer access search collections. This can occur with horizontal scaling when a node fails or with vertical scaling when a particular cluster member fails.
Solution: Users who are logged into the cluster member that failed must log out of WebSphere Portal and then log back in before they will be able to access search collections again.
Search can return documents based on metadata
Search can return documents based on metadata of these documents, not just on words found in the fields or actual text of the document. It might appear to Portal Search users that their searches return documents which do not appear to match the search criteria.
Cause: Metadata for documents is also indexed for search. Therefore if the metadata of documents matched the search criteria, these documents are also returned as results for the search.
Solution: This works as designed and is usually considered to be of benefit.
Documents from deleted content source can remain available under scope
If you delete a content source, the documents collected from the content source will remain available for search by users under all scopes which included the content source before it was deleted.
Cause: These documents will be available until their expiration time ends.
Solution: We can specify the expiration time under Links expire after (days): under General Parameters when created the content source.
Portal Search portlets are not compatible with WSRP
The Portal Search portlets cannot be provided as WSRP services, as some additional and more advanced WebSphere Portal concepts and features are not reflected by the current WSRP standard yet, including the Portal Search portlets Manage Search and the Search Center.
Default Portal Search Service and its collections show in the portal default language
The search administration portlet Manage Search lists the Default Portal Search Service and its collection Portal Content or other collections in the default portal language and not in the languagthat the user has selected as preferred language for the portal or set in the browser.
For example, if the portal default language is set to English and the user has selected German as the preferred portal language or has set the browser language to German, the Default Portal Search Service and its collections show in English.
On IBM i set USER.REGION variable
For IBM i only: Portal search collections might fail to collect documents. In this case the logs will provide the following or similar information:
[8/24/08 23:19:47:164 EDT] 000000cd ServletWrappe E Uncaught init() exception thrown by servlet SearchSeedlistServletSecured [8/24/08 23:19:47:175 EDT] 000000cd ServletWrappe E Deregister the mbean because of uncaught init() exception thrown by servlet SearchSeedlistServletSecured: javax.servlet.ServletException: Could not load resource bundle nls.SeedlistServletMessages using locale en_${USER.REGION} - Java Exception Message: java.util.MissingResourceException: Can't find bundle for base name nls.SeedlistServletMessages, locale en_${USER.REGION}Solution: In order for portal collections to work on a IBM i system, set the system variable USER.REGION.
Virtual portals have separate search services and collections
Search services and search collections are separate for individual virtual portals and are not shared between individual virtual portals. Set up separate search services and separate search collections for each individual virtual portal. These collections can be used to crawl and search the same set of documents.
Parent: Portal Search
Related: Reset the default search collection
Crawl a multilingual portal site
Configure the default location for search collections