Hi Santhosh,

What version of marklogic are you running?  The distance-weight option is a 4.2 
feature.

Try

xdmp:version()

to get the version.

-Danny

From: [email protected] 
[mailto:[email protected]] On Behalf Of Santhosh Raj
Sent: Monday, January 17, 2011 4:51 AM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Error in using distance-weight in and-query


I configured my database and set the word positions to true.But still I am 
getting the invalid options error while using the distance-weight option in my 
search query.can some one suggest where am  I wrong. For reference I am posting 
the sample query:


Query:
cts:search
(/content,cts:or-query((
cts:word-query
(("cat","dog"),("case-insensitive","distance-weight=10")))))

Error
XDMP-OPTION: cts:word-query(("cat", "dog"), ("case-insensitive", 
"distance-weight=10")) -- Invalid option "distance-weight=10"
in /eval, on line 2
expr: cts:word-query(("cat", "dog"), ("case-insensitive", "distance-weight=10"))

thanks in advance

Santhosh Rajasekaran

=====-----=====-----=====

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