Reputation: 211
i have 3 field in my solr index database and i search two queries but different field
Indexed data
employeeid : 220232
pskills : JSP, Servlets, HTML, Java
oskills : DB2, Oracle, JDBC, JNI, JSP, VC++, C, C++, Java, SQL, XML, Palm OS, UNIX, PALM OS, AIX, Linux, Solaris, Windows 2000, TCP/IP, IP, IDS, Asset Liability Management, Enterprise Application Integration
schema.xml
<field name="employeeid" type="string" indexed="true" stored="true" required="true" />
<field name="pskills" type="text" indexed="true" stored="false" required="false" />
<field name="oskills" type="text" indexed="true" stored="false" required="false" />
Query 1 = employeeid : 220232 AND (pskills : ( ( "java" ) )^3000.00)
Score: 0.6169528
Query 2 = employeeid : 220232 AND (oskills : ( ( "java" ) )^3000.00)
Score: 0.32307756
My question is Both field having "Java" keyword then why given different value
Upvotes: 0
Views: 134
Reputation: 33341
A number of reasons! Particularly:
For some documentation on lucene scoring, see TFIDFSimilarity.
The scores you get are specific to the query and the state of the index at the time it was run. They aren't intended to be compared to the scores of other queries.
Upvotes: 1