It's all about the answers!

Ask a question

Wildcard search in RTC 6.X?


Dinyo Dinev (311034) | asked Sep 25 '15, 8:07 a.m.
edited Sep 28 '15, 4:03 a.m.
Hi,I want to make wildcard search in RTC I tried
https://10.0.2.79:9443/ccm/oslc/contexts/_moQdkFrdEeWQIIEAtKgWEg/workitems?oslc.where=*="foo"

But I receive 400
 <rdf:Description rdf:nodeID="A0">
        <oslc:message>Unknown attribute id: [*]</oslc:message>
        <oslc:statusCode>400</oslc:statusCode>
        <rdf:type rdf:resource="http://open-services.net/ns/core#Error"/>
    </rdf:Description>
how can I make wildcard search in RTC on a specific attribute, or * attributes? Are there any examples?

2 answers



permanent link
Donald Nong (14.5k414) | answered Sep 28 '15, 11:06 p.m.
Your best bet is full text search by using oslc.searchTerms. But as discussed in some old posts, you cannot specify which attribute contains the text you are searching.
https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Query_Capabilities

Comments
Dinyo Dinev commented Sep 29 '15, 3:05 a.m.

@Donald Nong, I thought that wildcard search by attribute is not allowed only in RDNG, not in all OSLC 2.0 compliant products. So only searchTerm is the nearest solution to wjhat I am searching for?  I saw posts like this:
https://jazz.net/forum/questions/83614/using-wildcard-in-rest-url-queries

where one of the jazz.net moderators said that is possible but for 3.X version.

Note, the wildcard is only supported in oslc.where for the property (or identifier) of the term.  For example:
?oslc.where=*="foo"


Donald Nong commented Oct 05 '15, 10:55 p.m.

If you read Paul's post carefully, he said "wildcard is only supported in oslc.where for the property (or identifier) of the term", which basically means that you can use "*" to substitute "all attributes". Essentially, this is no different to using "oslc.searchTerms" as full text search will be applied to all text-based attributes anyway.
When I saw "wildcard search", I naturally thought that you wanted to apply the wildcard to the value of the search term (right hand side of the equal sign). In the sample that you linked above, the "wildcard" was applied on the left hand side of the equal sign.


permanent link
Simon Washbrook (67216) | answered Sep 25 '15, 8:25 a.m.
Hi Dinyo,

Search for "Using the query capabilities" in the following page. There are lots of examples that should help you to find what you need:

Using OSLC capabilities in the Requirements Management application
https://jazz.net/library/article/1197

Enjoy,
Simon

Comments
Dinyo Dinev commented Sep 25 '15, 8:30 a.m.

I know these examples but they are for DOORS Next Generation 4.0.1 and do not show wildcard search capabilities.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.