Abishek,

Two quick questions...what version of the server are you running?  And what is 
the collation of the field word lexicon configured on that field?  You may need 
to add collation="[yourcollation]" as an attribute on the <field> wrapper.

--Colleen
________________________________________
From: [email protected] 
[[email protected]] On Behalf Of Abhishek53 S 
[[email protected]]
Sent: Wednesday, August 03, 2011 8:54 AM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] search:suggest issue

Hi Folks

search:suggest over field word lexicons is not returning any suggestion. I keep 
the sample query for reference.

xquery version "1.0-ml";
import module namespace search = "http://marklogic.com/appservices/search";
    at "/MarkLogic/appservices/search/search.xqy";


let $options :=
        <options xmlns="http://marklogic.com/appservices/search";>
            <constraint name="title">
                 <word>
                     <field name="F-TITLE" />
                 </word>
            </constraint>
              <suggestion-source ref="title">
                    <suggestion-option>item-order</suggestion-option>
                    <suggestion-option>descending</suggestion-option>
              </suggestion-source>
        </options>
return
    (:cts:field-word-match("F-TITLE","me*")[1 to 1000]:)
    search:suggest("title:me",$options)

The same query is fine if I am using cts:field-word-match("F-TITLE","me*"). 
Please let me know if I missed something here.

Thanks in advance !

Abhishek Srivastav
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: [email protected]
Website: http://www.tcs.com<http://www.tcs.com/>
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



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

Reply via email to