1) Coordination factor is controlled by the Similarity you have configured 
-- there is no request time option to affect hte coordination function. 
the Default Similarity already includes a simple ratio coord factor...

https://lucene.apache.org/core/4_4_0/core/org/apache/lucene/search/similarities/DefaultSimilarity.html#coord%28int,%20int%29

2) your example query includes "quote" characters which makes it a phrase 
query, not a simple boolean query, so in that case both termA and termB 
will be required, and must be within the default slop number of term 
positions away from eachother.  if you instead used a query param 
of:  q=termA termB   ... then you'd see the coord factor come into play

3) in addition to the coord factor is the issue of fieldNorms -- but 
default text fields include a norm factor that takes into account 
thelength of a field, so in spite of the coord factor a very short field 
(ie; doc1) might score higher then a long field (ie: doc2) even if the lon 
field has more matches -- if you odn't want this, just use 
omitNorms="true" on your field.


: How can i specify coordination factor between query terms
: eg. q="termA termB"
: 
: doc1= { field: termA}
: doc2 = {field: termA termB termC termD }
: 
: I want doc2 scored higher than doc1
: 
: -- 
: Anirudha P. Jadhav
: 

-Hoss

Reply via email to