[MarkLogic Dev General] querying multiple words w/AND semantics
Mike Sokolov
sokolov at ifactory.com
Thu Sep 13 06:59:52 PDT 2007
(sorry if this came through multiple times - I had some trouble sending
from a different address)
It seems to me there's an odd asymmetry in the cts:query constructors.
You can write a query that finds documents containing some element that
matches all of a set of words (for example, where the title contains all
the
words in a query) using
cts:element-query(cts:and-query(($words))
but there is no analogous behavior for attributes or fields (eg no
cts:field-query or cts:attribute-query taking a query as an argument).
You can specify multiple words as arguments to field-query and
attribute-word-query (and element-word-query), but these all have OR
semantics, and in my case I'm interested in AND.
Does this reflect some deeper structure in Mark Logic or is it just a
gap in
the API?
More information about the General
mailing list