Is there any way to restrict marklogic search on specific version of the document -


i store managed documents specific collection in marklogic (through dls:document-update , dls:document-checkin api). want search include current version documents. there way using search:search api? if not other suggestions? know 1 option push old versions different collection , current version different. search on collection current version. reasons don want this. there other ways of doing it?

the function http://docs.marklogic.com/dls:documents-query "returns query matches latest versions of managed documents in database." sounds want. use search:search add output function additional-query option: http://docs.marklogic.com/search:search?q=search:search#opt-additional-query

dls supplies couple of similar options too: can use http://docs.marklogic.com/dls:document-version-query match specific version number, or http://docs.marklogic.com/dls:as-of-query match documents @ specific time. if specify time now, should match latest versions. dls:documents-query should efficient way.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -