MarkLogic 12 EA 1 Product Documentation
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()
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy