lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tanner Postert <tanner.post...@gmail.com>
Subject help with dismax query
Date Fri, 11 Feb 2011 21:11:30 GMT
I'm having a problem using the dismax query. For example: for the term
"obsessed with winning" I use:

http://localhost:8983/solr/core1/select?q=obsessed+with+winning&fq=code:xyz&shards=localhost:8983/solr/core1,localhost:8983/solr/core2,&rows=10&start=0&defType=dismax&qf=title
^10+description^4+text^1&debugQuery=true

that query yields zero results, but removing the dismax stuff it works
fine:

http://localhost:8983/solr/core1/select?q=obsessed+with+winning&fq=code:xyz&shards=localhost:8983/solr/core1,localhost:8983/solr/core2,&rows=10&start=0&debugQuery=true

or even adding the mm=2 yields results, but mm=3 does not.

Looking at the discussion here:
http://www.mail-archive.com/solr-user@lucene.apache.org/msg29682.html I see
that possibly sending the qf fields as separate values, rather than one may
yield better results but searching for:

http://localhost:8983/solr/core1/select?q=obsessed+with+winning&fq=code:xyz&shards=localhost:8983/solr/core1,localhost:8983/solr/core2,&rows=10&start=0&defType=dismax&qf=title
^10&qf=description^4&qf=text^1&debugQuery=true

yields no results either

There is at least 1 record which contains the exact phrase 'obsessed with
winning' in the title as well as the description and text (text is just a
copied field of title and description and couple of other fields). multiple
times, yet when the defType=dismax option is added, the query yields no
results.  Am I missing something?

Thanks in advance.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message