Skip to content

Commit 6dd256e

Browse files
authored
Merge pull request #399 from microsoft/local/search_scorer
2 parents 4931e4d + e05b001 commit 6dd256e

File tree

70 files changed

+9873
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+9873
-0
lines changed

SearchScorer/.gitignore

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
[Rr]eleases/
18+
x64/
19+
x86/
20+
build/
21+
bld/
22+
bin/
23+
Bin/
24+
obj/
25+
Obj/
26+
27+
# Visual Studio 2015 cache/options directory
28+
.vs/
29+
/wwwroot/dist/
30+
31+
# MSTest test Results
32+
[Tt]est[Rr]esult*/
33+
[Bb]uild[Ll]og.*
34+
35+
# NUNIT
36+
*.VisualState.xml
37+
TestResult.xml
38+
39+
# Build Results of an ATL Project
40+
[Dd]ebugPS/
41+
[Rr]eleasePS/
42+
dlldata.c
43+
44+
*_i.c
45+
*_p.c
46+
*_i.h
47+
*.ilk
48+
*.meta
49+
*.obj
50+
*.pch
51+
*.pdb
52+
*.pgc
53+
*.pgd
54+
*.rsp
55+
*.sbr
56+
*.tlb
57+
*.tli
58+
*.tlh
59+
*.tmp
60+
*.tmp_proj
61+
*.log
62+
*.vspscc
63+
*.vssscc
64+
.builds
65+
*.pidb
66+
*.svclog
67+
*.scc
68+
69+
# Chutzpah Test files
70+
_Chutzpah*
71+
72+
# Visual C++ cache files
73+
ipch/
74+
*.aps
75+
*.ncb
76+
*.opendb
77+
*.opensdf
78+
*.sdf
79+
*.cachefile
80+
81+
# Visual Studio profiler
82+
*.psess
83+
*.vsp
84+
*.vspx
85+
*.sap
86+
87+
# TFS 2012 Local Workspace
88+
$tf/
89+
90+
# Guidance Automation Toolkit
91+
*.gpState
92+
93+
# ReSharper is a .NET coding add-in
94+
_ReSharper*/
95+
*.[Rr]e[Ss]harper
96+
*.DotSettings.user
97+
98+
# JustCode is a .NET coding add-in
99+
.JustCode
100+
101+
# TeamCity is a build add-in
102+
_TeamCity*
103+
104+
# DotCover is a Code Coverage Tool
105+
*.dotCover
106+
107+
# NCrunch
108+
_NCrunch_*
109+
.*crunch*.local.xml
110+
nCrunchTemp_*
111+
112+
# MightyMoose
113+
*.mm.*
114+
AutoTest.Net/
115+
116+
# Web workbench (sass)
117+
.sass-cache/
118+
119+
# Installshield output folder
120+
[Ee]xpress/
121+
122+
# DocProject is a documentation generator add-in
123+
DocProject/buildhelp/
124+
DocProject/Help/*.HxT
125+
DocProject/Help/*.HxC
126+
DocProject/Help/*.hhc
127+
DocProject/Help/*.hhk
128+
DocProject/Help/*.hhp
129+
DocProject/Help/Html2
130+
DocProject/Help/html
131+
132+
# Click-Once directory
133+
publish/
134+
135+
# Publish Web Output
136+
*.[Pp]ublish.xml
137+
*.azurePubxml
138+
# TODO: Comment the next line if you want to checkin your web deploy settings
139+
# but database connection strings (with potential passwords) will be unencrypted
140+
*.pubxml
141+
*.publishproj
142+
143+
# NuGet Packages
144+
*.nupkg
145+
# The packages folder can be ignored because of Package Restore
146+
**/packages/*
147+
# except build/, which is used as an MSBuild target.
148+
!**/packages/build/
149+
# Uncomment if necessary however generally it will be regenerated when needed
150+
#!**/packages/repositories.config
151+
152+
# Microsoft Azure Build Output
153+
csx/
154+
*.build.csdef
155+
156+
# Microsoft Azure Emulator
157+
ecf/
158+
rcf/
159+
160+
# Microsoft Azure ApplicationInsights config file
161+
ApplicationInsights.config
162+
163+
# Windows Store app package directory
164+
AppPackages/
165+
BundleArtifacts/
166+
167+
# Visual Studio cache files
168+
# files ending in .cache can be ignored
169+
*.[Cc]ache
170+
# but keep track of directories ending in .cache
171+
!*.[Cc]ache/
172+
173+
# Others
174+
ClientBin/
175+
~$*
176+
*~
177+
*.dbmdl
178+
*.dbproj.schemaview
179+
*.pfx
180+
*.publishsettings
181+
orleans.codegen.cs
182+
183+
/node_modules
184+
185+
# RIA/Silverlight projects
186+
Generated_Code/
187+
188+
# Backup & report files from converting an old project file
189+
# to a newer Visual Studio version. Backup files are not needed,
190+
# because we have git ;-)
191+
_UpgradeReport_Files/
192+
Backup*/
193+
UpgradeLog*.XML
194+
UpgradeLog*.htm
195+
196+
# SQL Server files
197+
*.mdf
198+
*.ldf
199+
200+
# Business Intelligence projects
201+
*.rdl.data
202+
*.bim.layout
203+
*.bim_*.settings
204+
205+
# Microsoft Fakes
206+
FakesAssemblies/
207+
208+
# GhostDoc plugin setting file
209+
*.GhostDoc.xml
210+
211+
# Node.js Tools for Visual Studio
212+
.ntvs_analysis.dat
213+
214+
# Visual Studio 6 build log
215+
*.plg
216+
217+
# Visual Studio 6 workspace options file
218+
*.opt
219+
220+
# Visual Studio LightSwitch build output
221+
**/*.HTMLClient/GeneratedArtifacts
222+
**/*.DesktopClient/GeneratedArtifacts
223+
**/*.DesktopClient/ModelManifest.xml
224+
**/*.Server/GeneratedArtifacts
225+
**/*.Server/ModelManifest.xml
226+
_Pvt_Extensions
227+
228+
# Paket dependency manager
229+
.paket/paket.exe
230+
231+
# FAKE - F# Make
232+
.fake/
233+
.ionide

SearchScorer/.vscode/launch.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
// Use IntelliSense to find out which attributes exist for C# debugging
6+
// Use hover for the description of the existing attributes
7+
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
8+
"name": ".NET Core Launch (console)",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
// If you have changed target frameworks, make sure to update the program path.
13+
"program": "${workspaceFolder}/bin/Debug/net6.0/SearchScorer.dll",
14+
"args": [],
15+
"cwd": "${workspaceFolder}",
16+
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
17+
"console": "internalConsole",
18+
"stopAtEntry": false
19+
},
20+
{
21+
"name": ".NET Core Attach",
22+
"type": "coreclr",
23+
"request": "attach"
24+
}
25+
]
26+
}

SearchScorer/.vscode/tasks.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/SearchScorer.csproj",
11+
"/property:GenerateFullPaths=true",
12+
"/consoleloggerparameters:NoSummary"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/SearchScorer.csproj",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"--project",
36+
"${workspaceFolder}/SearchScorer.csproj"
37+
],
38+
"problemMatcher": "$msCompile"
39+
}
40+
]
41+
}

SearchScorer/Common/Bucket.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
namespace SearchScorer.Common
2+
{
3+
public enum Bucket
4+
{
5+
Acronym,
6+
Author,
7+
CommonName,
8+
ExactMatch,
9+
Freshness,
10+
MultiTerm,
11+
PartialId,
12+
Prefix,
13+
Tags,
14+
TopDownloads,
15+
}
16+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
3+
namespace SearchScorer.Common
4+
{
5+
public static class ConsoleUtility
6+
{
7+
public static void WriteHeading(string heading, char fence)
8+
{
9+
Console.WriteLine();
10+
Console.WriteLine(heading);
11+
Console.WriteLine(new string(fence, heading.Length));
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)