Hi Jack,

Thank you for giving reply

     I am doing my configuration in the following way. Can you please check
it and give some suggestion if i need any changes based on my requirement.

i am storing the query string in the following way.

If q="a b c d e f"

s=a+b+c+d+e+f
s1=a+b+c+d+e
s2=f





<arr name="components">
   <str>query</str>
   <str>debug</str>
  </arr>
  <lst name="defaults">
   <str name="c"></str>
   <str name="s"></str>
   <str name="s1"></str>
   <str name="s2"></str>
   <str name="fl">*,score</str>
   <str name="debugQuery">false</str>
   <str name="echoParams">all</str>
   <bool name="omitHeader">true</bool>
  </lst>
  <lst name="invariants">
  <int name="count">3</int>
  <str name="wt">json</str>
    
   <str name="1.q.op">AND</str>
   <str name="1.df">fsw_title</str>
   <str name="1.rows">14</str>
   <str name="1.q">{!edismax v=$s}</str>
   <str name="1.sort">mpId desc</str>
   <str name="1.fq">city:All OR _query_:"{!field f=city v=$c}"</str>
   <bool name="1.group">true</bool>
   <str name="1.group.field">mpId</str>
   <str name="1.group.limit">4</str>
   <bool name="1.group.main">true</bool>
   <str name="1.group.sort">score desc</str>
   <str name="1.defType">edismax</str>
   <bool name="1.lowercaseOperators">false</bool>
   <str name="1.qf">tsw_title^15.0 tf_title^10.0 tsw_keywords^1
keywords^0.5</str>
   <str name="1.pf2">fsw_title~1^50.0</str>
   <str name="1.pf3">fsw_title~1^25.0</str>
   <str name="1.bf">sum(product(typeId,100),weightage)</str>
   
   <str name="2.q.op">OR</str>
   <str name="2.df">fsw_title</str>
   <str name="2.rows">14</str>
   <str name="2.q">_query_:"{!edismax qf=$qfs1 pf=$pfx pf2=$pf2x v=$s1}" AND
_query_:"{!edismax qf=$qfs2 v=$s2}"</str>
   <str name="2.sort">mpId desc, score desc</str>
   <str name="2.fq">city:All OR _query_:"{!field f=city v=$c}"</str>
   <bool name="2.group">true</bool>
   <str name="2.group.field">mpId</str>
   <str name="2.group.limit">4</str>
   <bool name="2.group.main">true</bool>
   <str name="2.group.sort">score desc</str>
   <bool name="2.lowercaseOperators">false</bool>
   <str name="2.qfs1">fsw_title^30 tsw_title^20 tf_title^15.0
keywords^1.0</str>
   <str name="2.qfs2">tsw_title^15.0 tf_title^10.0 tsw_keywords^1
keywords^0.5</str>
   <str name="2.pfx">fsw_title~1^100.0</str>
   <str name="2.pf2x">fsw_title~1^50.0</str>
   <str name="2.pf3x">fsw_title~1^25.0</str>
   <str name="2.bf">product(typeId,100)</str>
</lst>
</requestHandler>



--
View this message in context: 
http://lucene.472066.n3.nabble.com/AND-OR-logic-tp4091931p4092059.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to