Hi I have following questions about dismax query handler? someone can clarify
me about it.
1. dismax query handler and filter query (fq)
if query= coffee , fq= yiw_bus_city: san jose,
I get 0 results for this query again, but this one works fine, If mention
qt=standard query handler
2. dismax and ranking
q=san jose
but my collection have more document for San Francisco, less for San Jose,
a. i get san francisco listed or listed before san jose some time, i guess
this is because of the term frequency of san francisco,
how can I present the results for the exact query match first? , I don't
want to manually boost the particular keyword for some reason. listing the
exact matches first and following by other results will be good.
configs:
requestHandler name=dismax class=solr.SearchHandler default=true
lst name=defaults
str name=defTypedismax/str
str name=echoParamsexplicit/str
float name=tie0.01/float
str name=qf
yiw_bus_name^1.0 yiw_bus_city^1.0 yiw_bus_ps_info^0.2
yiw_bus_description^0.2 yiw_bus_general_information^0.2 yiw_bus_zip^0.5
yiw_bus_street^0.5
/str
str name=pf
yiw_bus_city^1.0 yiw_bus_zip^0.5 yiw_bus_street^0.5
/str
str name=bf
ord(yiw_bus_name)^0.5 recip(rord(yiw_bus_city),1,1000,1000)^0.3
/str
!--
str name=fl/str
--
str name=mm
2lt;-1 5lt;-2 6lt;70%
/str
int name=ps100/int
str name=q.alt*:*/str
!-- example highlighter config, enable per-query with hl=true --
str name=hl.fl/str
!-- for this field, we want no fragmenting, just highlighting --
str name=f.name.hl.fragsize0/str
!-- instructs Solr to return the field itself if no query terms are
found --
str name=f.name.hl.alternateFieldyiw_bus_name/str
str name=f.text.hl.fragmenterregex/str
!-- defined below --
/lst
/requestHandler
schema:
field name=yiw_bus_general_information type=text indexed=true
stored=true default=NA /
field name=yiw_bus_ps_info type=string indexed=true stored=true
default=NA /
field name=yiw_bus_city type=string indexed=true stored=true
multiValued=false default=NA /
field name=yiw_bus_state type=string indexed=true stored=true
multiValued=false default=NA /
field name=yiw_bus_country type=string indexed=true stored=true
multiValued=false default=NA /
field name=yiw_bus_street type=string indexed=true stored=true
multiValued=false default=NA /
field name=yiw_bus_zip type=string indexed=true stored=true
multiValued=false default=0 /
--
View this message in context:
http://www.nabble.com/dismax-matches---ranking-tp25300011p25300011.html
Sent from the Solr - User mailing list archive at Nabble.com.