PeakMetrics supports a wide variety of advanced search tools. Below you will find information about what search tools you have access to and how best to use them.

Booleans

By default, we match exact phrases. A search for “immigration rights” will look explicitly for the phrase “immigration rights”.

You can customize this by using:

+ or AND (this term must be present)

example: “immigration rights” + children
“immigration rights” AND children

translates to “immigration rights” and children

|| or OR (either term must be present)

example: “immigration rights” || “undocumented rights”
“immigration rights” OR “undocumented rights”

translates to “immigration rights” or “undocumented rights”

- or NOT (this term must not be present)
example: “immigration rights” -children translates to “immigration rights” but not children.

For example, this query:

"quick brown" +fox -news

states that:

  • fox must be present
  • news must not be present
  • quick brown — must be present together

Understanding Boolean Operators

  • "cat OR black" - this will find all documents where the words "cat" or "black" exist.
  • "cat || black" - same as above, as || is the same as OR
  • "cat AND black" - this will find all documents where the words "cat" and "black" exist.
  • "cat black" - same as above, as AND operator is the default one.
  • "cat || black" - same as above, because | isn't any keyword and interpreted as a regular token.

Grouping

Multiple terms or clauses can be grouped together with parentheses, to form sub-queries:

+(quick || brown) +fox

Search by Name

Use this syntax to search by an author's name or social handle:

Author: "@Cristiano"

Wildcards

Wildcard searches can be run on individual terms, using ? to replace a single character, and * to replace zero or more characters:

+qu?ck bro*

Use this feature sparingly, as it can take a long time to process results

Fuzziness

We can search for terms that are similar to, but not exactly like our search terms, using the “fuzzy” operator:

quikc~ brwn~ foks~

Proximity searches

While normal searches (eg "john smith" ) expect all of the terms in exactly the same order, a proximity query allows the specified words to be further apart or in a different order. In the same way that fuzzy queries can specify a maximum edit distance for characters in a word, a proximity search allows us to specify a maximum edit distance of words in a phrase:

"fox quick"~5

The closer the text in a field is to the original order specified in the query string, the more relevant that document is considered to be. When compared to the above example query, the phrase "quick fox" would be considered more relevant than "quick brown fox" .

Date Ranges

All days in September 2018:

publish_date:[2018-09-01 TO 2018-09-30]
Did this answer your question?