ml-search-ng
An angular module of services and directives for common use cases in MarkLogic search applications. Based on components from ealier versions of https://github.com/marklogic/slush-marklogic-node.
depends on https://github.com/joemfb/ml-common-ng.
getting started
bower install ml-search-ng
services
MLSearchFactory: factory for generating instances ofMLSearchContext(which manages search config/query state, and provides APIs for searches)MLRemoteInputService: for communicating with theml-remote-input(search input outside of controller scope)
directives
ml-chiclets: display facet selection 'chiclets'ml-duration: parse ISO duration stringsml-facets: display facetsml-input: search input with auto-suggestml-metrics: display search metricsml-remote-input: remote wrapper forml-inputml-results: display search results / snippets / highlights
controllers
MLSearchController: prototypically inherit to setup default search behaviorMLRemoteSearchController: prototypically inherit to use withml-remote-input(inherits fromMLSearchController)
See https://joemfb.github.io/ml-search-ng/ for API docs and directive examples.
See https://github.com/marklogic/slush-marklogic-node for a quick way to get started with an angular search application on top of the MarkLogic REST API.