Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Cloogle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cloogle
Cloogle
Commits
003941f8
Verified
Commit
003941f8
authored
Nov 30, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't compute ngrams of all names in results for exact result ratios (takes too much time)
parent
299aef08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Cloogle/DB.icl
Cloogle/DB.icl
+1
-1
Cloogle/Search/Rank.dcl
Cloogle/Search/Rank.dcl
+2
-2
No files found.
Cloogle/DB.icl
View file @
003941f8
...
...
@@ -394,7 +394,7 @@ where
#
rn
=
toReal
n
#
annots
=
[
MatchingNGramsQuery
(
rn
/
qsize
)
,
MatchingNGramsResult
(
rn
/
toReal
(
max
1
$
length
$
'
NGrams
'.
ngrams
NGRAMS_CI
NGRAMS_N
name
))
,
MatchingNGramsResult
(
rn
/
toReal
(
size
name
))
]
=
((
idx
,
annots
),
db
)
...
...
Cloogle/Search/Rank.dcl
View file @
003941f8
...
...
@@ -12,8 +12,8 @@ from Cloogle.DB import :: Annotation, :: CloogleEntry, :: CloogleDB
* are given by this record.
*/
::
RankSettings
=
{
rs_matching_ngrams_q
::
!
Real
//*
matching n-grams in the query
,
rs_matching_ngrams_r
::
!
Real
//*
matching n-grams in
the result
{
rs_matching_ngrams_q
::
!
Real
//*
ratio of matching query n-grams
,
rs_matching_ngrams_r
::
!
Real
//*
nr. of matching n-grams divided by the size of
the result
,
rs_record_field
::
!
Real
//* record fields
,
rs_constructor
::
!
Real
//* constructors
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment