Does anyone know if its possible to return custom attributes and categories as a part of the search results?
Hi, Michael.
Yes. The attributes have to have their "show in search" checkbox checked and the corresponding regions have to be marked as displayable. You can include the regions in the ResultTransformationSpec to have them included in the results.
Thanks,
Scott
Thanks Scott.
Following up from that, a couple of other questions:
1). In order to check the 'show in search' box, where would I need to go? (I don't have admin priviledges and hence don't know the exact location where I could achieve this)
2). When specifying the region in the ResultTransformationSpec, would I allude to the region as such: "Attr_CatId_XX"?
The show in search checkbox is part of the attribute definition itself. If you edit the category and click on an attribute you should see if. I'm not sure how much you'll be able to do without admin privileges, but I think if you can see the region then it's probably already checked. I believe the default value for that checkbox is checked, but I'm not sure.
You're right, the regions will be like Attr_####_##.
Thanks Scott, I'll give this a shot.
Dear Scott,
It turns out that I can search using my custom attributes, however I don't get them back in the resultset. For example I have the following set but the custom attribute doesn't seem to be included in the resultset:
query.ResultTransformationSpec = new string[] { "Score", "OTName", "OTLocation", "OTDataID", "OTSubType", "OTMIMEType", "Attr_17887642_3" };
Hi Michael,
Try doing a search for Attr_17887642_3:*in the GUI.
If you get no results, then there’sno data stored for that region in the index.
If the “Show in Search”checkbox was not checked off when the items were initially indexed, then thecategory attribute data was not stored in the index.
If you’ve just enabled thatcheckbox, you will need to poke items with that category applied to have themreindexed (i.e., change some piece of metadata like the description, name,etc.)
-- Kyle
Hi Kyle,
I have documents with that particular category (and attributes) indexed. In fact I get them through the search result of EWS as well. However, I can't get the custom attibute to be returned as a part of the result-set.
Can you double check to see if thatcategory attribute is “displayable”?
I know you don’t have admin accessto do that easily, but you can check in the GUI by going to Advanced Search andchecking the Display Options to see if your attribute appears in thedisplayable list at the bottom of the page.
If it’s not displayable, it won’tbe returned.
From: eLink Entry:Enterprise Web Services 9.7.1 Forum[mailto:otdnenterprisewebservices971forum@elinkkc.opentext.com] Sent: Thursday, May 27, 2010 10:24AMTo: eLink RecipientSubject: RE Can the SearchServicereturn custom metadata? 2
RE Can the SearchService return custom metadata? 2
Posted by m.grantham@iaea.org (Grantham, Michael) On 2010/05/27 10:21
[To post a comment, use the normal reply function]
Topic:
Can the SearchService return custom metadata?
Forum:
Enterprise Web Services 9.7.1 Forum
Livelink Server:
knowledge-wlweb01
I was able to mark attributes (only some, see following question) and retrieve them through the search result.
However, for some reason I don't see all my custom attributes on the admin page which allows the configuration of these attributes. I know this is not related to EWS, but would appreciate some help.
Moreover, if I want to check if some date attribute (e.g. Attr_1234_1) lies within a specific date range, how would I construct the where clause?