I'm looking for a way to do an equivalence search that is supported by the 
Search API.  I would also like this to work without having to filter my results 
(aka only use my indexes).  It seems co-occurrence is set up for this:

"""
Returns value co-occurrences (that is, pairs of values, both of which appear in 
the same fragment) from the specified element value lexicon(s). The values are 
returned as an XML element with two children, each child containing one of the 
co-occurring values.
"""

roughly:

    xs:QName("CONTROLSTRING") == xs:QName("AUDITSTRING")

the co-occurrence function seems to return the value of the QName and not the 
fragment.  Would I have to double query to get the fragment ID?

Here's a series of abbreviated values

frag:1 controlstring:ABC1234 auditstring:ZYX8989
frag:2 controlstring:ABC2345 auditstring:ABC2345
frag:3 controlstring:GHI3423 auditstring:GHI3423

I'd like to get back frag:2 and frag:3

Is equivalence searching possible in the Search API?  It doesn't seem so in 4.2 
nor in the docs I've seen for 5x.  Is there some other way to do this?

Thanks


bek
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to