高亮显示

  1. POST /shop/_doc/_search
  2. {
  3. "query": {
  4. "match": {
  5. "desc": "慕课网"
  6. }
  7. },
  8. "highlight": {
  9. "pre_tags": ["<tag>"],
  10. "post_tags": ["</tag>"],
  11. "fields": {
  12. "desc": {}
  13. }
  14. }
  15. }