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

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

Reply via email to