John-
The lib-parser example mapping element is configured to specify field-word
queries on a field called "weighted".

To use fields you sprecify, you create your own  mapping element:

declare namespace lp = "http://www.marklogic.com/ps/lib/lib-parser"; (:don't
forget namespace:)

<lp:search-field-map>
    <lp:mapping code="myField" field="fieldName"/>
  </lp:search-field-map>

The field attribute indicates the name of the field you created in the admin
interface.

You use this element with lib-search when you create your search-criteria
element.

Frank



On 7/9/08 11:49 PM, "John Craft" <[EMAIL PROTECTED]> wrote:

> I have created a field with appropriate includes and excludes, but I am
> having difficulty figuring out how to configure lib-search to search it.
> lib-search keeps wanting to build cts:word-query() constructors rather
> than a cts:field-word-query() constructor.  I have looked through the
> code and found the $SEARCH-FIELD-MAP in lib-parser.xqy but I'm not sure
> exactly how to use it.  The example in the documentation seems to
> indicate <lp:mapping /> is for searching specific elements.
> 
> Any insight you could share with lib-search and fields would be
> appreciated.
> 
> John Craft
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general


Frank Rubino
Mark Logic Corp.

862-596-3248
[EMAIL PROTECTED]
-- 


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

Reply via email to