lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: dismax request handler will give wrong result in solr 4.3
Date Wed, 22 Jan 2014 13:37:22 GMT
Hi Viresh,

A couple of things:

1) / character is a special query parser character now. It wasn't before. It is used for regular
expression searches.

What happens when you use fq=metaData:("channelId/100" OR "channelId/10" OR "channelId/160"
OR "channelId/12")


fq={!lucene df=metaData q.op=OR}"channelId/100" "channelId/10" "channelId/160" "channelId/12"

On Wednesday, January 22, 2014 2:30 PM, Viresh Modi <> wrote:
When i use dismax query type handler in *SOLR 1.4 *and then same for *SOLR
4.3 *then both give different numFound record both have same index profile
as well.
means Solr 1.4 gives 9 records
    and Solr 4.3 gives  99 records.

*My Query is:*

&q=system admin
&fq= NOT ( id:OnlineR3_8_page_410_0 OR id:OnlineR3_8_page_411_0 OR
id:OnlineR3_8_page_628_0 )
&fq=(metaData:channelId/100 OR metaData:channelId/10 OR
metaData:channelId/160 OR  metaData:channelId/12)&sort=score desc

*and In Solr Config.xml has handler::*

<requestHandler name="dismax" class="solr.SearchHandler"  default="true">
    <lst name="defaults">
     <str name="defType">dismax</str>
     <str name="echoParams">explicit</str>
     <str name="qf">
         content name
     <int name="qs">1000</int>
     <!-- example highlighter config, enable per-query with hl=true -->
     <str name="hl">true</str>
     <str name="hl.fl">content</str>
     <!-- for this field, we want no fragmenting, just highlighting -->
     <str name="f.content.hl.fragsize">150</str>
     <!-- instructs Solr to return the field itself if no query terms are
          found -->
     <str name="">name</str>
     <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->


Viresh Modi

View raw message