The query re-writing is...er...interesting, and I'll skip that for now...

As for why you're not getting results, see the mm parameter
here: http://wiki.apache.org/solr/DisMaxQParserPlugin

Especially the line:
The default value is 100% (all clauses must match)

so I suspect your categories not matching, especially if there's
only a single category per document!

Best
Erick

On Tue, Nov 15, 2011 at 9:46 AM, Jean-Claude Dauphin
<jc.daup...@gmail.com> wrote:
> Hello,
>
> I would be very greateful if somebody could explain me what is the exact
> problem and how to get the right results.
>
> Using dismax or edismax with the following query:
> EDISMAX query (q)=("chef de projet" category10000071 category10055078
> category10055405)
> gives no results (should get 33 documents with "chef de projet"
>
> while making the following query
> EDISMAX query (q)=("chef projet")
>
> gives the right number of  results
>
> Here is the debug info:
>
> *queryResponse*=[{responseHeader={status=0,
>
> QTime=16,
>
> params={facet=true,
>
> f.createDate.facet.date.start=NOW/DAY-6DAYS,
>
> *tie*=0.1,
>
> facet.limit=40000,
>
> f.location.facet.limit=3,
>
> *q.alt*=*:*,
>
> facet.date.other=all,
>
> hl=true,version=2,
>
> *bq*=[categoryPayloads:category10000071^1,
> categoryPayloads:category10055078^1, categoryPayloads:category10055405^1],
>
> debugQuery=true,
>
> *fl*=*,score,
>
> facet.field=[soldProvisions, contractTypeText, nafCodeText, createDate,
> wage, keywords, labelLocation, jobCode, organizationName,
> requiredExperienceLevelText],
>
> *qs*=3,
>
> *qt*=edismax,
>
> facet.date.end=NOW/DAY,
>
> facet.mincount=1,
>
> facet.date=createDate,
>
> *qf*= title^4.0 formattedDescription^2.0 nafCodeText^2.0 jobCodeText^3.0
> organizationName^1.0 keywords^3.0 location^1.0 labelLocation^1.0
> categoryPayloads^1.0,
>
> hl.fl=title,
>
> wt=javabin,
>
> rows=20,
>
> start=0,
>
> *q*=("chef de projet" category10000071 category10055078 category10055405),
>
> facet.date.gap=+1DAY}},
>
>
> *response*={numFound=0,start=00.0,docs=[]},facet_counts={facet_queries={},facet_fields={soldProvisions={},contractTypeText={},nafCodeText={},createDate={},wage={},keywords={},labelLocation={},jobCode={},organizationName={},requiredExperienceLevelText={}},facet_dates={createDate={gap=+1DAY,start=Wed
> Nov 09 01:00:00 CET 2011,end=Tue Nov 15 01:00:00 CET
> 2011,before=0,after=0,between=0}},facet_ranges={}},highlighting={},
>
> debug={
>
> *rawquerystring*=("chef de projet" category10000071 category10055078
> category10055405),
>
> *querystring*=("chef de projet" category10000071 category10055078
> category10055405),
>
> *parsedquery*=+((*DisjunctionMaxQuery*((title:"chef de projet"~3^4.0 |
> keywords:chef de projet^3.0 | organizationName:chef de projet |
> location:chef de projet | formattedDescription:"chef de projet"~3^2.0 |
> nafCodeText:chef de projet^2.0 | jobCodeText:chef de projet^3.0 |
> categoryPayloads:"chef de projet"~3 | labelLocation:chef de projet)~0.1)
>
> *DisjunctionMaxQuery*((title:category10000071^4.0 |
> keywords:category10000071^3.0 | organizationName:category10000071 |
> location:category10000071 | formattedDescription:category10000071^2.0 |
> nafCodeText:category10000071^2.0 | jobCodeText:category10000071^3.0 |
> categoryPayloads:category10000071 | labelLocation:category10000071)~0.1) *
> DisjunctionMaxQuery*((title:category10055078^4.0 |
> keywords:category10055078^3.0 | organizationName:category10055078 |
> location:category10055078 | formattedDescription:category10055078^2.0 |
> nafCodeText:category10055078^2.0 | jobCodeText:category10055078^3.0 |
> categoryPayloads:category10055078 | labelLocation:category10055078)~0.1) *
> DisjunctionMaxQuery*((title:category10055405^4.0 |
> keywords:category10055405^3.0 | organizationName:category10055405 |
> location:category10055405 | formattedDescription:category10055405^2.0 |
> nafCodeText:category10055405^2.0 | jobCodeText:category10055405^3.0 |
> categoryPayloads:category10055405 |
> labelLocation:category10055405)~0.1))~4) *DisjunctionMaxQuery*((title:"(("chef
> chef) de (projet" projet) category10000071 category10055078
> (category10055405) category10055405)"^4.0)~0.1)
> categoryPayloads:category10000071 categoryPayloads:category10055078
> categoryPayloads:category10055405,
>
> *parsedquery_toString*=+(((title:"chef de projet"~3^4.0 | keywords:chef de
> projet^3.0 | organizationName:chef de projet | location:chef de projet |
> formattedDescription:"chef de projet"~3^2.0 | nafCodeText:chef de
> projet^2.0 | jobCodeText:chef de projet^3.0 | categoryPayloads:"chef de
> projet"~3 | labelLocation:chef de projet)~0.1 (title:category10000071^4.0 |
> keywords:category10000071^3.0 | organizationName:category10000071 |
> location:category10000071 | formattedDescription:category10000071^2.0 |
> nafCodeText:category10000071^2.0 | jobCodeText:category10000071^3.0 |
> categoryPayloads:category10000071 | labelLocation:category10000071)~0.1
> (title:category10055078^4.0 | keywords:category10055078^3.0 |
> organizationName:category10055078 | location:category10055078 |
> formattedDescription:category10055078^2.0 |
> nafCodeText:category10055078^2.0 | jobCodeText:category10055078^3.0 |
> categoryPayloads:category10055078 | labelLocation:category10055078)~0.1
> (title:category10055405^4.0 | keywords:category10055405^3.0 |
> organizationName:category10055405 | location:category10055405 |
> formattedDescription:category10055405^2.0 |
> nafCodeText:category10055405^2.0 | jobCodeText:category10055405^3.0 |
> categoryPayloads:category10055405 | labelLocation:category10055405)~0.1)~4)
> (title:"(("chef chef) de (projet" projet) category10000071 category10055078
> (category10055405) category10055405)"^4.0)~0.1
> categoryPayloads:category10000071 categoryPayloads:category10055078
> categoryPayloads:category10055405,
>
> explain={},
>
> QParser=ExtendedDismaxQParser,
>
> altquerystring=null,
>
> boost_queries=[categoryPayloads:category10000071^1,
> categoryPayloads:category10055078^1, categoryPayloads:category10055405^1],
>
> parsed_boost_queries=[categoryPayloads:category10000071,
> categoryPayloads:category10055078, categoryPayloads:category10055405],
>
> boostfuncs=null,
>
> The last part:
> *DisjunctionMaxQuery*((title:"(("chef chef) de (projet" projet)
> category10000071 category10055078 (category10055405)
> category10055405)"^4.0)~0.1) categoryPayloads:category10000071
> categoryPayloads:category10055078 categoryPayloads:category10055405,
>
> is quite strange for me and I would appreciate if someone could explain the
> query re-writing
>
> Best wishes,
>
> JC
> --
> Jean-Claude Dauphin
>

Reply via email to