taggle:querysyntax
Differences
This shows you the differences between two versions of the page.
taggle:querysyntax [2020/03/19 14:44] – created su | taggle:querysyntax [2020/03/19 14:46] (current) – su | ||
---|---|---|---|
Line 5: | Line 5: | ||
=== Logical operators === | === Logical operators === | ||
- | AND - The default operator used if no explicit operator is specified. For example, with a default operator of AND, the query capital of Hungary is translated to capital AND of AND Hungary. | + | '' |
==== Fuzziness ==== | ==== Fuzziness ==== | ||
Line 11: | Line 11: | ||
We can search for terms that are similar to, but not exactly like our search terms, using the “fuzzy” operator: | We can search for terms that are similar to, but not exactly like our search terms, using the “fuzzy” operator: | ||
- | quikc~ brwn~ foks~ | + | '' |
This uses the Damerau-Levenshtein distance to find all terms with a maximum of two changes, where a change is the insertion, deletion or substitution of a single character, or transposition of two adjacent characters. | This uses the Damerau-Levenshtein distance to find all terms with a maximum of two changes, where a change is the insertion, deletion or substitution of a single character, or transposition of two adjacent characters. | ||
The default edit distance is 2, but an edit distance of 1 should be sufficient to catch 80% of all human misspellings. It can be specified as: | The default edit distance is 2, but an edit distance of 1 should be sufficient to catch 80% of all human misspellings. It can be specified as: | ||
- | quikc~1 | + | '' |
==== Wildcards ==== | ==== Wildcards ==== | ||
- | Wildcard searches can be run on individual terms, using ? to replace a single character, and * to replace zero or more characters: | + | Wildcard searches can be run on individual terms, using '' |
- | qu?ck bro* | + | '' |
- | Be aware that wildcard queries can use an enormous amount of memory and perform very badly — just think how many terms need to be queried to match the query string "a* b* c*". | + | Be aware that wildcard queries can use an enormous amount of memory and perform very badly — just think how many terms need to be queried to match the query string |
taggle/querysyntax.1584629043.txt.gz · Last modified: 2020/03/19 14:44 by su