Loading TOC...

DocumentsSearch.filter

DocumentsSearch.filter() as DocumentsSearch

Summary

Specifies filtering the documents by inspecting the contents of matched and ordered documents to populate the slice. The search is unfiltered by default.

Example


// Perform a filtered search for documents where the "author" JSON
// property has the value "Mark Twain"
const jsearch = require('/MarkLogic/jsearch.sjs');
jsearch.documents()
  .where(jsearch.byExample({author: 'Mark Twain'})) 
  .filter()
  .result()
   

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy