engine.js 979 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. const _ = require('lodash')
  2. module.exports = {
  3. activate() {
  4. // not used
  5. },
  6. deactivate() {
  7. // not used
  8. },
  9. /**
  10. * INIT
  11. */
  12. init() {
  13. // not used
  14. },
  15. /**
  16. * SUGGEST
  17. *
  18. * @param {String} q Query
  19. * @param {Object} opts Additional options
  20. */
  21. async suggest(q, opts) {
  22. },
  23. /**
  24. * QUERY
  25. *
  26. * @param {String} q Query
  27. * @param {Object} opts Additional options
  28. */
  29. async query(q, opts) {
  30. },
  31. /**
  32. * CREATE
  33. *
  34. * @param {Object} page Page to create
  35. */
  36. async created(page) {
  37. // not used
  38. },
  39. /**
  40. * UPDATE
  41. *
  42. * @param {Object} page Page to update
  43. */
  44. async updated(page) {
  45. // not used
  46. },
  47. /**
  48. * DELETE
  49. *
  50. * @param {Object} page Page to delete
  51. */
  52. async deleted(page) {
  53. // not used
  54. },
  55. /**
  56. * RENAME
  57. *
  58. * @param {Object} page Page to rename
  59. */
  60. async renamed(page) {
  61. // not used
  62. },
  63. /**
  64. * REBUILD INDEX
  65. */
  66. async rebuild() {
  67. // not used
  68. }
  69. }