marklogic-samplestack icon indicating copy to clipboard operation
marklogic-samplestack copied to clipboard

Add custom constraints

Open popzip opened this issue 11 years ago • 0 comments

Would be a nice to be able to demonstrate how to do this.

Migrating this RFE from separate repository to the public one to carry forward. Past discussions:

  • https://github.com/marklogic/samplestack-internal/issues/50
  • https://github.com/marklogic/samplestack-internal/issues/119

From Kim:

If by “grammar customization” you mean defining custom constraints so that you can use constructs like “tag:foo” in string queries, all is well. That seems like a fine thing to showcase. http://pubs.marklogic.com:8011/guide/search-dev/query-options#id_95820

as distinguished from:

literally extending/changing the grammar to have new operators or other “real” customizations. this is not a good idea.

Question would be if its possible to implement it in JavaScript

popzip avatar Dec 10 '14 22:12 popzip