Introduction
The preezie logic/rules use “Lucene query syntax”.
...
In the examples below we will be using the values Red, Green and Blue to see how syntax can be applied in logic/rules.
Special characters:
Add a\ before a special character will “escape” the proceeding character from the search.
Special characters are + - && || ! ( ) { } [ ] ^ " ~ * ? : \
Text/String Equals To |
“Text/String Equals To”, is the most simple search. Only able to search for uninterrupted strings of characters, a single word like “red”, NOT “dark red” as that is interrupted by a space.
...
Search for the letters anywhere in a phrase with (*Stars*) so greenery or evergreen could be located with this rule. USE WITH CAUTION! | (*green*) |
Wild Card Search can also be used in other logic where appropriate. This rule can be used with other rules but needs to be wrapped in brackets | (*green*)||(*blue*)||red |
...
Proximity matching is where you can find multiple words within a specific distance from each other. e.g. Search for green and blue where they are within 4 words from each other. | "green blue"~4 |
...
Data:
The data can be used from one or two fields depending on where the data is located. This can be different for different products, make sure to check several options products in the data before committing to searching in a specific fieldthe category to ensure that the data you are looking for is in the correct field for all of the products. e.g. If a TV in this example has data only in tags, you should only search in tags if all other TVs have the same structure. If TVs have data in both you can search in both to ensure you do not miss an outlier that may only have the data located in the description.
The example data below has all the data we need for all the answers in both the description and the tags. Bold and colored for your convenience, these are the fields identified to fit with the answers above.
desctiption: | tags: |
---|---|
<STRONG>Overview</STRONG> <P></P><P>Into the wonderful: experience the next evolution of LG OLED TV. Self-lit pixels allow spectacular picture quality, a host of design possibilities and cutting-edge Smart TV technologies designed to deliver everything you love about TV, elevated in every way. </P><P><STRONG>Key Features</STRONG></P><P><STRONG>Our best 4K OLED ever</STRONG><BR>See bright, sharp images with intense clarity, from an upgraded display. LG OLED evo uses an optimised next-generation OLED panel that refines the wavelengths of light and increases brightness. Evolve your viewing experience with an evolved display. </P><BR><FONT size=1>*FILMMAKER MODE™ is a trademark of UHD Alliance, Inc.</FONT></P><P><STRONG>It's game over for the competition</STRONG><BR>Get ahead of the game with swift response, cutting-edge gaming features and an ultra-smooth 120Hz display. Create the ultimate gaming setup, with LG OLED TV. </P> |
Logic:
Answer 1. 4K UHD | (prodcut_type:(jumper) AND tags:(hoodie)) AND tags:(wool) |