:      Thanks for you reply....can you please check the following details and
: give me suggestions how can i do it, then it will be more helpful to me

you need to show us some examples of your documents and the 
debugQuery=true output for those documents for us to better understand the 
behavior you are seeing.

Unless i'm missing something: FuzzyQuery defaults to using the 
"TopTermsScoringBooleanQueryRewrite" method based on the terms found in 
the index that match the fuzzy expression.  So the results of a simple 
fuzzy query should already come back based on the tf/idf scores of the 
terms.

: if a user search for "iphne 4" first it has to check exact match it is not
: found then i am splitting string into two strings s1 and s2. i am adding
: ~0.5 for both s1 and s2.

: i need "iphone 4" result first

Ok, but you haven't given us any indication of what you are *actually* 
getting as your first result, so we're really can't even begin to guess 
why you aren't getting the results you expect.

if you are seeing identical scores for all documents, then it's possibly 
because of some of hte other ways you have combined up custom params to 
build a complex query.


In particular: no where in your example URL, or the configured defaults 
you pasted below, do you show us how you are ultimaitely building up the 
"q" param from the various custom params you have defined...


: and i did the configuration in the following way...
: 
: 
: <str name="1.q.op">AND</str>
:    <str name="1.df">fsw_title</str>
:    <str name="1.rows">15</str>
:    <str name="1.q">{!edismax v=$s}</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">3</str>
:    <bool name="1.group.main">true</bool>
:    
:    <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">20</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.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">5</str>
:    <bool name="2.group.main">true</bool>
:    
:    <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>


-Hoss

Reply via email to