开发者

Need to use Solr dismax handler but i have no q parameter???

开发者 https://www.devze.com 2023-02-25 09:46 出处:网络
Hi 开发者_如何学Ci am trying to make a solr Query using dismax handler but i have no q parameters because i have to match directly on fields..

Hi 开发者_如何学C i am trying to make a solr Query using dismax handler but i have no q parameters because i have to match directly on fields..

hl.fragsize=200&mm=1&facet=on&facet.mincount=1&qf=text+&wt=json&hl=true&rows=50&fl=*+score&start=0&q=*:*&fq=jSFunT:("Fresher"+OR+"Developer+/+Programmer+/+Coder")&fq=jNMinEx:[2+TO+*]&fq=jNMaxEx:[2+TO+5]&fq=jNMinSal:[-1+TO+*]&fq=jNMaxSal:[-1+TO+-1]&bq=jSFunT:("Developer+/+Programmer+/+Coder")^1&bq=jSkill:(HTML)^2&bq=jCID:(41449)^8&bq=jJT:(Developer+)^8&bq=jLoc:(Mumbai-Thane+)^4&bq=jINDT:("IT(Software,+Dotcom,+Infra.Mgmt.%26+UI+Design)")^1

OR you can better understand it from below..   

&mm=1
&qf=text

&wt=json

&hl=true

&rows=50

&fl=*+score

&start=0

&q=*:*

&fq=jSFunT:("Fresher"+OR+"Developer+/+Programmer+/+Coder")

&fq=jNMinEx:[2+TO+*]

&fq=jNMaxEx:[2+TO+5]

&fq=jNMinSal:[-1+TO+*]

&fq=jNMaxSal:[-1+TO+-1]

&bq=jSFunT:("Developer+/+Programmer+/+Coder")^1

&bq=jSkill:(HTML)^2

&bq=jCID:(41449)^8

&bq=jJT:(Java Developer)^8

&bq=jLoc:(Mumbai-Thane)^4

&bq=jINDT:("IT(Software,+Dotcom,+Infra.Mgmt.%26+UI+Design)")^1

Here all the "bq" will not work because the qt=dismax is not supplied if i use that then the whole query will fail

can i any one help me out i will be very thankful for this kindness


Have a look at the q.alt parameter, which lets you specify a fall back query:

q.alt=*:*

If you replace your q parameter with that one, dismax should play just fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消