Questions tagged [edismax]

Extended DisMax is an improved version of the solr DisMax, a popular query mode with Apache Solr

The Extended DisMax Parser is a new and more advanced DisMax parser introduced in the Apache Solr 3.1 release as experimental.

It improves punctuation handling and relevancy calculations, boolean operators among other things. See JIRA SOLR-1553 for more details.

146 questions
2
votes
1 answer

Prioritizing search results in Solr that start with the search string

I am using Solr 5.2, with a possible upgrade to 8.2 soon, along with edismax to search for a string among selected fields. Some of the query fields use ngram, so that results that contain the search string will show up in the search. I want to…
Yirmiyahu Fischer
  • 503
  • 2
  • 9
  • 22
2
votes
1 answer

Sunspot `LIKE` query

I'm using sunspot. How can I run a LIKE query (LIKE %q%)? I would like to do something like this: @search = Sunspot.search(User) do |q| q.text_fields { with(:company_name).like(params[:q]) } end.results instead of: @search =…
jpemberthy
  • 7,473
  • 8
  • 44
  • 52
2
votes
1 answer

Understanding Solr Function Query Performance

I'm working with "edismax" and "function-query" parsers in Solr and have difficulty in understanding whether the query time taken by "function-query" makes sense. The query I'm trying to optimize looks as follows: q={!func sum($q1,$q2,$q3)} where…
2
votes
1 answer

When to use edismax over dismax?

Solr supports dismax query parser and edismax query parser. How do we conclude when to use dismax and when edismax? When we should use edismax over dismax?
Yogita
  • 33
  • 1
  • 7
2
votes
0 answers

SOLR: eDisMax with nested documents

We do have an index of e-books that contains the metadata of the e-book and each page as a single document: Book 1 Page 1 Page 2 Page 3 ... Page n The parent document contain a field is_parent:true, an id and doc_id. For parent documents, the…
Gesh
  • 565
  • 1
  • 6
  • 21
2
votes
1 answer

Solr negative boost

I'm looking into the possibility of de-boosting a set of documents during query time. In my application, when I search for e.g. "preferences", I want to de-boost content tagged with ContentGroup:"Developer" or in other words, push those content…
Shamik
  • 1,671
  • 11
  • 36
  • 64
2
votes
4 answers

Solr search for exact phrase / substring

I am using solr for my work and it's excellent. However I am having trouble generating more elaborate search results. I am searching for products by their title, brand, gender, and category (dress shoes, jackets, etc). Brands live in a "Brands" DB…
mils
  • 1,878
  • 2
  • 21
  • 42
2
votes
1 answer

minimum_should_match in connection with dis-max-query

I am a neewby in elasticsearch as I just recently switched from Solr. I am now trying to convert an edismax query from my solrconfig to work with elasticsearch. Basically I want the terms to be searched in two fields at once, so I ended up with this…
linqu
  • 11,320
  • 8
  • 55
  • 67
2
votes
3 answers

solr dismax identify phrase match

I am searching for "i want honda bike" on a text field using edismax query handler. My intent is to find out docs having "honda bike" in it. Now the results containing "honda", "bike" and "honda bike". Basically I am not interest in "honda" and…
Rahul
  • 1,403
  • 4
  • 18
  • 31
2
votes
1 answer

SOLR phrase query

I have a slight problem when searching with SOLR 4.0 and attempting a phrase query. I have a field called "idx_text_general_ci" which is a case insensitive (all lowercased) field made up of all fields. When I try and search for a phrase (marine…
Alex
  • 21
  • 2
1
vote
3 answers

Solr - identical search result scores for multiple search terms?

I would like to know how it is possible to get different scores for a multiple terms search result? Certain results in solr have the same score even when there are multiple terms in the query as you will see in the example below. I have two indexes…
Jerome Erasmus
  • 115
  • 2
  • 11
1
vote
2 answers

Solr - Boosting result if query is found in a special field

I am wondering if it is possible with Solr 3.4 to boost a search result, if the query is found in a special field without using the "fieldname:query"-syntax. Let me explain: I have several fields in my index. One of it is named "abbreviation" and is…
1
vote
0 answers

Solr edismax is not returning results as expected. Trying to use qf for weight indexing

I have a search that queries to the Solr data. And it works mostly correct. However the result is not sorted the way I'd expect it to. There is; name, description and id and I'd like a way to make the ID more important in the search. Now, an exact…
1
vote
1 answer

how to use pf(Phrase Fields) and ps(Phrase Slop) of eDisMax Query Parser in solr?

What is Phrase Fields, Phrase Slop and Query Phrase Slop in eDisMax. I go through many website but not understand these with implementation. I want to know how query pass in solr using this and how output differs from each other If I have following…
1
vote
1 answer

Edismax query not working after migrating to solr 7.7 from 6.6

I have migrated to solr version 7.7 from 6.6 But after migrating to this version my edismax query is not working and returning 0 values. My edismax query is something like this. {!edismax qf='title' mm=1 k='("messi"^4.02 "ronaldinho"^2.01)'…
1 2
3
9 10