It's all about the answers!

Ask a question

XML indexing not returning matches


JazzRUs Gogh (1061311) | asked Oct 25 '10, 3:28 p.m.
Hi,


Our RAM server is v7.2.0.1 Build...N2009_1211_2001, the ArtifactSearchResult.getMatches() was not returning any result but there indeed has matched result because it work just fine in v7.1.1.1.

We simply create new same assets that we have in v7.1.1.1 to v7.2.0.1, using the same index rules, using the same web client api (of course with v7.2.01 client library) but not getting any result (getMatches() return no string), but it work just fine in v7.1.1.1 (that is getMatches() did return some strings)

Note, did re-run the indexing a few times already, also AssetSearchResult.getMatchingArtifacts() did return some result, the problem is the getMatches() returned 0 result.

Any idea why, or any ifix or patches for this?

7 answers



permanent link
Sheehan Anderson (1.2k4) | answered Oct 27 '10, 10:03 a.m.
JAZZ DEVELOPER
Is this an API only issue? Are you able to search for XML artifacts from the RAM search page?

permanent link
JazzRUs Gogh (1061311) | answered Oct 27 '10, 10:40 a.m.
Is this an API only issue? Are you able to search for XML artifacts from the RAM search page?


I don't know. The RAM search page wouldn't show you the xml or xpath matches found., right?

permanent link
Sheehan Anderson (1.2k4) | answered Oct 27 '10, 2:07 p.m.
JAZZ DEVELOPER
The RAM search page will show XML matches. If you select 'Search within artifacts' and then search for XML using the syntax documented at http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/topic/com.ibm.ram.doc/topics/r_search_syntax.html under 'Searching within XML artifacts' you should see a next to some of your results. If you click the it will expand the result to show you the specific match in the XML document.

permanent link
JazzRUs Gogh (1061311) | answered Oct 27 '10, 5:53 p.m.
Hi,

Thanks for the info, yes it did show the matches on Web page. Those were the matches strings I was looking for, again in v7.1.1.1, I could get it thru the getMatches() but not in v7.2. Any idea what is the problem here?

permanent link
Sheehan Anderson (1.2k4) | answered Oct 28 '10, 5:07 p.m.
JAZZ DEVELOPER
In that case it seems to be a problem with the API, but we're not aware of any issues. Could you open a defect against RAM here
http://jazz.net/jazz02/web/projects/Rational%20Asset%20Manager#action=com.ibm.team.workitem.viewWelcome
and include both a sample XML document and a screenshot of your indexing rules so that we can reproduce the problem. Thanks.

permanent link
JazzRUs Gogh (1061311) | answered Oct 29 '10, 3:46 p.m.
Posted, WI 41397, hope to hear from some one soon!

permanent link
JazzRUs Gogh (1061311) | answered Oct 30 '10, 6:55 p.m.
Found out the problem, it seems like the syntax for the attribute has changed in v7.2, in v7.1.1.1, the syntax for an attribute ends with "()" but not in v7.2!!

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.