RTC Plain Java API search Work item by Description
![](http://jazz.net/_images/myphoto/886e2985f4caacd91af3750b712504e6.jpg)
Hi
What I am trying to do search work item by description .
I can search using tags,summary and type but I cant search using description or other terms.
The code i am using is listed below
IQueryableAttribute typeTag = QueryableAttributes.getFactory( IWorkItem.ITEM_TYPE).findAttribute(projectArea,
IWorkItem.TAGS_PROPERTY, auditableCommon, progressMonitor);
Expression tagExpression = new AttributeExpression(typeTag,AttributeOperation.CONTAINS,tagID);
typeinProjectArea.add(tagExpression);
resultsQuery= queryClient.getResolvedExpressionResults(projectArea, typeinProjectArea, IWorkItem.FULL_PROFILE);
Any kind of suggestion will be appreciated
Thanks
Kishan
What I am trying to do search work item by description .
I can search using tags,summary and type but I cant search using description or other terms.
The code i am using is listed below
IQueryableAttribute typeTag = QueryableAttributes.getFactory( IWorkItem.ITEM_TYPE).findAttribute(projectArea,
IWorkItem.TAGS_PROPERTY, auditableCommon, progressMonitor);
Expression tagExpression = new AttributeExpression(typeTag,AttributeOperation.CONTAINS,tagID);
typeinProjectArea.add(tagExpression);
resultsQuery= queryClient.getResolvedExpressionResults(projectArea, typeinProjectArea, IWorkItem.FULL_PROFILE);
Any kind of suggestion will be appreciated
Thanks
Kishan
One answer
![](http://jazz.net/_images/myphoto/886e2985f4caacd91af3750b712504e6.jpg)
thats because any of the 'LARGE' (string/html) fields do not support the 'contains' operation. They can only be searched using the text search functions (I've never used them myself)
Description is defined as LargeHTML type field
Description is defined as LargeHTML type field
Comments
![](http://jazz.net/_images/myphoto/886e2985f4caacd91af3750b712504e6.jpg)
Hi Sam,
where can I find more information regarding this .
I understood what you told but couldn't implement this so any suggestion would be great
Thanks
Kishan
![](http://jazz.net/_images/myphoto/d0f7b0b7bfc90721959d790b8a9bf79f.jpg)
see this topic
https://jazz.net/forum/questions/6526/jazz-full-text-search-api
he starting point for your task is probably:
com.ibm.team.fulltext.client.IFullTextClientLibrary
You can get the client library by using
ITeamRepository repository=...
IFullTextClientLibrary library= (IFullTextClientLibrary)
repository.getClientLibrary(IFullTextClientLibrary.class);
The JavaDoc for IFullTextClientLibrary contains further references.
I----------------
I don't see anything in the Javadoc for these functions