Below is my query
http://localhost:8983/solr/select/?q=subject:session management in
php&fq=category:[*%20TO%20*]&fl=category,score,subject

The result is like below

<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
        <int name="status">0</int>
        <int name="QTime">983</int>
        <lst name="params">
                <str name="fq">category:[* TO *]</str>
                <str name="q">subject:session management in php</str>
                <str name="fl">category,score,subject</str>
        </lst>
</lst>
<result name="response" maxScore="0.8770298" start="0" numFound="2">
<doc>
        <float name="score">0.8770298</float>
        <str name="category">Annapurnap</str>
        <str name="subject">session management in asp.net</str>
</doc>

<doc>
        <float name="score">0.8770298</float>
        <str name="category">Annapurnap</str>
        <str name="subject">session management in PHP</str>
</doc>
</result> 
</response>

The question is how come both have the same score when 1 is exact match and
the other isn't.
This is the schema
<field name="subject" type="text_en_splitting" indexed="true"
stored="true"/>
<field name="category" type="text_general" indexed="true" stored="true"/>





--
View this message in context: 
http://lucene.472066.n3.nabble.com/solre-scores-remains-same-for-exact-match-and-nearly-exact-match-tp4053406.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to