impress/app/flex/flex_search.yml

95 lines
2.2 KiB
YAML
Raw Normal View History

# Add here your search queries
# see the detailed Source documentation at https://github.com/ddnexus/flex/wiki/Sources
# ANCHORS litheral key: it will not be used as template
# you can store here fragments of queries to reuse in the templates below
ANCHORS:
2013-01-22 21:52:34 -08:00
- &name_partial
multi_match:
query: <<name>>
fields: <<fields>>
type: phrase
- &species_support_id_partial
term:
species_support_id: <<species_support_id>>
- &occupied_zone_id_partial
terms:
occupied_zone_id: <<occupied_zone_id>>
- &restricted_zone_id_partial
terms:
restricted_zone_id: <<restricted_zone_id>>
2013-01-22 21:52:34 -08:00
- &user_closet_hangers_ownership_partial
has_child:
type: closet_hanger
query:
bool:
must:
- term:
user_id: <<user_id>>
- term:
owned: <<user_closet_hanger_ownership>>
2014-04-05 15:43:54 -07:00
- &body_id_partial
term:
body_id: <<body_id>>
_names:
2013-01-22 21:52:34 -08:00
*name_partial
_negative_names:
2013-01-22 21:52:34 -08:00
*name_partial
_species_support_ids:
*species_support_id_partial
_negative_species_support_ids:
*species_support_id_partial
_occupied_zone_ids:
*occupied_zone_id_partial
_negative_occupied_zone_ids:
*occupied_zone_id_partial
_restricted_zone_ids:
*restricted_zone_id_partial
_negative_restricted_zone_ids:
*restricted_zone_id_partial
2013-01-22 21:52:34 -08:00
_user_closet_hanger_ownerships:
*user_closet_hangers_ownership_partial
_negative_user_closet_hanger_ownerships:
*user_closet_hangers_ownership_partial
2014-04-05 15:43:54 -07:00
_body_ids:
*body_id_partial
_negative_body_ids:
*body_id_partial
item_search:
- query:
bool:
must:
- term:
is_nc: <<is_nc= ~>>
- term:
is_pb: <<is_pb= ~>>
- <<_names= ~>>
- <<_species_support_ids= ~>>
- <<_occupied_zone_ids= ~>>
- <<_restricted_zone_ids= ~>>
2013-01-22 21:52:34 -08:00
- <<_user_closet_hanger_ownerships= ~>>
2014-04-05 15:43:54 -07:00
- <<_body_ids= ~>>
must_not:
- <<_negative_names= ~>>
- <<_negative_species_support_ids= ~>>
- <<_negative_occupied_zone_ids= ~>>
- <<_negative_restricted_zone_ids= ~>>
2013-01-22 21:52:34 -08:00
- <<_negative_user_closet_hanger_ownerships= ~>>
2014-04-05 15:43:54 -07:00
- <<_negative_body_ids= ~>>
sort:
- name.<<locale>>.untouched