Questions tagged [dismax]

DisMax is an abbreviation of Disjunction Max, and is a popular query mode with Apache Solr.

DisMax is an abbreviation of Disjunction Max, and is a popular query mode with Apache Solr.

Out of the box, Solr used the standard Solr query parser which understands only syntactically correct boolean queries like "title:foo OR body:foo", it can only search one field by default, and it may throw an exception if you put in some characters it doesn't like. Therefore a new, more robust query mode was needed and the DisMax was born.

Disjunction refers to the fact that your search is executed across multiple fields, e.g. title, body and keywords, with different relevance weights.

Max means that if your word "foo" matches both title and body, the max score of these two (probably title match) is added to the score, not the sum of the two as a simple OR query would do. This gives more control over your ranking.

Have a look here for more details.

93 questions
1
vote
1 answer

Querying Solr using dismax, field not showing up in debug score

I'm storing a set of products in solr as documents. I'm separating out name, description, keywords, and product category name into separate fields so that I can boost them independently using the dismax handler. All the fields are stored as "text"…
Zak
  • 24,947
  • 11
  • 38
  • 68
1
vote
2 answers

Solr Dismax and Edismax request gives different results for the same query

There is query that contains optional("should" clauses) mandatory and prohibited tokens. The following two queries returns different results. But should be same, not? +_query_:"{!type=**dismax** mm='2<2 3<3 5<4 7<51%' qf='normalizedField'} opt1 opt2…
r.r
  • 245
  • 4
  • 15
1
vote
1 answer

Solr dismax Query Over Multiple Fields

I am trying to do a solr dismax query over multiple fields, and am a little confused with the syntax. My core contains a whole load of podcast episodes. The fields in the index are EPISODE_ID, EPISODE_TITLE, EPISODE_DESC, and EPISODE_KEYWORDS. Now,…
Tom O'Brien
  • 1,741
  • 9
  • 45
  • 73
1
vote
0 answers

Solr edismax parser and multiple fields search

I use the edismax query parser to handle user queries against our Solr 4.10.3 server. I configured the q.op parameter to AND and completely disabled the mm parameter in order to hit only 100% matches. When users search for multiple terms in a single…
1
vote
2 answers

Solr - mm paramter of dismax parser

I am using Solr 5.2.1, in one of my project, and got some doubt on mm paramter of dismax / edismax parser. Questions: Does mm regardless of total input term count? Document says yes, but when I set it to 3, and input a single term, it still could…
Eric
  • 22,183
  • 20
  • 145
  • 196
1
vote
3 answers

How to down boost a term in dismax

All: What I want to do is to highly score documents which have "season" in content field AND heavily punish documents with "season" in the title field AND boost the newly created documents. I wonder how to do that in Dismax(or eDismax)? Thanks
Kuan
  • 11,149
  • 23
  • 93
  • 201
1
vote
0 answers

Is it possible to score in Solr with multiple scoring functions?

This is possible using dismax in Solr: q=superman&qf=title^2 subject Is it possible to score based on multiple query fields, e.g. by having multiple scoring functions? To grasp my idea I would like to do something like…
mirelon
  • 4,896
  • 6
  • 40
  • 70
1
vote
1 answer

SolrDisMaxQuery missing from php solr?

I've just started using Solr and I'm testing it out on OSX using: Apache 2.2.26 PHP 5.5.20 from here This version of PHP came with the solr extension version 0.9.11. Searching through the documentation here, I found that it has documentation for a…
Tom Sweeney
  • 640
  • 1
  • 9
  • 19
1
vote
0 answers

Elasticsearch: Dismax boosts don't seem to be working

I have a search page on my site where I'm doing a search on name fields, and I need to return wildcard and fuzzy matches as well as exact matches; however, the exact matches should be displayed higher on the page, so I'm trying to make sure that the…
Erica Stockwell-Alpert
  • 4,624
  • 10
  • 63
  • 130
1
vote
1 answer

search by name of people with apache solr

I need to create a search for name of people. I already saw the great content in here but I need something different. Here's my requirement. I've tried to use a phonetic search, but the name of people that I need to index are non English names. I…
Thiago Custodio
  • 17,332
  • 6
  • 45
  • 90
1
vote
1 answer

Solr dismax highlighting not respecting analyzer

In the schema of Solr 3.6.2 there are two field declarations, text and exact The former using StandardTokenizer and…
Johan Sjöberg
  • 47,929
  • 21
  • 130
  • 148
1
vote
2 answers

Why solr dismax query returns empty resultset?

I'm trying to get free-text search results from indexed data with solr 4.5 using Dismax Query Parser but no results returning and no errors with simple queries like…
edigu
  • 9,878
  • 5
  • 57
  • 80
1
vote
1 answer

Solr 4.1 dismax pf not returning expected results

I am using solr4.1 and qt=dismax. I have a similar set with solr1.4 as well. When I query solr 4.1 with a pf field, the results returned do not have the documents with matching phrases at the top. With my previous installation of solr 1.4, I was…
1
vote
1 answer

Solr : best way to match "at the moon nasa" against "at the moon" through phrase query?

I've got an index of about 500.000 documents, and about 10 of these documents contains the title "at the moon" ('title' field) and the tag "nasa" ('tag' field). When I do a search for "at the moon nasa" these documents come up quite far down on the…
sbrattla
  • 5,274
  • 3
  • 39
  • 63
1
vote
1 answer

Solr DisMax query equivalent

I am trying to set up elevate handler in SOLR 3.5.0 and I need the equivalent of the below query in dismax format which defines different boost values on the same field based on the match type(exact match gets 200 whereas wildcard match gets…