I am trying to save a serialized cts:query with placeholder values into a
document and it keeps throwing an XDMP-REVIDXBADQRY error.

Example.
<root-node>
    <query>
        <cts:and-query xmlns:cts="http://marklogic.com/cts";>
            <cts:element-attribute-value-query>
                <cts:element>node</cts:element>
                <cts:attribute>type</cts:attribute>
                <cts:text xml:lang="en"><variable name="type"/></cts:text>
                <cts:option>exact</cts:option>
            </cts:element-attribute-value-query>
            <cts:element-attribute-value-query>
                <cts:element xmlns:meta="http://test.com/meta
">meta:meta</cts:element>
                <cts:attribute>id</cts:attribute>
                <cts:text xml:lang="en"><variable name="id"/></cts:text>
                <cts:option>exact</cts:option>
            </cts:element-attribute-value-query>
        </cts:and-query>
    </query>
</root-node>

I found the document will save if I remove my placeholder elements.  Also
found if I turn off "fast reverse searches" index then it saves. I want to
be able to quickly replace any placeholder values and then pass it into
cts:query().  Is there a way to keep that index on and keep my placeholder
elements?

ML: 7.0-2.3

Thanks,
-Will
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to