Hi Colleen, Thanks, that sure clears things up. :)
- Danny On Thu, Apr 19, 2012 at 12:12 PM, Colleen Whitney < [email protected]> wrote: > A word constraint maps to word queries; a value constraint maps to value > queries. > > Here's a simple example: > > <doc> > <title>The Cat in the Hat</title> > </doc> > > If you create two constraints, a word constraint named "intitle" > (specifying element title) and a value constraint "title" (specifying the > same element, title), then if you query for intitle:Cat, you'll get a > match; but to get a match using the value constraint, you'd have to query > for title:"The Cat in the Hat". So you choose based on the kind of query > you want to do. > > Does that help? > ________________________________________ > From: [email protected] [ > [email protected]] On Behalf Of Danny Sinang [ > [email protected]] > Sent: Thursday, April 19, 2012 9:09 AM > To: general > Subject: [MarkLogic Dev General] Difference between word and value > constraints in search:search ? > > Hello, > > What's the difference between a word constraint and a value constraint in > search:search ? When should I choose one over the other ? > > Regards, > Danny > > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
