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

For Solr dismax query, how can I get each field score?

In my application, each document is composed by four text field, namely title, keywords, summary and text. I know that I can use dismax query with "fq=title keywords summary text" to let Solr do dismax query in the four fields. The maximal relevance…
Xiao
  • 555
  • 1
  • 5
  • 19
1
vote
2 answers

what type of parser have been used in solr

If I have not specified defType in solr query which parser will be used, whether DisMax or EDisMax ?
gangatharan
  • 781
  • 1
  • 12
  • 28
1
vote
1 answer

Boost page with specific fonts in solr

I crawled a website with Apache Nutch and index it to Apache Solr.How i can boost a document that query word exist in specific font(like h2 html tag or...)? for example my query is book and there are two page that contain book. in first page book is…
Amir
  • 341
  • 1
  • 5
  • 16
0
votes
1 answer

How can accent can be more accurate with bf and query with solr

i work with solr, i can't fix my problem of result's accuracy (q vs bf taking into account accents) i have a solr index with 2 fields indexed (this is simplified): town, population Félines, 100 Ferrand, 10000 when i query: q=Fé&qf=town…
clood
  • 27
  • 1
  • 8
0
votes
1 answer

Using dismax to search for multiword indexed terms

My solr schema is the following ( only important parts):
Tywnil
  • 1
  • 1
0
votes
1 answer

Solr/Dismax with dynamic fields

I just added some wildcard dynamic fields to my solr schema: Then I add a document with field name like asdfasdf_s If I do a query that brings up this document, I see that…
latj
  • 616
  • 1
  • 6
  • 23
0
votes
4 answers

Solr Dismax handler - whitespace and special character behaviour

I've got strange results when I have special characters in my query. Here is my request : q=histoire-france&start=0&rows=10&sort=score+desc&defType=dismax&qf=any^1.0&mm=100% Parsed query : +((any:histoir any:franc))…
Romain Meresse
  • 3,044
  • 25
  • 29
0
votes
0 answers

Boosting Documents in Apache Solr Based on Multiple Field Values using the DisMax Query Parser with OR Operator

I am attempting to boost documents in Apache Solr based on multiple field values using the DisMax query parser. Since this has to be a multiplicative boost, I can't use bq. Specifically, I want to boost documents that have city values of "Mumbai,"…
Sumit Raj
  • 11
  • 2
0
votes
2 answers

Dismax Request Handler

I'm using solr to search a set of data by name (e.g. "Dan" or "Joe Smith"). I'd like to return the results specified by the query (edit: with a wildcard on the end) in an order specified by another indexed field double_score (e.g. 10.0 or 72.3). I…
user592419
  • 5,103
  • 9
  • 42
  • 67
0
votes
1 answer

DisMax query parser is not running

Environment- solr-8.9.0 Movies data in a form of a .csv file has been indexed in apache solr. Movies data name,directed_by,genre,type,id,initial_release_date .45,Gary Lennon,Black comedy|Thriller|Psychological thriller|Indie film|Action Film|Crime…
user595014
  • 114
  • 3
  • 8
  • 20
0
votes
1 answer

Why dismax q.alt doesn't return any result

I'm new to solr. After following the tutorial exercise 1(https://solr.apache.org/guide/8_9/solr-tutorial.html), I'm able to do some solr query on my loacl machine. If I want to get result without condition, I will do the query…
Neil
  • 1
  • 1
0
votes
1 answer

Querying Solr indexes in order, stopping when you get a match?

I have a setup in which I have two indexes in solr: product_code and title. product_code uses a StrField and title uses a TextField with DoubleMetaphone. I have a single search box for users to type in either a product code or free text for a title…
0
votes
1 answer

Some queries don't work with dismax solr

I use solr and dismax reqest handler. But when I use this handler, some queries as query by field haven't worked. What's the problem ? Thanks
bobosh
  • 425
  • 5
  • 21
0
votes
1 answer

Solr Dismax Config for Boost Scoring

I've seen many of this topics here but still confusing to implement it. In my case i need to do these: Search certain phrases in title & text and give title^3, text^1 based on result in #1, i need to boost the results by modified time i've tried…
Komang
  • 5,004
  • 4
  • 29
  • 33
0
votes
1 answer

dismax query parse - mm attribute

"mm":"2", "q":"IBASEDESCRIPTION:(ankor sunnyvale tokyo^3 london labs)", "defType":"dismax", "fl":"score, IBASEDESCRIPTION", "q.op":"AND", "rows":"3", "debug.explain.structured":"true", "debugQuery":"on" This is what I see in the…
Gibbs
  • 21,904
  • 13
  • 74
  • 138