HUE-7745 [dashboard] Create Solr keywords highlighter for Ace

Review Request #12164 - Created Dec. 6, 2017 and submitted

Enrico Berti
hue
master
HUE-7745
hue
jgauthier, johan, ranade, romain, roohi, weixia, yingc
commit b0dfc97693446b443e04241a04d5d02f842c06ff
Author: Enrico Berti <hello@enricoberti.com>
Date:   Wed Dec 6 12:10:49 2017 +0100

    HUE-7745 [dashboard] Create Solr keywords highlighter for Ace

:000000 100644 0000000000... 2e141dfc9e... A	desktop/core/src/desktop/static/desktop/js/ace/mode-solr.js
:000000 100644 0000000000... c15ad39221... A	desktop/core/src/desktop/static/desktop/js/ace/snippets/solr.js
:100644 100644 5908f1779d... 91016bfdb0... M	desktop/core/src/desktop/templates/ko_components/ko_simple_ace_editor.mako
:100644 100644 5cf200823f... c8c5fb934e... M	desktop/libs/dashboard/src/dashboard/templates/common_search.mako
:000000 100644 0000000000... af80a6db2b... A	tools/ace-editor/lib/ace/mode/solr.js
:000000 100644 0000000000... 489426f201... A	tools/ace-editor/lib/ace/mode/solr_highlight_rules.js
:000000 100644 0000000000... 6c0737144f... A	tools/ace-editor/lib/ace/snippets/solr.js
:000000 100644 0000000000... e69de29bb2... A	tools/ace-editor/lib/ace/snippets/solr.snippets

Manual on Chrome

  • 0
  • 0
  • 3
  • 0
  • 3
Description From Last Updated
  1. 
      
  2. tools/ace-editor/lib/ace/mode/solr.js (Diff revision 1)
     
     

    Keywords are case sensitive

    1. ha! didn't realize that when searching for 'company_s: "Bauch Inc" and shirt_size_s:"3XL"' because it doesn't throw an error
      this is valid too 'company_s: "Bauch Inc" SMD shirt_size_s:"3XL"'

  3. Also TO for ranges

    https://lucene.apache.org/solr/guide/7_1/the-standard-query-parser.html

    Also NOW, HOUR etc. from https://lucene.apache.org/solr/guide/7_1/working-with-dates.html#working-with-dates

  4. Should only be these:
    
    + - && || ! ^ " ~ * ? : /
    
    && and || possibly in keywords list above
  5. 
      
Review request changed

Status: Closed (submitted)

Loading...