Hi..! Try using value constraints instead of word constraints and pass say title:LONDON* wildcarded
<constraint name="title" xmlns="http://marklogic.com/appservices/search"> <word> <element ns="http://www.HTCINC.com/HTC/" name="title"/> <term-option>punctuation-insensitive</term-option> <term-option>case-insensitive</term-option> <term-option>wildcarded</term-option> </word> </constraint> Thanks Pradeep Maddireddy On Wed, Jun 30, 2010 at 2:40 PM, Pragya Kapoor <[email protected]>wrote: > Hi, > > > > I have a requirement such that if I search for London , results should only > come if title starts with London > > EG: > > LONDON UK > > LONDON xyz > > > > And not > > UK LONDON XYZ > > > > Moreover, I have to do this using search:search API > > > > Please let me know if this is achievable. > > > > Thanks > > Pragya > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
