Need pathexpr when search entire document
In Metacat, if a user try to search a value in entire document rather than a
sepecific path, in path query the user should remove pathexpr( pathexpr is
So like this way:
<queryterm searchmode="contains" casesensitive="false">
This quey will search any path which's value matches "soil" in document.
But in our ecogrid query, concept element which is equevalent to pathexpr is
So if a ecogrid query try to search a entire document, it should have a
concept(e.g., "/" ). But Metacat couldn't undstand it now.
So probably we can make metacat understand "/"( the root element) as pathexpr
means search entire document. Also we still need to keep the feature that if no
pathexpr in query, metacat will search entire document too(This feature morpho
#1 Updated by Matt Jones over 14 years ago
I don't think we should change metacat, but rather change our ecogrid wrapper.
When EcoGrid translates its query, check if the path is "/" and if it is then
omit the pathexpr altogether. I'm going to move this bug to be a SEEK Ecogrid
bug instead of a metacat bug.