[MarkLogic Dev General] search:search Query

Pradeep Maddireddy pradeep.marklogic at gmail.com
Wed Jun 30 04:15:09 PDT 2010


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 <Pragya_Kapoor at infosys.com>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
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20100630/658f1dcf/attachment-0001.html 


More information about the General mailing list