O'Reilly logo

Apache Solr Beginner's Guide by Alfredo Serafini

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – debugging a query with the Dismax parser

Disjunction Max Query (Dismax) searches for every pair of the field/term separately, and then combines the results in order to calculate the maximum score value of the results. By default, it performs searches on every field.

  1. Let's start again by using cURL for a Dismax query as follows:
    >> curl -X GET 'http://localhost:8983/solr/paintings/select?q=giraffe+dali+%22female+figure%22+vermeer&start=0&fl=title+artist+city&wt=json&indent=true&debugQuery=true&defType=dismax&qf=artist+abstract^2&mm=3&pf=abstract^3'
    
  2. When we find good parameter values in our experiments, we can, for example, configure a new request handler with these values predefined in solrconfig.xml.
  3. Looking at the following screenshot, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required