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
25
votes
2 answers

What is the difference between dismax and EdisMax?

I like to know what is the difference between DisMax and EDisMax..? Is there any useful reference to know about that.? Also, I would like to know what are the queries DisMax failed to produce the result for which EDisMax is able to produce the…
gangatharan
  • 781
  • 1
  • 12
  • 28
13
votes
1 answer

Elasticsearch: how to use dismax query with filter

I am having hard time to figure out how to use elsticsearch dis_max query with filters. When I do this: { "query": { "dis_max": { "queries": [{ "multi_match": {} }, { …
ManuAc
  • 506
  • 4
  • 11
8
votes
2 answers

How to boost fields in solr

I already have the boost determined before hand. I have a field in the solr index called boost1 . This boost field will have a value from 1 to 10 similar to google PR rank. This is the boost that should be applied to every query ran in solr. here…
Luke101
  • 63,072
  • 85
  • 231
  • 359
5
votes
1 answer

Limiting the output from MoreLikeThis in Solr

I'm trying to use MoreLikeThis to get all similar documents but not documents with a specific contenttype. So the first query needs to find the one document that I want to get "More Like This" of - and the second query needs to limit the similar…
Svenn
  • 111
  • 2
  • 5
5
votes
1 answer

Wildcard searches using dismax handler?

I have successfully indexed files, and want to be able to search using wildcards. I am currently using the dismaxRequestHandler (QueryType = dismax) for the searches so that I can search all the fields for the query. A general search like 'computer'…
Imran Khan
  • 115
  • 2
  • 6
4
votes
1 answer

"protected phrase" in Solr

A customer of mine is a photo agency specialized in photojournalism (well, and gossip), so many of their customers' searches revolve around specific people. We index about 1.5m documents, with full-text search on headline and caption; and full-text…
Andrea Campi
  • 446
  • 2
  • 11
4
votes
1 answer

{!boost ...} multiplier with dismax query parser

How can I use the q={!boost ...} multiplier with the dismax query parser? With a standard query, you can do: ?q={!boost b=$multiplier}text:foo &multiplier=... However, when I try to do the equivalent for dismax: ?defType=dismax &q={!boost…
Uyghur Lives Matter
  • 18,820
  • 42
  • 108
  • 144
4
votes
0 answers

Solr: Additive boost query without resorting to DisMax - is it possible?

I have a disjunctive Lucene query like this: (clause_1 OR clause_2 OR ... OR clause_N) and I want to add an additive boost query on top of it, just like the bq parameter in DisMax parser. I tried {!edismax qf='' bq='my_boost_query'}(clause_1 OR…
Alex Vayda
  • 6,154
  • 5
  • 34
  • 50
4
votes
1 answer

Sunspot/Solr: non-alphabetical characters

I'm using Solr with Sunspot/dismax. Is it possible to query for non-alphabetic characters? I.e.: ~ ! @ # $ % ^ & * ( ) _ + - = [ ] { } | \ I'm aware that +/- must be escaped, as they are dismax inclusion/exclusion operators. But I'm getting no…
George Armhold
  • 30,824
  • 50
  • 153
  • 232
3
votes
0 answers

Validating my understanding of Dismax query in elasticsearch

I have tried understanding how dismax query works and I want to validate my understanding, please see if I understood it correctly. According to documentation a dismax query is: A query that generates the union of documents produced by…
logdev
  • 292
  • 6
  • 22
3
votes
3 answers

How do I do advanced search query using "OR" in solr dismax

How can you specify a query like "java with (developer OR programmer)" using solr dismax handler... It works with solr standard handler but not with dismax
3
votes
1 answer

Exact word not boosting much Solr

As reference in the given link https://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_make_exact-case_matches_score_higher I tried one example . my schema.xml configuration given below.
Juhan
  • 1,283
  • 2
  • 11
  • 30
3
votes
1 answer

Search by part of word with solr dismax

How i can search by part of word with dismax? For example when my query is "wor" i want get results with "word" "world" "adwords" etc. fields values. Is it possible?
3
votes
3 answers

Solr End User Query Translation

I am wondering if there is anyway to transform an end user query to a more complicated solr query based on some rules. For example, if the user types in 32" television, then I want to use the dismax query parser to let solr take care of this user…
user321532
  • 409
  • 5
  • 14
3
votes
1 answer

Similarity search using Solr's NGramFilterFactory

I am trying to use the NGramFilterFactory in Solr (using Sunspot in Rails) to find similar titles. I managed to add a new field to my solr schema.xml like follows:
jagse
  • 333
  • 4
  • 18
1
2 3 4 5 6 7