niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Server
Oracle Text Score Computation
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
jatinder.1975@gmail.com
*nix forums beginner


Joined: 21 Apr 2006
Posts: 29

PostPosted: Fri Jul 21, 2006 1:00 pm    Post subject: Oracle Text Score Computation Reply with quote

Hello All,

I am bit confused about the value of SCORE returned when using Conatins
in where clause.

tmpdata
Name
---------
jatinder singh
singh jatinder
raj kumar


SQL> Select contains(name,'sin%',1),score(1) from tmpdata;

CONTAINS(NAME,'SIN%',1) SCORE(1)
----------------------- ----------
6 6
6 6
0 0

I found on google this ...
/*************
How Score is Computed
********/
Score for each document is computed using the standard Salton formula:
3f(1+log(N/n))
Where f is the frequency of the search term in the document,
N is the total number of rows in the table,
and n is the number of rows which contain the search term.
This is converted into an integer in the range 0 - 100.
Query operators like AND and OR operate on the scores of their
operands.

May be I am getting it wrong .

3*2(1+log(3/2)) it is above 8.43279065 . So how Score is actually
computed??

Because I am looking at some logic where I can found % Match for
example.
If I entered "sin" as a search string.

"sin" is part of "singh" in first and second row. % Match should be 3/5
= 60%
"sing" is part of "singh" in first and second row. % Match should be
4/5 = 80%
"singh" is part of "singh" in first and second row. % Match should be
5/5 = 100%

Is there any method by which we can find it easily??

With Warm regards
Jatinder Singh
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Thu Dec 04, 2008 8:19 am | All times are GMT
navigation Forum index » Databases » Oracle » Server
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Move Oracle 10g database to another location Selt Server 0 Fri Jul 21, 2006 2:14 pm
No new posts Oracle runtime Spitfire Server 0 Fri Jul 21, 2006 1:18 pm
No new posts Can a trigger insert records into another oracle server Tauqir Server 2 Fri Jul 21, 2006 12:27 am
No new posts Moving Oracle filesystem to SAN howard Server 1 Thu Jul 20, 2006 11:49 pm
No new posts AIX parameters for Oracle Vincent M Server 2 Thu Jul 20, 2006 6:58 pm

Electricity Suppliers | Fast Loans | Mortgages | Free eBooks Download | Consumer information
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1607s ][ Queries: 16 (0.0973s) ][ GZIP on - Debug on ]