HI.

I think the answer is not too difficult if you keep in mind that the magic
of DLS is partially exposed by way of properties on your documents:

>From the top of my head, I believe that in your search, also search the
properties fragment for dls data that you can use to isolate what you want.

Look at the properties of one of your latest versions and see exactly what
you can isolate on, but I believe the dls:latest element will be your
friend here.

Kind Regards,
David Ennis




David Ennis
*Content Engineer*

[image: HintTech]  <http://www.hinttech.com/>
Mastering the value of content
creative | technology | content

Delftechpark 37i
2628 XJ Delft
The Netherlands
T: +31 88 268 25 00
M: +31 63 091 72 80

[image: http://www.hinttech.com] <http://www.hinttech.com>
<https://twitter.com/HintTech>  <http://www.facebook.com/HintTech>
<http://www.linkedin.com/company/HintTech>

On 2 December 2014 at 16:28, shruti kapoor <[email protected]>
wrote:

> Hi all,
>
>
> I store managed documents into a specific collection in marklogic through
> dls library. I want search to include only current version documents. Is
> there any way to do it using search:search API?
>
> I know how to do it using cts:search(). I know one option is to push old
> versions into different collection and current version into different.
> Search only on collection with current version. For some reasons I don't
> want to do this. Are there any other ways of doing it?
>
> --
>
> Regards,
> *Shruti Kapoor*
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to