Bug #1643
closedNeed pathexpr when search entire document
0%
Description
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
optional element).
So like this way:
querygroup operator="UNION">
<queryterm searchmode="contains" casesensitive="false">
<value>soil</value>
</queryterm>
</querygroup>
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
required.
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
need it).