[MarkLogic Dev General] Query on multiple language using search api

Geert Josten geert.josten at dayon.nl
Thu Aug 16 01:25:46 PDT 2012


Hi Amit,



Haven’t tried, but you should be able to add
<term-option>lang=en</term-option><term-option>lang=de</term-option><term-option>lang=fr</term-option>
to the relevant constraint..



Kind regards,

Geert



PS: I’m wondering whether it would also accept lang=en,de,fr, but the docs
don’t seem to indicate so..



*Van:* general-bounces at developer.marklogic.com [mailto:
general-bounces at developer.marklogic.com] *Namens *amit gope
*Verzonden:* donderdag 16 augustus 2012 8:12
*Aan:* general at developer.marklogic.com
*Onderwerp:* [MarkLogic Dev General] Query on multiple language using
search api



Hello All,

Can anyone please help me out queering on multiple languages using search
api. In my database i have documents of different languages (en, de, fr) to
name a few. Currently when i do not provide any language specification it
returns me contents from only english. How do i mention the language
constraint to include the search for languages de and fr as well?


Regards
Amit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120816/ed549079/attachment.html 


More information about the General mailing list