You want to say me is better to use Search API in ML 4.1 than lib-search 3.2?
 
I see last version lib-search is 3.2 2008-05-13.1. Is compatible this version 
with ML 4.1?
 
For an easier migration I would like to use lib-search in 4.1 but I'll try the 
new search api.
 
Thanks,
 
Mariano Grau
Dpto. Sistemas
Grupo Joly
 

________________________________

De: [email protected] en nombre de Justin Makeig
Enviado el: dom 13/12/2009 0:03
Para: General Mark Logic Developer Discussion
Asunto: Re: [MarkLogic Dev General] RE: To convert xpath queryinlib-searchquery


Mariano, 
As a lib-search user, I think you'll find the new Search API both familiar and 
more powerful. I'd encourage you to try out MarkLogic Server 4.1-4 
<http://developer.marklogic.com/download/>. As you experiment, please feel free 
to share any questions with the list or contact me directly.

Justin


Justin Makeig
Product Manager
Mark Logic Corporation
999 Skyway Road
Suite 200
San Carlos, CA 94070
+1 650 655 2387 Phone
[email protected]
www.marklogic.com <http://www.marklogic.com/>  <http://www.marklogic.com/> 
<http://www.marklogic.com/>  
This e-mail and any accompanying attachments are confidential. The information 
is intended solely for the use of the individual to whom it is addressed. Any 
review, disclosure, copying, distribution, or use of this e-mail communication 
by others is strictly prohibited. If you are not the intended recipient, please 
notify us immediately by returning this message to the sender and delete all 
copies.  Thank you for your cooperation. 

On Dec 12, 2009, at 2:43 PM, Mariano Grau Calín wrote:


        Thanks.
        
        I have not found this feature in MarkLogic 3.2
        I supose it was in last version. I'll migrate soon.
        
        
        
        Mariano Grau
        Dpto. Sistemas
        Grupo Joly
        
        
        
        -----Original Message-----
        From: [email protected] on behalf of Geert Josten
        Sent: Sat 12/12/2009 13:42
        To: General Mark Logic Developer Discussion
        Subject: RE: [MarkLogic Dev General] RE: To convert xpath query 
inlib-searchquery
        
        O wait, you really mean lib-search, right?
        
        In that case you are looking for the search:search-path element which 
you should add to your search-criteria.
        
        I was referring to an option of the new search:search function 
(described here: 
http://developer.marklogic.com/pubs/4.1/apidocs/SearchAPI.html#search:search). 
It is part of the new Search library, which became available with MarkLogic 
Server 4.1..
        
        In both cases the result is more or less that the underlying cts:search 
call is given a searchable xpath expression, instead of defaulting to doc() or 
collection().
        
        HTH!
        
        Kind regards,
        Geert
        
        

                -----Original Message-----
                

                From: [email protected]
                

                [mailto:[email protected]] On Behalf Of
                

                Mariano Grau Calín
                

                Sent: zaterdag 12 december 2009 11:48
                

                To: General Mark Logic Developer Discussion
                

                Subject: RE: [MarkLogic Dev General] RE: To convert xpath
                

                query in lib-searchquery
                


                Thanks a lot.
                


                But you could say me how must be lib-search query then?
                


                I have never use <searchable-expression> in lib-search.
                



                Mariano Grau
                

                Dpto. Sistemas
                

                Grupo Joly
                



                ________________________________
                


                De: [email protected] en nombre de
                

                Geert Josten Enviado el: sáb 12/12/2009 11:25
                

                Para: General Mark Logic Developer Discussion
                

                Asunto: [MarkLogic Dev General] RE: To convert xpath query in
                

                lib-searchquery
                




                Hi Mariano,
                


                Your Xpath expression constrains the tests to the same pub
                

                element, but making that the context. But your search is
                

                operating on complete documents. If you add the path to your
                

                pub elements as <searchable-expression> among the options,
                

                your returned results should improve..
                


                Kind regards,
                

                Geert
                





                Drs. G.P.H. Josten
                

                Consultant
                



                http://www.daidalos.nl/
                

                Daidalos BV
                

                Source of Innovation
                

                Hoekeindsehof 1-4
                

                2665 JZ Bleiswijk
                

                Tel.: +31 (0) 10 850 1200
                

                Fax: +31 (0) 10 850 1199
                

                http://www.daidalos.nl/
                

                KvK 27164984
                

                De informatie - verzonden in of met dit emailbericht - is
                

                afkomstig van Daidalos BV en is uitsluitend bestemd voor de
                

                geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen,
                

                verzoeken wij u het te verwijderen. Aan dit bericht kunnen
                

                geen rechten worden ontleend.
                



                        From: [email protected]
                        

                        [mailto:[email protected]] On 
Behalf
                        

                Of Mariano
                

                        Grau Calín
                        

                        Sent: zaterdag 12 december 2009 11:11
                        

                        To: [email protected]
                        

                        Subject: [MarkLogic Dev General] To convert xpath query 
in
                        

                lib-search
                

                        query
                        


                        Hi All,
                        


                        I'm using lib-search in my web application and a 
lib-search query
                        

                        match documents not desired.
                        


                        By example,
                        


                        doc()//root/pub[name='london' and section='astronomy']
                        


                        works fine and match documents with name and section 
equal
                        

                to values
                

                        in the same pub node.
                        


                        However, lib-search query as:
                        


                        search:search-summary(
                        

                        ...
                        

                        <cts:query xmlns:cts="http://marklogic.com/cts";>
                        

                        
<https://mail.grupojoly.com/exchweb/bin/redir.asp?URL=http://m
                        

                        arklogic.com/cts%22%3E>
                        

                         <cts:and-query>
                        

                           <cts:element-value-query weight="1">
                        


                        
<cts:QName>name</cts:QName>london<cts:option>lang=es</cts:option>
                        

                           </cts:element-value-query>
                        

                           <cts:element-value-query weight="1">
                        


                        
<cts:QName>section</cts:QName>astronomy<cts:option>lang=es</ct
                        

                        s:option>
                        

                           </cts:element-value-query>
                        

                         </cts:and-query>
                        

                        </cts:query>
                        

                        ...
                        

                        )
                        


                        find more documents, where may be name='london' in pub 
i-node and
                        

                        section='astronomy' in pub j-node.
                        


                        Is posible get same results in lib-search query than 
xpath
                        

                query and
                

                        how?
                        


                        Thanks,
                        



                        Mariano Grau
                        

                        Dpto. Sistemas
                        

                        Grupo Joly
                        




                _______________________________________________
                

                General mailing list
                

                [email protected]
                

                http://xqzone.com/mailman/listinfo/general
                



                _______________________________________________
                

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


<<winmail.dat>>

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

Reply via email to