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
0
votes
1 answer

how to combine parent and children from Solr nested documents

I'm new on lucence, solr queries, I have doubts about how to make a query to nested documents. I have nested document indexed, as below [ { "id": "1", "title": "Solr1", "_childDocuments_": [ { "id": "2", "title":…
Neil
  • 2,714
  • 11
  • 29
  • 45
0
votes
1 answer

How to make SOLR search function return the result based on search input order

im using SOLR to perform text query on a multivalued field but its not returning as per what the input. im using edimax with standard tokenizer on the fields. for example, i search for the text "A B C", but im getting weird order result result #1:…
0
votes
0 answers

Solr Dismax using % in mm parameter give error

I am trying to use the mm (Minimum Should Match) parameter with the dismax parser. If I do just mm=2 or any other int value it seems to work fine. But if I try and add a percent as shown in the able, say mm=60%, then I get an "invalid digit" error…
Caesium
  • 13
  • 6
0
votes
1 answer

dismax query syntax

The query for standard request handler is as follows field1:(keyword1 OR keyword2) OR field2:(keyword1 OR keyword2) OR field3:(keyword1 OR keyword2) AND field4:(keyword3 OR keyword4) AND field5:(keyword5) How the same above query can be written for…
0
votes
1 answer

Only return search results that matches in all fields

I have fields for name and dimensions. The fields are: Name, dimensionLength, dimensionWidth and dimensionHeight. I want query productX 10x20 only to return matches containing both dimensions. So query above can return productX 10x20x30 and…
Jesse
  • 3
  • 4
0
votes
1 answer

How to use disMax query parser in solr

What is dismax query parser and how to use it. I just want to search for a string in a field in solr by its matching percentage. how to use it getting this done. Please give an example how to use dismax query parser. i have the following document.…
Sudhanshu Jain
  • 494
  • 3
  • 11
0
votes
2 answers

Exclude fields with null values in SOLR queries

I am trying to make a url request to an API that uses SOLR for queries. I have a lot of data with a lot of fields that contains different values and often some of those fields will contain a null value. I want to make a query where I retrieve all…
Luffen
  • 403
  • 1
  • 5
  • 17
0
votes
1 answer

AzureSearch : Dismax query parser capabilities

Is there any possibility of using Dismax Query Parser like capabilities in Azure search. e.g. Query Fields (qf), Phrase Fields (pf), boost function or boost query. I am aware of the fact that currently Azure Search supports lucene query syntax. Want…
0
votes
1 answer

Dismax solr query parser working very poorly

I have a very large database of 4.5M documents. When using the default query parser, the document I want to find appears in the results as it should. { "responseHeader":{ "status":0, "QTime":0, "params":{ "q":"\"I predict a…
geecko
  • 660
  • 1
  • 9
  • 22
0
votes
1 answer

Solr dismax query returns no data, while standard query does

I am unable to find any result when calling query like that: http://localhost:8983/solr/somecore/select?q=title:king&wt=json&defType=dismax But calling query like this: http://localhost:8983/solr/somecore/select?q=title:king&wt=json Finds as…
Drachenfels
  • 3,037
  • 2
  • 32
  • 47
0
votes
0 answers

How to get relevant search results in Solr in particular order of columns.

I want to group my Solr4.7.2 results in to particular relevant order such that I have 3 columns namely Title, Summary and Content on which I am doing my solr search. Currently I am using Simple Query Parser by executing this…
0
votes
1 answer

spelling correction with query in solr dismax parser

i am using dismax parser to query the data in the field in standard query parser if i search for the term "object_description:Traditional" it gives me 13 results,…
Roan
  • 89
  • 8
0
votes
0 answers

Solr EDisMax issue

I'm trying to get some documents from the index, with no luck. I have a document like this 4 whatever thing If you notice, the title says "thing". This field type is "text_es", described…
demogar
  • 701
  • 1
  • 8
  • 17
0
votes
1 answer

Solr: how do I use dismax instead of using copyField?

I've been trying to figure this out for a bit now. If I create a schema without the directive: I can't seem to pull anything up. But when I add that directive, things magically appear. I'm trying my query…
Mr Mikkél
  • 2,577
  • 4
  • 34
  • 52
0
votes
2 answers

Why does Dismax not work in simple query?

All: I am pretty new to SOLR, I upload some documents which have "season" in content field(store but not indexed, copy to text field) and in title field(store and indexed copy to text field) When I use basic query without dismax like:…
Kuan
  • 11,149
  • 23
  • 93
  • 201