You can add different XML API parameters, in order to specify your search criteria. This will allow you to use different search operators, combining with AND, OR or NOT. Each criteria can be distinguished by using a number, in order to use multiple arguments. To specify this, you can use the following parameters:

Look for
Specifies the way the operators are defined.

  • allwords: Searches for items that contain all of the words in the Query. Example: Livelink AND Search
  • anywords: Searches for items that contain any or all of the words in the Query. Example: Livelink OR Search
  • exactphrase: Searches for items that match the exact expression entered in the Query.Example: “Livelink Search”
  • complexquery: Searches for items that satisfy a complex Query, constructed with Livelink Query Language (LQL), that precisely targets the data you want to retrieve
  • otstarts: Searches for items that match the specified date or date range

Modifier
Defines the type of search to perform.

  • synonymsof: Searches for items that contain thesaurus entries that are associated with the specified query expression
  • relatedto: Searches for items containing words that are derived from the stem form of the specified term or terms
  • soundslike: Searches for items containing words that sound like the specified term or terms
  • wordbeginswith: Searches for items that contain words whose prefixes match the specified query expression
  • wordendswith: Searches for items that contain words whose suffixes match the specified query expression

Within
Specifies whether the Query includes the contents, the metadata, or both for Livelink items.

  • all: Searches for the specified terms in both the content and the metadata of the indexed items. This is the default parameter when the within parameter is not specified
  • content: Searches for the specified terms in the contents of the indexed items
  • metadata: Searches for the specified terms in the metadata of the indexed items

Boolean
Defines the relationship of the search terms specified by two where clauses.

  • or: Searches for items that contain either of the expressions entered in the Query. This is the default value, used if no boolean parameter is specified in the URL
  • and: Searches for items that contain all specified query expressions
  • not: Searches for items that contain the first expression in the Query, but that do not contain the second expression

Combining the parameters

Adding a number to the parameters will define the clauses that are to be used. These clauses are separated by the different booleans.

Example 1:

func=search&where1=Livelink&boolean2=or&where2=Search

will result in:

Example 2:

func=search&where1=Livelink&boolean2=and&where2=Search

will result in:

Example 3:

func=search&where1=Livelink&boolean2=not&where2=Search

will result in:

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Twitter