Hi

I suspect that the fast reverse index is attempting to index all serialised cts 
query elements that are saved into the database. This way it can support those 
fast reverse queries you might want to perform, and find the fragments 
containing the matching cts query.

Your serialised cts query has been modified to contain placeholders, and as 
such is no longer valid against the schema for cts query, or the expectations 
of the fast index. Could be that you simply cant fast index customised cts 
queries?

The standard reverse index seems to be more tolerant (and is slower), relying 
heavily upon filtering to remove the false positives. It may not run the same 
checks upon a save.

Hope this helps.
Regards
Gavin Haydon

Sent from my iPad

On 4 Jul 2014, at 20:30, "William Sawyer" 
<[email protected]<mailto:[email protected]>> wrote:

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]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general

This email is from the Press Association. For more information, see 
www.pressassociation.com. This email may contain confidential information. Only 
the addressee is permitted to read, copy, distribute or otherwise use this 
email or any attachments. If you have received it in error, please contact the 
sender immediately. Any opinion expressed in this email is personal to the 
sender and may not reflect the opinion of the Press Association. Any email 
reply to this address may be subject to interception or monitoring for 
operational reasons or for lawful business practices.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to