lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Kahwe Smith <>
Subject Re: optional vs. probhibited aka standard vs. dismax handler
Date Tue, 29 Jun 2010 12:02:31 GMT

On 29.06.2010, at 13:38, Lukas Kahwe Smith wrote:

> On 29.06.2010, at 13:24, Jan H√łydahl / Cominvent wrote:
>> Hi,
>> In DisMax the "mm" parameter controls whether terms are required or optional. The
default is 100% which means all terms required, i.e. you do not need to add "+". You can change
to mm=0 and you will get the same behaviour as standard parser, i.e. an "OR" behaviour, where
the "+" would say that a term is required.
> ok thx
>> Using the "-" in DisMax still means prohibited.
> what do you mean with "still"? .. with the default it behaves like "optional" in my tests.
i will test with mm=0 if it behaves like prohibited.

maybe to illustrate the issue:*&tm=any&s=Search

generates the following query. note i have the standard query handler with no hardcoded parameters
setup as the default handler

INFO: [Clause_en] webapp=/solr path=/select params={hl.fragsize=0&facet=true&sort=score+desc&hl.simple.pre=<strong>&*&wt=json&hl=true&rows=21&fl=*,score&start=0&q=%2Btag_ids:(23)++%2Bdocument_code_prefix:(A/RES/58)++(_query_:"{!dismax+qf%3D'content+document_title'+pf%3D'content+document_title'+v%3D$qq}")&</strong>&facet.field={!ex%3Ddt+key%3Dorig_legal_value}legal_value&facet.field={!ex%3Ddt+key%3Dorig_adoption_year}adoption_year&facet.field={!ex%3Ddt+key%3Dorig_organisation_id}organisation_id&facet.field={!ex%3Ddt+key%3Dorig_addressee_ids}addressee_ids&facet.field={!ex%3Ddt+key%3Dorig_documenttype_id}documenttype_id&facet.field={!ex%3Ddt+key%3Dorig_information_type_id}information_type_id&facet.field={!ex%3Ddt+key%3Dorig_operative_phrase_id}operative_phrase_id&facet.field={!ex%3Ddt+key%3Dorig_tag_ids}tag_ids&qq=decade+-domestic}
hits=19 status=0 QTime=23 

I am using the dismax handler for the things that are not prefixed with a field name:
decade -domestic

I am using the default mm setting.

But if you search for "domestic" in the result of the above url you can find "domestic" included
in one of the results.

Lukas Kahwe Smith

View raw message