joemfb / ml-search-ng

angular module for MarkLogic search applications
https://joemfb.github.io/ml-search-ng/
9 stars 10 forks source link

support adhoc queries for search controller #88

Closed joemfb closed 9 years ago

joemfb commented 9 years ago

MLSearchController._search() should have an optional adhoc argument, to be passed to MLSearchContext.search().

joemfb commented 9 years ago

The was case was sending search-only annotations, to work around inconsistent term-parsing using /v1/search vs /v1/suggest. However, that's really a different feature than adhoc searches, and the two have incompatible requirements. Annotations could be config driven instead, if necessary.