need help to get object properties in DFS search service
Hi all,
I am using DFS StructuredQuery to implement search
service.I can get some of the attributes of object like
object_name owner_name,a_content_type,r_source,r_modify_date using the propertyset.But i could not get many of the properties of object like
r_lock_owner,lock_date,a_category,r_full_content_size and many more.
How do i get those all
properties.
Any help…
Regards,
karthick s
Comments
-
Hey, Karthick. You get all these properties by passing an OperationsObject object to the execute method of the search service:
queryResult = searchServicePort.execute(query, execution, getSearchOptions());
Where the getSearchOptions() method looks like:
private OperationOptions getSearchOptions() {
OperationOptions options = new OperationOptions();
PropertyProfile profile = new PropertyProfile();
profile.setFilterMode(PropertyFilterMode.SPECIFIED_BY_INCLUDE);
List<![CDATA[<String>]]> includeProperties = profile.getIncludeProperties();
includeProperties.add("title");
includeProperties.add("object_name");
includeProperties.add("r_object_type");
includeProperties.add("r_lock_owner");
includeProperties.add("r_lock_date");
includeProperties.add("a_category");
includeProperties.add("r_full_content_size");
options.getProfiles().add(profile);
return options;
}
Let me know if this helps.
Dave
0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management