-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathqueryrules.ini
More file actions
290 lines (237 loc) · 8.7 KB
/
Copy pathqueryrules.ini
File metadata and controls
290 lines (237 loc) · 8.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
# queryrules.ini for pa-wildflower-selector
#
# This file defines rule-based wildcard filtering for plant search
# Format:
# [SectionName]
# Chip = What the UI will display
# Keywords = comma-separated list of search terms that trigger this rule
# Query = MongoDB query to execute when this rule is matched
# More specific color/feature rules first
# Specific fruit color rules
[BlueFruit]
Chip = Blue Berries/Fruit
Keywords = Blue Berries, Blue Fruit
Query = { "Fruit Color": "Blue" }
Filters = { "Fruit Color": ["Blue"] }
[RedFruit]
Chip = Red Berries/Fruit
Keywords = Red Berries, Red Fruit
Query = { "Fruit Color": "Red" }
Filters = { "Fruit Color": ["Red"] }
# Specific flower color rules
[BlueFlower]
Chip = Blue Flowers
Keywords = Blue, Blue Flower, Blue Flowers, Blue Blooms
Query = { "Flower Color Flags": { "$in": ["Blue"] } }
Filters = { "Flower Color Flags": ["Blue"] }
[RedFlower]
Chip = Red Flowers
Keywords = Red, Red Flower, Red Flowers, Red Blooms
Query = { "Flower Color Flags": { "$in": ["Red"] } }
Filters = { "Flower Color Flags": ["Red"] }
[YellowFlower]
Chip = Yellow Flowers
Keywords = Yellow, Yellow Flower, Yellow Flowers, Yellow Blooms
Query = { "Flower Color Flags": { "$in": ["Yellow"] } }
Filters = { "Flower Color Flags": ["Yellow"] }
[PurpleFlower]
Chip = Purple Flowers
Keywords = Purple, Purple Flower, Purple Flowers, Purple Blooms, Violet
Query = { "Flower Color Flags": { "$in": ["Purple"] } }
Filters = { "Flower Color Flags": ["Purple"] }
[WhiteFlower]
Chip = White Flowers
Keywords = White, White Flower, White Flowers, White Blooms
Query = { "Flower Color Flags": { "$in": ["White"] } }
Filters = { "Flower Color Flags": ["White"] }
[PinkFlower]
Chip = Pink Flowers
Keywords = Pink, Pink Flower, Pink Flowers, Pink Blooms
Query = { "Flower Color Flags": { "$in": ["Pink"] } }
Filters = { "Flower Color Flags": ["Pink"] }
[OrangeFlower]
Chip = Orange Flowers
Keywords = Orange, Orange Flower, Orange Flowers, Orange Blooms
Query = { "Flower Color Flags": { "$in": ["Orange"] } }
Filters = { "Flower Color Flags": ["Orange"] }
[GreenFlower]
Chip = Green Flowers
Keywords = Green, Green Flower, Green Flowers, Green Blooms
Query = { "Flower Color Flags": { "$in": ["Green"] } }
Filters = { "Flower Color Flags": ["Green"] }
# Native status rules
[NativeStatus_US]
Chip = Native to the Continental US
Keywords = Native, Native to USA, US Native, Lower 48, continental US
Query = { "States": { "$in": ["PA", "NJ", "DE", "MD", "NY", "WV", "VA", "OH"] } }
[duration_Perennial]
Chip = Perennial
Keywords = Perennial
Query = { "Life Cycle Flags": { "$in": ["Perennial"] } }
[duration_Annual]
Chip = Annual
Keywords = Annual
Query = { "Life Cycle Flags": { "$in": ["Annual"] } }
[duration_Biennial]
Chip = Biennial
Keywords = Biennial
Query = { "Life Cycle Flags": { "$in": ["Biennial"] } }
[MonarchsCheck]
Chip = Supports Monarchs
Keywords = Monarch Butterfly, Monarchs, Monarch, Monarch Waystation
Query = { "Pollinator Flags": { "$in": ["Monarchs", "Larval Host (Monarch)"] } }
Filters = { "Pollinator Flags": ["Monarchs"] }
[SunExposure_PartShade]
Chip = Part Shade
Keywords = partial, Part Shade, Partial Shade, Filtered Light, Partial Sun, Part Sun
Query = { "Sun Exposure Flags": { "$in": ["Part Shade"] } }
Filters = { "Sun Exposure Flags": ["Part Shade"] }
[SunExposure_FullSun]
Chip = Sun
Keywords = Full Sun, Sun, Direct Sun
Query = { "Sun Exposure Flags": { "$in": ["Sun"] } }
Filters = { "Sun Exposure Flags": ["Sun"] }
[SunExposure_Shade]
Chip = Shade
Keywords = Full Shade, Deep Shade, Shade, Shady location, Shade Tolerant
Query = { "Sun Exposure Flags": { "$in": ["Shade"] } }
Filters = { "Sun Exposure Flags": ["Shade"] }
[FallBlooming]
Chip = Fall Blooming
Keywords = fall, Fall Blooming, Late Blooming, Fall Bloomer, Late Bloomer, fall bloom, late bloom
Query = { "Flowering Months": { "$regex": "sep|oct|nov", "$options": "i" } }
[FloweringMonths_Spring]
Chip = Spring Bloom
Keywords = Spring, Spring Flowers, Spring Bloom
Query = { "Flowering Months": { "$regex": "mar|apr|may", "$options": "i" } }
[SoilMoisture_Wet]
Chip = Wet
Keywords = Wet, Rain Garden, Puddles, Wet Feet, Wet Soil, Wet Dirt
Query = { "Soil Moisture Flags": { "$in": ["Wet"] } }
Filters = { "Soil Moisture Flags": ["Wet"] }
[SoilMoisture_Dry]
Chip = Dry
Keywords = Dry, Cracks in Soil, Dry Soil, Dry Dirt
Query = { "Soil Moisture Flags": { "$in": ["Dry"] } }
Filters = { "Soil Moisture Flags": ["Dry"] }
[SoilMoisture_Moist]
Chip = Moist
Keywords = Moist, Slightly Moist, Moist Soil, Slightly Wet
Query = { "Soil Moisture Flags": { "$in": ["Moist"] } }
Filters = { "Soil Moisture Flags": ["Moist"] }
[DroughtTolerance]
Chip = Drought Tolerant
Keywords = Drought Tolerant, Drought, tolerance of drought, droughts
Query = { "Drought Tolerance": { "$in": ["Medium", "High"] } }
[EvergreenCheck]
Chip = Evergreen Plants
Keywords = Evergreen, Evergreen Trees, Trees that are evergreen
Query = { "Leaf Retention": "Evergreen" }
[Tree]
Chip = Tree
Keywords = Tree
Query = { "Plant Type Flags": { "$in": ["Tree"] } }
Filters = { "Plant Type Flags": ["Tree"] }
[Shrub]
Chip = Shrub
Keywords = Shrub, Bush
Query = { "Plant Type Flags": { "$in": ["Shrub"] } }
Filters = { "Plant Type Flags": ["Shrub"] }
[Vine]
Chip = Vine
Keywords = Vine, Climbing, Climber
Query = { "Plant Type Flags": { "$in": ["Vine"] } }
Filters = { "Plant Type Flags": ["Vine"] }
[Fern]
Chip = Fern
Keywords = Fern
Query = { "$or": [{ "Common Name": { "$regex": "fern", "$options": "i" } }, { "Scientific Name": { "$regex": "fern", "$options": "i" } }] }
Filters = { "Plant Type Flags": ["Fern"] }
[Grass]
Chip = Grass
Keywords = Grass, Grasses, Sedge, Sedges, Rush, Rushes
Query = { "Plant Family": "Poaceae" }
[Hummingbirds]
Chip = Attracts Hummingbirds
Keywords = Hummingbird, Hummingbirds, Hummingbird-attracting
Query = { "Pollinator Flags": { "$in": ["Hummingbirds"] } }
Filters = { "Pollinator Flags": ["Hummingbirds"] }
[Butterflies]
Chip = Attracts Butterflies
Keywords = Butterfly, Butterflies
Query = { "Pollinator Flags": { "$in": ["Butterflies"] } }
Filters = { "Pollinator Flags": ["Butterflies"] }
[Bees]
Chip = Attracts Bees
Keywords = Bee, Bees, Bumblebee, Bumblebees, Honey Bee
Query = { "Pollinator Flags": { "$in": ["Native Bees", "Honey Bees", "Bombus"] } }
Filters = { "Pollinator Flags": ["Bees"] }
# These flower color rules have been moved to the top of the file
# These flower color rules have been moved to the top of the file
[Superplant]
Chip = Super Plant
Keywords = Super, Super Plant, Superplant
Query = { "Superplant": true }
Filters = { "Superplant": ["Super Plant"] }
[Showy]
Chip = Showy
Keywords = Showy, Showy Flowers, Showy Blooms
Query = { "Showy": true }
Filters = { "Showy": ["Showy"] }
[FallColor]
Chip = Fall Color
Keywords = Fall Color, Autumn Color, Fall Foliage, Autumn Foliage, Fall Interest
Query = { "Fall Conspicuous": "Color" }
[DeciduousCheck]
Chip = Deciduous Plants
Keywords = Deciduous, Deciduous Trees, Deciduous Shrubs, Loses Leaves
Query = { "Leaf Retention": "Deciduous" }
[NativeLower48]
Chip = Native to Lower 48
Keywords = Native to US, Native to Lower 48, Continental US Native
Query = { "Native Status": { "$regex": "L48.*N", "$options": "i" } }
[HighDroughtTolerance]
Chip = High Drought Tolerance
Keywords = Very Drought Tolerant, Extremely Drought Tolerant, Xeric
Query = { "Drought Tolerance": "High" }
[ShowyFruit]
Chip = Showy Fruit
Keywords = Berries, Fruit Display, Ornamental Fruit, Decorative Berries
Query = { "Fruit Conspicuous": "Yes" }
[FastGrowing]
Chip = Fast Growing
Keywords = Rapid Growth, Quick Growing, Fast Establishment
Query = { "Growth Rate": "Rapid" }
[SlowGrowing]
Chip = Slow Growing
Keywords = Slow Growth, Gradual Growth
Query = { "Growth Rate": "Slow" }
[WorkhorsePlants]
Chip = Workhorse Plants
Keywords = Workhorse, High Performance Plants, Reliable Plants
Query = { "$or": [{ "Workhorse": "Workhorse" }, { "Workhorse": "Workhorse/Pollinator" }] }
[GrowsFromSeed]
Chip = Grows from Seed
Keywords = Seed Propagation, Grows from Seed, Seed-grown
Query = { "Propagation Flags": { "$in": ["Seed"] } }
[GrowsFromCuttings]
Chip = Grows from Cuttings
Keywords = Cutting Propagation, Stem Cuttings, Propagate from Cuttings
Query = { "Propagation Flags": { "$in": ["Cutting"] } }
[RedFruit]
Chip = Red Berries/Fruit
Keywords = Red Berries, Red Fruit
Query = { "Fruit Color": "Red" }
[AsterFamily]
Chip = Aster Family
Keywords = Asteraceae, Aster Family, Daisy Family, Sunflower Family, Composite, Aster
Query = { "Plant Family": "Asteraceae" }
Filters = { "Plant Family": ["Asteraceae"] }
[SilverFoliage]
Chip = Silver/Gray Foliage
Keywords = Silver Leaves, Gray Foliage, Silver Foliage, Gray-Green Foliage
Query = { "Foliage Color": "Gray-Green" }
[Cactus]
Chip = Cactus
Keywords = Cactus, Cacti, Succulent, Desert Plant, Prickly, Spiny
Query = { "Plant Family": "Cactaceae" }