[MarkLogic Dev General] RV: Problems with Fielded search in
lib-parser
Mariano Grau Calín
mgrau at grupojoly.com
Mon Apr 14 02:33:17 PDT 2008
Hello:
I'm trying to use fielded search and write in my config file this
<config xmlns="http://www.marklogic.com/ps/lib/lib-search/config" xmlns:lp="http://www.marklogic.com/ps/lib/lib-parser">
<search>
<lp:search-field-map>
<lp:mapping code="pub"><DIARIO/></lp:mapping>
</lp:search-field-map>
</search>
</config>
If run in cq this code
import module namespace lp='http://www.marklogic.com/ps/lib/lib-parser' at 'lib-parser.xqy'
let $query := lp:get-cts-query('pub:CADIZ gato')
return lp:serialize-cts-query($query)
I get
- <cts:query xmlns:cts="http://marklogic.com/cts">
- <cts:word-query weight="1">
gato
<cts:option>lang=es</cts:option>
</cts:word-query>
</cts:query>
where field DIARIO (pub) not is found
I'm not sure if use the correct functions. I'm new in lib-search and lib-parser and get to use features as date-field, sort and more, but fielded search not.
Sorry by my english
Mariano Grau
Dpto. Informática Grupo Joly
mgrau @ grupojoly.com
956 29 79 14
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20080414/f081de0b/attachment.html
More information about the General
mailing list