Hi Sundar,

Other than manipulating the parsed query to inject the proximity weight into 
the and-query that search:parse() creates, I don't see an easy way to do it.  
Have you looked at near-query to see whether it would satisfy your 
requirements?  That is well supported by the default grammar ("cat NEAR dog").

--Colleen



________________________________
From: [email protected] 
[[email protected]] on behalf of Sundaravadivel Kandasamy 
[[email protected]]
Sent: Monday, November 11, 2013 3:40 AM
To: [email protected]
Subject: [MarkLogic Dev General] cts:query distance weight

Hi,
                I  want to set the distance weight option for proximity 
boosting in search. I use search:parse API to form the structured query 
dynamically and pass the structured query to  cts:search API, Since the query 
is formed using search:parse I could not set the distance weight option.


Using Proximity Boosting With cts:and-query 
Semantics<http://docs.marklogic.com/guide/search-dev/relevance#id_21623>


Whether I can use the ‘quality-weight’ option in search:search API for 
proximity boosting? Any suggestions to achieve  proximity boosting between 
search words using above implementation? Thanks in Advance.


Regards,
Sundar

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

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

Reply via email to