Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Unanswered
Can I inherit templates?

You sure can!

Python classes:

  • class MyBaseForm
  • class MyInheritedForm(MyBaseForm)
  • class MyInheritedFormTwo(MyBaseForm)

Directory structure

  • my_base_form
    ---- extension.py
    ---- templates
    -------- index.html
  • my_inherited_form
    ---- extension.py
    ---- templates
  • my_inherited_form_two
    ---- extension.py
    ---- templates
    -------- index.html

Let's say we called:

self.get_template('index.html', {})

From:

MyBaseForm: returns my_base_form/templates/index.html
MyInheritedForm: returns my_base_form/templates/index.html (inherited)
MyInheritedFormTwo: returns my_inherited_form_two/templates/index.html (overridden)

Posted 5 years ago
Trey Teter
124 × 2 Administrator
Votes Newest

Answers

114 Views
0 Answers
5 years ago
5 years ago
Tags