lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ram_sj <>
Subject dismax matches & ranking
Date Fri, 04 Sep 2009 19:01:47 GMT

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.


<requestHandler name="dismax" class="solr.SearchHandler" default="true" >
    <lst name="defaults">
      <str name="defType">dismax</str>
      <str name="echoParams">explicit</str>
      <float name="tie">0.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
      <str name="pf">
        yiw_bus_city^1.0 yiw_bus_zip^0.5 yiw_bus_street^0.5
      <str name="bf">
        ord(yiw_bus_name)^0.5 recip(rord(yiw_bus_city),1,1000,1000)^0.3
     <str name="fl"></str>
      <str name="mm">
        2&lt;-1 5&lt;-2 6&lt;70%
      <int name="ps">100</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="">0</str>
      <!-- instructs Solr to return the field itself if no query terms are
          found -->
      <str name="">yiw_bus_name</str>
      <str name="f.text.hl.fragmenter">regex</str>
      <!-- defined below -->


<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:
Sent from the Solr - User mailing list archive at

View raw message