Using Regular Expressions Within Query Pipeline Rules

Using Regular Expressions Within Query Pipeline Rules

Regular expressions are a powerful tool to make your Query Pipeline rules more dynamic and easier to manage. Learn how to implement regular expressions in Coveo's Query Pipeline Language, QPL.

About this course

 

You already know the power of the query pipeline rules such as the thesaurus. With a few clicks, you can have useful rules set up to easily address content gaps and improve the relevancy of your results.

As powerful as they are, the rules you can set up with the point-and-click interface are really just the start. Using the example of the thesaurus, we can see that its easy to set up a rule to expand or replace a term found in the query, but once those rules are in place they are static until the next time you update your rules.

In some cases, it's possible to be a bit more dynamic with your configurations using regular expressions and editing query pipeline's QPL code directly to easily enable searches against families of related items.

 

About this course

 

You already know the power of the query pipeline rules such as the thesaurus. With a few clicks, you can have useful rules set up to easily address content gaps and improve the relevancy of your results.

As powerful as they are, the rules you can set up with the point-and-click interface are really just the start. Using the example of the thesaurus, we can see that its easy to set up a rule to expand or replace a term found in the query, but once those rules are in place they are static until the next time you update your rules.

In some cases, it's possible to be a bit more dynamic with your configurations using regular expressions and editing query pipeline's QPL code directly to easily enable searches against families of related items.