• Get the Flash Player to see the slideshow.
  • Categories

  • Authors

  • Great Quotes

    Do not worry about your difficulties in Mathematics. I can assure you mine are still greater. — Albert Einstein

Get in touch...

To have a chat about
your CMS needs...

Call us 0207 193 2014
or
Email us on

Archive for the ‘Search’ Category

Search Command Lines

Friday, December 5th, 2008

Below are useful Search Command Line tools.  They will help with managing the index and search servers

iwsrchgethome - Displays the location of the TeamSite Search home directory.
iwndxmgrfreeze - Freezes and unfreezes the index manager.
iwndxmgrstatus - Determines the current status of the index manager (active or frozen).
iwndxmgrstop - Shuts down the index manager.
iwndxstatus - Displays the index status for branches.
iwndxlistbr - Lists all the indexed branches.
iwdxpurgebr - Removes the index collection associated with the branch.
iwndxaddbr - Adds a branch to be indexed by the index manager.
iwndxrmbr - Removes a branch so it is no longer indexed by the index manager.
iwndxfreezebr - Freezes or unfreezes a branch that is being indexed by the index manager.
iwndxrefreshbr - Reindex the branch using either the bulk or incremental queue.
iwndxregsrchsvr - Register a search server with the index manager.
iwsrchndxstatus - Displays the index status for branches from the search server.
iwsrchquery - Returns the first page of the query output in XML format.
iwsrchgetpage - Displays a page of results from a previously performed query.
iwsrchmgrstop - Shuts down the search server.
iwsrchmgrping - Pings the search server.
iwsrchndxstatuschg - Notifies the search server of changes in the index manager status.
iwsrchattrib - Displays a list of field specifications for indexed attributes.

Installation Tips

Wednesday, December 3rd, 2008

From my experience there are a few things to bear in mind when installing Interwoven Software.  These include

  1. Always install your software as administrator or full root (for solaris/Linux).  In respects to root access it must be full root not any sppof such as sudo. At the lease su root would be acceptable.  There have been installs where I have seen the installer not correctly installing, after which issues later arise.  Another reason to install as full root or administrator is that Interwoven will only support the software if they are installed by these users.
  2. Always read the release notes, and ensure you fulfill the pre-requisites.
  3. When selecting the install path, don’t leave any spaces.  I like to install as below;
    C:/Interwoven/TeamSite or C:/Interwoven/MediaBin
  4. Keep a record of your actions whilst the install take place; will come in handy to document and to analyse any potential issues arising at a later date
  5. Follow up your installation by executing any actions that are required after the install

Search within a DCT/TeamSite template

Wednesday, December 3rd, 2008

Providing you have TeamSite installed along with TeamSite Search (Both in working order), you can configure TeamSite Search to search within a Data Capture Template (DCT)/ TeamSite template for a specified field

e.g. Organisation ID

The file you need to configure to allow this to happen is FieldMapping.xml, located in search-home/etc

An example of the code you would input here can be found below;

<templates>
<!– * Organisation ID * –>
<template>
<templateType>contactinformation/building</templateType>
<templatingFields>
<templatingField>
<xpath>/main/organisation</xpath>
<fieldSpecification>
<fieldName>OrganisationsID</fieldName>
<fieldType>string</fieldType>
<fieldStorage>zone:contact_info_Organisations_ID</fieldStorage>
</fieldSpecification>
</templatingField>
</templatingFields>
</template>
</templates>

For more information on how you would code this, please contact us and we can expand further on this article

Configure TeamSite & Search on separate Servers

Tuesday, December 2nd, 2008

If you have TeamSite or Search installed on seperate servers, you are required to make configuration changes on both servers, so that they communicate with each other.

On the TeamSite Server:

Browse to iw-home/cssdk/cssdk.cfg. Edit the following entries (near the bottom of the file) according to your Search Server

search.server.host: <Search Server Hostname>
search.server.port: 6720

On the TeamSite Search Server:

Browse to search-home/etc/search.properties. Edit the following entries according to your TeamSite Server

iw.teamsite.server.host=<TeamSite Server Hostname>
java.naming.provider.url=tcp://< TeamSite Server Hostname>:3035/

iw.index.agent.idxdir=C:/iw-index
iw.search.agent.idxdir=C:/iw-index

Enable Workarea Search

Monday, December 1st, 2008

By default TeamSite Search is not configured to index branches workareas.  To enable Search to index branch workareas, you need to edit the following file;

Search-home/etc/search.properties
(Note: Search-home is TeamSite Search Install Location)

Branches should be inputted as;

#####################################
# Indexing workarea modifications
# Control whether indexing of and searching across modifications in workareas
# of indexed branches is turned on or not.
iw.index.wamodifications.enable=true

# Control whether indexing the modifications of ALL the workareas of a branch
# at the time the branch is first indexed should be turned on or off (permissible
# values are none and all).
iw.index.wamodifications.branchcreation.default=all

# Control how often (in minutes) an attempt is made to index the modified files in the
# relevant workareas of all the relevant indexed branches.
iw.index.wamodifications.frequency=1

# Control after how much time (in hours) the collections of workarea modifications for a
# branch are considered too old and hence deleted and then re-indexed. Checked during
# index server startup only.
iw.index.wamodifications.deleteindexes=72
#####################################

Process of enabling workarea Search;

  1. Stop the TeamSite Search service
  2. Stop the TeamSite Search Index Service
  3. Edit the file mentioned above
  4. If the branch has been previously indexed, it would be recommended to deleted the previous index collection and let it re-index the branch again.  Index Collection location can be found in the file mentioned above; refer to iw.index.agent.idxdir=C:/Search-home/index
  5. Start the TeamSite Search Index Service
  6. Start the TeamSite Search Service

This will begin the indexing of workarea of the inputted branches in branches.cfg.  The process above applies to all operating systems.  To verify you should see a folder named WORKAREAINDX created in your Collections directory.

Configure Branches for TeamSite Search

Monday, December 1st, 2008

To index branches in TeamSite Search you need to edit the following file;

Search-home/etc/branches.cfg
(Note: Search-home is TeamSite Search Install Location)

Branches should be inputted as;

/default/main/branch1
/default/main/branch1/branch1a

Points to consider;
- If /default/main is not in use, it is not worth indexing
- You must input each and every branch you want to index including sub branches in the file individually

Process of indexing a branch;

  1. Stop the TeamSite Search service
  2. Stop the TeamSite Search Index Service
  3. Edit the file mentioned above
  4. Start the TeamSite Search Index Service
  5. Start the TeamSite Search Service

This will begin the indexing of staging area of the inputted branches in step 3.  To enable workarea search, please refer to enable workarea search post.  The process above applies to all operating systems