Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search XML API + Custom Categories

Status
Not open for further replies.

oscript

Programmer
Mar 25, 2003
63
GB
I am attempting to perform a search using the Livelink Search XML API and experiencing some trouble. I would be grateful for any help.



When constructing the query using the Advanced search page things work well.

The Category SOMEObjectData has a number of attributes – the one that I am interested in is the ‘Status’. I want to be able to reproduce this query using the Search XML API and wondered if you could help ? I imagined that it would be something like:


func=search&lookfor1=complexquery&where1=(Attr_46062_9 : "Authorised" | "Assessment")

Although this “works” (not malformed) it brings back more records than I expect !

Any help greatly appreciated.
 
The query get malformed, it is all in the brackets :) I believe the query you are intending is the following:

func=search&lookfor1=complexquery&where1=(Attr_46062_9 : ("Authorised" | "Assessment"))

The query you posted would expand out to only the word "Authorised" being part of the region definition. The word "Assessment" would then be seen as a simply another term.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top