quick_search-core 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/app/assets/javascripts/quick_search.js.erb +9 -0
- data/app/assets/javascripts/quick_search/appstats.js.erb +73 -0
- data/app/assets/javascripts/quick_search/appstats_best_bets.js.erb +905 -0
- data/app/assets/javascripts/quick_search/appstats_clicks_overview.js.erb +719 -0
- data/app/assets/javascripts/quick_search/appstats_general_statistics.js.erb +908 -0
- data/app/assets/javascripts/quick_search/appstats_sessions_details.js.erb +660 -0
- data/app/assets/javascripts/quick_search/appstats_sessions_overview.js.erb +481 -0
- data/app/assets/javascripts/quick_search/appstats_spelling_suggestions.js.erb +902 -0
- data/app/assets/javascripts/quick_search/appstats_top_searches.js.erb +633 -0
- data/app/assets/javascripts/quick_search/event_tracking.js.erb +22 -33
- data/app/assets/javascripts/quick_search/xhr_search.js +7 -3
- data/app/assets/stylesheets/quick_search/appstats.scss +148 -0
- data/app/assets/stylesheets/quick_search/quick_search.scss +0 -16
- data/app/controllers/concerns/quick_search/doi_trap.rb +1 -1
- data/app/controllers/quick_search/appstats_controller.rb +267 -144
- data/app/controllers/quick_search/logging_controller.rb +165 -0
- data/app/controllers/quick_search/search_controller.rb +1 -23
- data/app/controllers/quick_search/typeahead_controller.rb +48 -0
- data/app/models/event.rb +6 -0
- data/app/models/search.rb +7 -0
- data/app/models/session.rb +9 -0
- data/app/searchers/quick_search/best_bets_searcher.rb +1 -1
- data/app/views/layouts/quick_search/_google_analytics.html.erb +4 -9
- data/app/views/layouts/quick_search/_search_form.html.erb +2 -2
- data/app/views/layouts/quick_search/application.html.erb +4 -0
- data/app/views/quick_search/appstats/_date_range.html.erb +14 -13
- data/app/views/quick_search/appstats/_graph_best_bets.html.erb +6 -0
- data/app/views/quick_search/appstats/_graph_clicks_overview.html.erb +12 -0
- data/app/views/quick_search/appstats/_graph_general_statistics.html.erb +19 -0
- data/app/views/quick_search/appstats/_graph_sessions_details.html.erb +19 -0
- data/app/views/quick_search/appstats/_graph_sessions_overview.html.erb +9 -0
- data/app/views/quick_search/appstats/_graph_spelling_suggestions.html.erb +6 -0
- data/app/views/quick_search/appstats/_graph_top_searches.html.erb +6 -0
- data/app/views/quick_search/appstats/_menu.html.erb +16 -3
- data/app/views/quick_search/appstats/_sessions_details_device_filters.html.erb +9 -0
- data/app/views/quick_search/appstats/_sessions_details_location_filters.html.erb +9 -0
- data/app/views/quick_search/appstats/_sessions_overview_graph_filters.html.erb +9 -0
- data/app/views/quick_search/appstats/clicks_overview.html.erb +3 -14
- data/app/views/quick_search/appstats/index.html.erb +3 -23
- data/app/views/quick_search/appstats/sessions_details.html.erb +9 -0
- data/app/views/quick_search/appstats/sessions_overview.html.erb +9 -0
- data/app/views/quick_search/appstats/top_searches.html.erb +3 -32
- data/app/views/quick_search/appstats/top_spot.html.erb +7 -7
- data/app/views/quick_search/search/_module_with_paging.html.erb +1 -1
- data/app/views/quick_search/search/_result_title.html.erb +1 -1
- data/config/quicksearch_config.yml.example +3 -0
- data/config/routes.rb +31 -3
- data/db/migrate/20161201141003_create_sessions.rb +12 -0
- data/db/migrate/20161201142811_change_event_columns.rb +11 -0
- data/db/migrate/20161201143901_add_session_id_to_searches.rb +5 -0
- data/db/migrate/20161212192454_add_date_string_columns.rb +11 -0
- data/db/seeds.rb +83 -7
- data/lib/generators/quick_search/templates/quick_search_typeahead.js +253 -0
- data/lib/generators/quick_search/typeahead_generator.rb +162 -0
- data/lib/quick_search/engine.rb +1 -0
- data/lib/quick_search/version.rb +1 -1
- data/test/dummy/db/schema.rb +25 -6
- data/test/dummy/log/benchmark.log +121 -241
- data/test/dummy/log/development.log +236 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0b/0bXp2nnjPLNuYQRAMo1RkhNr8RSC8vqZo_7soo0XZTE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3p/3pAfj3gt9c9rLmOrDkMvW2r6Swm5YhuGQ1EN3va9LDE.cache +6 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3r/3r7qg-LCIcD5882b6GKgRTZycpAlhoSNJccVH06yRCQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{UA/UAOIipK_ejTAUFI6XxASoweyUiC3t64VfVzV-MfsFD8.cache → 4h/4hLiHzJdffGLMZCeIkbisOdFQSyqs54YkoZpBpGotVk.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Hr/Hr-kCuPY72nIKAdnsDTz9JqXd_z1WL6FSGMAq4HppZg.cache → 5Y/5Yh8GnSzywqhuMWMloKnL9FnuIxa9rBw6hN2Ecv0urw.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8h/8hHsBZ0Il3GVKNj0HgTh-s-XpPVkHrcSY0EJ4v548sk.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{fI/fInu_Gja7ik39t207tqj4CtlL0akQRbjD2T7qEtd0zE.cache → 8n/8nKAboU_CeVIX30-Q9BtSV5TXdE07WU8hO0OQ0N3KOs.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{dz/dzCaa80YgyvJINTgsyrVhKv9UQ1OC82GfAsA-IP96iQ.cache → Af/Afug8duevWkZFPkOMnZ5z_IbRT6JMZo4jw1QFmLiXXA.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/C2/C24SLDoUbdiHRmPZx5lIZ3XPXmn9FDq7j7gZmbpDtcE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CH/CHuDjj47dHGqRD3uN1JNwnlFyjjEKB09KR6WVsLj2Do.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ci/Cif3NOwhu5i6Qm3iRv2gNJLi_cu8yDVz0Nrq8TZu1tc.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FQ/FQWd8V-Pek1LBAfW9vzcG-FpWySsPRhMVzH9DlPxLWU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fa/FaYEz8CfLTkxVZvnbgKGvJMhhBwNvEgsZgUwaHNRlaQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/IA/IALQq6ICbs3VBSRsaUmGuN73Qv5wDfWTP86VmMh_sVs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/K1/K1jnTrW-_s64kqCA6fnoQ-ID-rDaGX34J-TNPyzDbLs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mz/MzXE1Go_GKyu6AvJPhw394BtPM_jVTf0hMwobBi15tk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Os/OsIhoBDw5N2AWGQ-EMK79tgwPS1AC6Dy_gMSJdOv2Ss.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{B5/B5ptGSZGmgHvoK2UDCAtpMhWxJEKxKFhyL9ACeBfzQk.cache → PC/PCth9nzoRrp5GI3Ut8FxlGpXjH63V7k2p4PRwfyu2sQ.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Pw/Pw3Jv2p7MsQz6pttCZig6VMVQ30sRyIDRS-2nM32yqY.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/RI/RIOgtcuvLAJZl62RvAzqine3jCO3i2qyhswiW2G1bw8.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/R_/R_6WhfFaPUAOAFfFd4bgUonI5aB4Fa6iOMY2J6G3U98.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{pj/pjJDYrBipDo6Tr9_-W4UDzfZZ4UPTy9YpXrBQFRXnlo.cache → S3/S3gPdA-Zqya5r6wNhnlwqGV3B3-GDaA8i1fL_jo66AI.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SS/SS3eYrFE6ghi5G_3POW760Y4BWo5OAaK5QjDrRGXOcs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{jj/jjdQCKZsewws2eRP7b2AVxRMvseOp8djjlDkB8UOtac.cache → Sq/SqjdxmYsdurpx9xk1ks32WEtf3D9_2BysE7RMxnOlmU.cache} +1 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{os/os0qWv3yDfep0e7vVSGTgfn_n3xc4C4QZgmMzLQn0Ks.cache → Ta/TaJnQ_l0sfSsDOyVoi-S-KZQ6vIwzBhmS6hmNA_n8ug.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{o6/o6ZQbq1aBFuVrE2xLbSbyZH2736sWM3Yj4ky9chT1bI.cache → X_/X_CxFXEdZo2C_in7FopAuAbplHn6W_V0SXyVQAMnTzI.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{sR/sRU-UT8qK_38kkiFDXKBPogO1oOZuSvJFH-pgqPL_Ms.cache → Yh/YhRWll6bzgYE6Dmc5fVKbHyv5om4y3-27UrWeUbQcGk.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{OD/ODHapE0li3WI1laVJoksoI5nmQd-8dDJXq_VxS4XefE.cache → _u/_uiA10I5HyJR94Tbc4a06CzdrQCAXX7Iz86WS5PKDQo.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ai/ainCVF4dxXf85KoOLUSHvMMGg0qBNc7Vg-s-9v2ENJI.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cQ/cQqt0ri9GFvVnIs1pJUugIJs5tDuGQMMntW5CwpK6YY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{1n/1nStVaWIQEwAlksUpB1fInwq6v3TikPvuRaSwwCnCLQ.cache → e0/e0Y2Gz8ftaW2O0RjoN2iWguitI-JQZckScAZqlQYkng.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/iH/iHnlNNY3rfdbVqt8LZBfcDQYONR8dA8LmxA9fv5paro.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{F0/F0oWBwLHpGFYNNtnGav-dJFH8rMDpNA5L8_aWm5Wq34.cache → ir/irxgIDPIY6Wz6fHWYp1dIrqAT1_8oa6-oiwqbFE_e-w.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kn/knUtyVrg7nMIPldZa4MHhe7cC9eMchLZS4mc5HDWgDY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ks/ks4DoIuUV6oUzoiXoPh7sW1k5ExNoUkR7ICjwuRnAT0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/m3/m375QQakjXd_2Trpvdot-i90nmeCCh0HWtzS66ZvxUU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rQ/rQ_FgYkT2hdw9A6XmJKGgVb2dMtCrWWHwtS0X1_kdl0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{pw/pwiIhcWPwTuy5Miz5zqOQGYFx-K3TbaCVQ6ls7EBkk0.cache → rU/rUqFWwHqrT5jeIFCEezOPsMMZiAU7ri6RKBGS2ezAfg.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/{pO/pO8hHVwybv1ZJBdPa2YC6bjqmk020OYFl85TYxtmrWQ.cache → rq/rqf5-J6k_zLc9ZlUgMj28nviKtRsko3-iEp_m_uNeY0.cache} +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +143 -119
- data/app/assets/javascripts/quick_search/appstats.js +0 -8
- data/app/views/quick_search/appstats/_click_count_table.html.erb +0 -23
- data/app/views/quick_search/appstats/_top_spot_report_table.html.erb +0 -33
- data/app/views/quick_search/appstats/module_click_detail.html.erb +0 -32
- data/app/views/quick_search/appstats/top_spot_detail.html.erb +0 -35
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0_/0_w_ydOOEFQOoETxJa-IxKppQocaiDwM5V08djCPYso.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3m/3mWfBeEpm_bJvaPQZYvnnAVtE_2helOWh_Tv-cEflrk.cache +0 -5
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4s/4sg52OgD5l4qx4GnojCVxg2itqwqb-KRanEdmdMus3Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5U/5UPnsccuZFLk9OqbmFMvB55mbvGptApx9Z55HWjEN90.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9a/9acKNgyVD8_WK401tMy6Ce98g-LS4VpwFvGQdzCV9mI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ba/BaymviI8cwAJQMOIzWCf6Lt-PM2sNFTvY9hQKsfDNNw.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dd/DdFHg3C_voetfvKGKX7t8PGzZlkO45-huHNtaou5rxg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fp/FprCQeeZguht46WNSpA3Y3JHKehovFXrj63nDrvvwFE.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/GJ/GJrfWiarIi0Dt6sdKVMfUF1cdZ6NbqZxXHhzNbFtpBw.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gp/GpoziOxxB-hisco0rl7Nnsnw0UWud7R9Yge2Q3o1eN4.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/It/It5VkJv-53-LICLKZWWyp2WcbD86DGotAL0MY3hhfpg.cache +0 -6
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/O6/O6dw148Xya7NYlsRFMEzJyvRcySM6iOL1jRUpdQo9B8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Oj/OjMkKTW7OkthjJAQHDID8GV30IZC9F0dJ1zGiFame9U.cache +0 -4
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SU/SUtZ_ltPqy9A9A-_zqNPhNPvjxCOnrdqXHSZv5S9mOk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tv/TvZgmm69VEMHUJQIBoij61oXMkgzp6whVo7l8mJ9qpw.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YJ/YJZdK01T1KTS84Mb6p_2TasmJNZeGZc4FMtBPCKGr_M.cache +0 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ah/ahhhd3ysbQmVDNzq2L_rb4t6rqqdnqeY6ujztBoZDA8.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gv/gvZKkbgiExbcQrT4eo0HB-j4JoDRAxdmDjKRxeEdK0Y.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hj/hj_r-O1QjHJIPcZVnlB_FGPdIRAi9NkxpT2oXDRIsGE.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/o2/o2V1ahk8vFR6sXWNh5BB7w6MBj04zCyX-o1xFZONydE.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tE/tEO71oPPFXN_2c4p39nU0OiF9ARg13fjdQlnPqAx1KY.cache +0 -4
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tW/tWFRsAv4WWu2ch-x3AJZd3KOvBXG3MwH6Q6Xn-tFBtw.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/x6/x6W754ylumshr3wBUHHmcgyWs8UR3Od7FaI6tqvjKmk.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yy/yyJ1P7RQciOiW8TgQiu1RMDdbWd4rqxd2BGU9HkY3L8.cache +0 -0
@@ -0,0 +1,162 @@
|
|
1
|
+
module QuickSearch
|
2
|
+
module Generators
|
3
|
+
class TypeaheadGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path('../templates', __FILE__)
|
5
|
+
include Rails.application.routes.url_helpers
|
6
|
+
|
7
|
+
desc 'generate quick_search_typeahead.js'
|
8
|
+
def generate_quick_search_typeahead_js
|
9
|
+
unless QuickSearch::Engine::APP_CONFIG.has_key? 'typeahead'
|
10
|
+
puts 'No typeahead configuration found in quick_search_config.yml'
|
11
|
+
else
|
12
|
+
QuickSearch::Engine::APP_CONFIG['typeahead'].each do |searcher_name, searcher_config|
|
13
|
+
puts insert_bloodhound_config(searcher_name, searcher_config)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
def insert_typeahead_head
|
20
|
+
<<-TYPEAHEAD_HEAD
|
21
|
+
/*
|
22
|
+
* QuickSearch Typeahead front-end configuration and setup
|
23
|
+
* ** INSERTED AUTOMATICALLY BY QuickSearch **
|
24
|
+
* ** DO NOT EDIT MANUALLY! USE quick_search:typeahead RAILS GENERATOR
|
25
|
+
* ** SEE DOCS @ https://www.github.com/ncsu-libraries/quick_search
|
26
|
+
*/
|
27
|
+
|
28
|
+
jQuery(document).ready(function() {
|
29
|
+
|
30
|
+
TYPEAHEAD_HEAD
|
31
|
+
end
|
32
|
+
|
33
|
+
def insert_typeahead_footer
|
34
|
+
<<-TYPEAHEAD_FOOTER
|
35
|
+
typeaheadUtility.listenForTypeaheadClicks();
|
36
|
+
});
|
37
|
+
TYPEAHEAD_FOOTER
|
38
|
+
end
|
39
|
+
|
40
|
+
def insert_typeahead_utility
|
41
|
+
log_event_path = File.join(quick_search_path, '/log_event')
|
42
|
+
<<-TYPEAHEAD_UTILITY
|
43
|
+
/*
|
44
|
+
* Typeahead utility functions, currently handles: known vs. unknown item clicks, URL construction, logging.
|
45
|
+
*/
|
46
|
+
|
47
|
+
var typeaheadUtility = (function () {
|
48
|
+
|
49
|
+
function listenForTypeaheadClicks() {
|
50
|
+
jQuery('.quicksearch-typeahead').on('typeahead:selected', function (e, datum, dataset) {
|
51
|
+
|
52
|
+
var link = { href: handleTypeaheadClick(datum, dataset) };
|
53
|
+
|
54
|
+
var eventValuesDefined = {
|
55
|
+
category: 'typeahead-' + dataset,
|
56
|
+
action: datum.value,
|
57
|
+
label: window.location.href
|
58
|
+
}
|
59
|
+
|
60
|
+
sendEventData(eventValuesDefined, link);
|
61
|
+
|
62
|
+
setTimeout(function() {
|
63
|
+
document.location.href = link.href;
|
64
|
+
}, 200);
|
65
|
+
|
66
|
+
});
|
67
|
+
}
|
68
|
+
|
69
|
+
function sendEventData (eventValues, link) {
|
70
|
+
jQuery.when(logEventToDatabase(eventValues)).then(function () {
|
71
|
+
sendDataToGoogleAnalytics(eventValues, link)
|
72
|
+
});
|
73
|
+
}
|
74
|
+
|
75
|
+
function sendDataToGoogleAnalytics (eventValues, link) {
|
76
|
+
_gaq.push(['_set','hitCallback',function() {
|
77
|
+
if (link !== '') {
|
78
|
+
document.location = link;
|
79
|
+
}
|
80
|
+
}]);
|
81
|
+
ga('send', eventValues.category, eventValues.action, eventValues.label);
|
82
|
+
}
|
83
|
+
|
84
|
+
|
85
|
+
function logEventToDatabase(eventValues) {
|
86
|
+
var url = '#{log_event_path}';
|
87
|
+
|
88
|
+
return jQuery.ajax({
|
89
|
+
url: url,
|
90
|
+
data: {
|
91
|
+
category: eventValues.category,
|
92
|
+
event_action: eventValues.action,
|
93
|
+
label: eventValues.label
|
94
|
+
},
|
95
|
+
jsonp: 'callback',
|
96
|
+
dataType: 'jsonp'
|
97
|
+
});
|
98
|
+
}
|
99
|
+
|
100
|
+
function handleTypeaheadClick(datum, dataset) {
|
101
|
+
if (datum.url || datum.path) {
|
102
|
+
return datum.url || datum.path;
|
103
|
+
}
|
104
|
+
else if (datum.question_id) {
|
105
|
+
return "//www.lib.ncsu.edu/faq/faq.php?id=" + datum.question_id;
|
106
|
+
}
|
107
|
+
else {
|
108
|
+
// Fire off a search when an unknown element is selected
|
109
|
+
|
110
|
+
return '/?q=' + datum.ac;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
return {
|
115
|
+
listenForTypeaheadClicks: listenForTypeaheadClicks
|
116
|
+
};
|
117
|
+
})();
|
118
|
+
TYPEAHEAD_UTILITY
|
119
|
+
end
|
120
|
+
|
121
|
+
def insert_bloodhound_config(searcher_name, searcher_config)
|
122
|
+
url = searcher_config.has_key?('url') ? searcher_config['url'] : File.join(quick_search_path, "/typeahead?searcher=#{searcher_name}")
|
123
|
+
if searcher_config['remote_type'] == 'prefetch'
|
124
|
+
remote = "prefetch: '#{url}',"
|
125
|
+
else
|
126
|
+
remote = <<-REMOTE
|
127
|
+
remote: {
|
128
|
+
url: #{url} + '%QUERY',
|
129
|
+
prepare: function(query, settings) {
|
130
|
+
settings.dataType = 'jsonp';
|
131
|
+
settings.url = settings.url.replace('%QUERY', query);
|
132
|
+
return settings;
|
133
|
+
},
|
134
|
+
filter: function(response){
|
135
|
+
return response.#{searcher_config['response']} %>;
|
136
|
+
},
|
137
|
+
rateLimitWait: 100,
|
138
|
+
},
|
139
|
+
REMOTE
|
140
|
+
end
|
141
|
+
|
142
|
+
bloodhound_config = <<-BLOODHOUND
|
143
|
+
|
144
|
+
// TYPEAHEAD CONFIG FOR #{searcher_name}
|
145
|
+
// AUTOMATICALLY INSERTED BY QUICK_SEARCH
|
146
|
+
// DO NOT EDIT THIS MANUALLY! USE quick_search:typeahead GENERATOR!
|
147
|
+
// SEE http://github.com/ncsu-libraries/quick_search/ FOR DOCS
|
148
|
+
|
149
|
+
var #{searcher_name} = new Bloodhound ({
|
150
|
+
queryTokenizer: Bloodhound.tokenizers.whitespace,
|
151
|
+
datumTokenizer: function (datum) {
|
152
|
+
return datum.#{searcher_config['value']}.split(" ");
|
153
|
+
},
|
154
|
+
valueKey: '#{searcher_config['value']}',
|
155
|
+
#{remote}
|
156
|
+
});
|
157
|
+
BLOODHOUND
|
158
|
+
end
|
159
|
+
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
data/lib/quick_search/engine.rb
CHANGED
@@ -48,6 +48,7 @@ module QuickSearch
|
|
48
48
|
QuickSearch::Engine::BEST_BETS = YAML.load_file(best_bets_file)['best_bets']
|
49
49
|
QuickSearch::Engine::BEST_BETS_INDEX = {}
|
50
50
|
QuickSearch::Engine::BEST_BETS.each do |best_bet_name, best_bet|
|
51
|
+
QuickSearch::Engine::BEST_BETS[best_bet_name]['id'] = best_bet_name
|
51
52
|
best_bet['keywords'].each do |keyword|
|
52
53
|
QuickSearch::Engine::BEST_BETS_INDEX[keyword.downcase] = best_bet_name
|
53
54
|
end
|
data/lib/quick_search/version.rb
CHANGED
data/test/dummy/db/schema.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# This file is auto-generated from the current state of the database. Instead
|
3
2
|
# of editing this file, please use the migrations feature of Active Record to
|
4
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
@@ -11,21 +10,41 @@
|
|
11
10
|
#
|
12
11
|
# It's strongly recommended that you check this file into your version control system.
|
13
12
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 20161212192454) do
|
15
14
|
|
16
|
-
create_table "events", force:
|
15
|
+
create_table "events", force: :cascade do |t|
|
17
16
|
t.string "category"
|
18
|
-
t.string "
|
19
|
-
t.string "
|
17
|
+
t.string "item"
|
18
|
+
t.string "query"
|
20
19
|
t.datetime "created_at"
|
21
20
|
t.datetime "updated_at"
|
21
|
+
t.string "action"
|
22
|
+
t.integer "session_id"
|
23
|
+
t.string "created_at_string"
|
24
|
+
t.index ["created_at_string"], name: "index_events_on_created_at_string"
|
25
|
+
t.index ["session_id"], name: "index_events_on_session_id"
|
22
26
|
end
|
23
27
|
|
24
|
-
create_table "searches", force:
|
28
|
+
create_table "searches", force: :cascade do |t|
|
25
29
|
t.string "query"
|
26
30
|
t.datetime "created_at"
|
27
31
|
t.datetime "updated_at"
|
28
32
|
t.string "page"
|
33
|
+
t.integer "session_id"
|
34
|
+
t.string "created_at_string"
|
35
|
+
t.index ["created_at_string"], name: "index_searches_on_created_at_string"
|
36
|
+
t.index ["session_id"], name: "index_searches_on_session_id"
|
37
|
+
end
|
38
|
+
|
39
|
+
create_table "sessions", force: :cascade do |t|
|
40
|
+
t.string "session_uuid"
|
41
|
+
t.datetime "expiry"
|
42
|
+
t.boolean "on_campus"
|
43
|
+
t.boolean "is_mobile"
|
44
|
+
t.datetime "created_at"
|
45
|
+
t.datetime "updated_at"
|
46
|
+
t.string "created_at_string"
|
47
|
+
t.index ["created_at_string"], name: "index_sessions_on_created_at_string"
|
29
48
|
end
|
30
49
|
|
31
50
|
end
|
@@ -1,241 +1,121 @@
|
|
1
|
-
# Logfile created on 2016-
|
2
|
-
I, [2016-
|
3
|
-
I, [2016-
|
4
|
-
I, [2016-
|
5
|
-
I, [2016-
|
6
|
-
I, [2016-
|
7
|
-
I, [2016-
|
8
|
-
I, [2016-
|
9
|
-
I, [2016-
|
10
|
-
I, [2016-
|
11
|
-
I, [2016-
|
12
|
-
I, [2016-
|
13
|
-
I, [2016-
|
14
|
-
I, [2016-
|
15
|
-
I, [2016-
|
16
|
-
I, [2016-
|
17
|
-
I, [2016-
|
18
|
-
I, [2016-
|
19
|
-
I, [2016-
|
20
|
-
I, [2016-
|
21
|
-
I, [2016-
|
22
|
-
I, [2016-
|
23
|
-
I, [2016-
|
24
|
-
I, [2016-
|
25
|
-
I, [2016-
|
26
|
-
I, [2016-
|
27
|
-
I, [2016-
|
28
|
-
I, [2016-
|
29
|
-
I, [2016-
|
30
|
-
I, [2016-
|
31
|
-
I, [2016-
|
32
|
-
I, [2016-
|
33
|
-
I, [2016-
|
34
|
-
I, [2016-
|
35
|
-
I, [2016-
|
36
|
-
I, [2016-
|
37
|
-
I, [2016-
|
38
|
-
I, [2016-
|
39
|
-
I, [2016-
|
40
|
-
I, [2016-
|
41
|
-
I, [2016-
|
42
|
-
I, [2016-
|
43
|
-
I, [2016-
|
44
|
-
I, [2016-
|
45
|
-
I, [2016-
|
46
|
-
I, [2016-
|
47
|
-
I, [2016-
|
48
|
-
I, [2016-
|
49
|
-
I, [2016-
|
50
|
-
I, [2016-
|
51
|
-
I, [2016-
|
52
|
-
I, [2016-
|
53
|
-
I, [2016-
|
54
|
-
I, [2016-
|
55
|
-
I, [2016-
|
56
|
-
I, [2016-
|
57
|
-
I, [2016-
|
58
|
-
I, [2016-
|
59
|
-
I, [2016-
|
60
|
-
I, [2016-
|
61
|
-
I, [2016-
|
62
|
-
I, [2016-
|
63
|
-
I, [2016-
|
64
|
-
I, [2016-
|
65
|
-
I, [2016-
|
66
|
-
I, [2016-
|
67
|
-
I, [2016-
|
68
|
-
I, [2016-
|
69
|
-
I, [2016-
|
70
|
-
I, [2016-
|
71
|
-
I, [2016-
|
72
|
-
I, [2016-
|
73
|
-
I, [2016-
|
74
|
-
I, [2016-
|
75
|
-
I, [2016-
|
76
|
-
I, [2016-
|
77
|
-
I, [2016-
|
78
|
-
I, [2016-
|
79
|
-
I, [2016-
|
80
|
-
I, [2016-
|
81
|
-
I, [2016-
|
82
|
-
I, [2016-
|
83
|
-
I, [2016-
|
84
|
-
I, [2016-
|
85
|
-
I, [2016-
|
86
|
-
I, [2016-
|
87
|
-
I, [2016-
|
88
|
-
I, [2016-
|
89
|
-
I, [2016-
|
90
|
-
I, [2016-
|
91
|
-
I, [2016-
|
92
|
-
I, [2016-
|
93
|
-
I, [2016-
|
94
|
-
I, [2016-
|
95
|
-
I, [2016-
|
96
|
-
I, [2016-
|
97
|
-
I, [2016-
|
98
|
-
I, [2016-
|
99
|
-
I, [2016-
|
100
|
-
I, [2016-
|
101
|
-
I, [2016-
|
102
|
-
I, [2016-
|
103
|
-
I, [2016-
|
104
|
-
I, [2016-
|
105
|
-
I, [2016-
|
106
|
-
I, [2016-
|
107
|
-
I, [2016-
|
108
|
-
I, [2016-
|
109
|
-
I, [2016-
|
110
|
-
I, [2016-
|
111
|
-
I, [2016-
|
112
|
-
I, [2016-
|
113
|
-
I, [2016-
|
114
|
-
I, [2016-
|
115
|
-
I, [2016-
|
116
|
-
I, [2016-
|
117
|
-
I, [2016-
|
118
|
-
I, [2016-
|
119
|
-
I, [2016-
|
120
|
-
I, [2016-
|
121
|
-
I, [2016-
|
122
|
-
I, [2016-07-18T13:15:43.865762 #21177] INFO -- : speling server wikipedia (15.4ms)
|
123
|
-
I, [2016-07-18T13:15:43.871196 #21177] INFO -- : speling server open_library (5.1ms)
|
124
|
-
I, [2016-07-18T13:15:43.871753 #21177] INFO -- : speling server placeholder (0.4ms)
|
125
|
-
I, [2016-07-18T13:15:43.872820 #21177] INFO -- : speling server best_bets (65.1ms)
|
126
|
-
I, [2016-07-18T13:15:43.874436 #21177] INFO -- : speling server arxiv (28.5ms)
|
127
|
-
I, [2016-07-18T13:15:43.874687 #21177] INFO -- : speling server ALL (76.3ms)
|
128
|
-
I, [2016-07-18T13:15:44.047888 #21177] INFO -- : printing server best_bets (16.9ms)
|
129
|
-
I, [2016-07-18T13:15:44.048254 #21177] INFO -- : printing server placeholder (0.2ms)
|
130
|
-
I, [2016-07-18T13:15:44.072745 #21177] INFO -- : printing server open_library (13.7ms)
|
131
|
-
I, [2016-07-18T13:15:44.083073 #21177] INFO -- : printing server wikipedia (34.7ms)
|
132
|
-
I, [2016-07-18T13:15:44.093252 #21177] INFO -- : printing server arxiv (72.8ms)
|
133
|
-
I, [2016-07-18T13:15:44.093372 #21177] INFO -- : printing server ALL (73.5ms)
|
134
|
-
I, [2016-07-18T13:15:44.226790 #21177] INFO -- : harry+potter server open_library (13.6ms)
|
135
|
-
I, [2016-07-18T13:15:44.236176 #21177] INFO -- : harry+potter server best_bets (9.1ms)
|
136
|
-
I, [2016-07-18T13:15:44.248322 #21177] INFO -- : harry+potter server wikipedia (11.9ms)
|
137
|
-
I, [2016-07-18T13:15:44.248809 #21177] INFO -- : harry+potter server placeholder (0.3ms)
|
138
|
-
I, [2016-07-18T13:15:44.257478 #21177] INFO -- : harry+potter server arxiv (49.6ms)
|
139
|
-
I, [2016-07-18T13:15:44.257647 #21177] INFO -- : harry+potter server ALL (50.6ms)
|
140
|
-
I, [2016-07-18T13:15:44.510512 #21177] INFO -- : James+B.+Hunt+Jr.+Library server wikipedia (84.2ms)
|
141
|
-
I, [2016-07-18T13:15:44.516377 #21177] INFO -- : James+B.+Hunt+Jr.+Library server arxiv (5.7ms)
|
142
|
-
I, [2016-07-18T13:15:44.516744 #21177] INFO -- : James+B.+Hunt+Jr.+Library server placeholder (0.2ms)
|
143
|
-
I, [2016-07-18T13:15:44.527308 #21177] INFO -- : James+B.+Hunt+Jr.+Library server open_library (123.5ms)
|
144
|
-
I, [2016-07-18T13:15:44.551503 #21177] INFO -- : James+B.+Hunt+Jr.+Library server best_bets (141.3ms)
|
145
|
-
I, [2016-07-18T13:15:44.551620 #21177] INFO -- : James+B.+Hunt+Jr.+Library server ALL (148.1ms)
|
146
|
-
I, [2016-07-18T13:18:25.542964 #21248] INFO -- : printing server arxiv (8.4ms)
|
147
|
-
I, [2016-07-18T13:18:25.547732 #21248] INFO -- : printing server open_library (4.6ms)
|
148
|
-
I, [2016-07-18T13:18:25.548713 #21248] INFO -- : printing server placeholder (0.8ms)
|
149
|
-
I, [2016-07-18T13:18:25.549971 #21248] INFO -- : printing server wikipedia (24.3ms)
|
150
|
-
I, [2016-07-18T13:18:25.550715 #21248] INFO -- : printing server best_bets (19.5ms)
|
151
|
-
I, [2016-07-18T13:18:25.550938 #21248] INFO -- : printing server ALL (31.0ms)
|
152
|
-
I, [2016-07-18T13:18:25.640357 #21248] INFO -- : harry+potter server placeholder (0.3ms)
|
153
|
-
I, [2016-07-18T13:18:25.670054 #21248] INFO -- : harry+potter server best_bets (11.2ms)
|
154
|
-
I, [2016-07-18T13:18:25.678245 #21248] INFO -- : harry+potter server arxiv (7.9ms)
|
155
|
-
I, [2016-07-18T13:18:25.679859 #21248] INFO -- : harry+potter server wikipedia (39.3ms)
|
156
|
-
I, [2016-07-18T13:18:25.697474 #21248] INFO -- : harry+potter server open_library (50.8ms)
|
157
|
-
I, [2016-07-18T13:18:25.697748 #21248] INFO -- : harry+potter server ALL (58.6ms)
|
158
|
-
I, [2016-07-18T13:18:25.800308 #21248] INFO -- : speling server best_bets (6.0ms)
|
159
|
-
I, [2016-07-18T13:18:25.804381 #21248] INFO -- : speling server open_library (3.9ms)
|
160
|
-
I, [2016-07-18T13:18:25.804959 #21248] INFO -- : speling server placeholder (0.3ms)
|
161
|
-
I, [2016-07-18T13:18:25.812332 #21248] INFO -- : speling server wikipedia (7.3ms)
|
162
|
-
I, [2016-07-18T13:18:25.814029 #21248] INFO -- : speling server arxiv (23.9ms)
|
163
|
-
I, [2016-07-18T13:18:25.814428 #21248] INFO -- : speling server ALL (25.6ms)
|
164
|
-
I, [2016-07-18T13:18:25.952456 #21248] INFO -- : James+B.+Hunt+Jr.+Library server arxiv (58.0ms)
|
165
|
-
I, [2016-07-18T13:18:25.957818 #21248] INFO -- : James+B.+Hunt+Jr.+Library server best_bets (5.1ms)
|
166
|
-
I, [2016-07-18T13:18:25.958410 #21248] INFO -- : James+B.+Hunt+Jr.+Library server placeholder (0.3ms)
|
167
|
-
I, [2016-07-18T13:18:25.985898 #21248] INFO -- : James+B.+Hunt+Jr.+Library server open_library (86.9ms)
|
168
|
-
I, [2016-07-18T13:18:25.993772 #21248] INFO -- : James+B.+Hunt+Jr.+Library server wikipedia (7.7ms)
|
169
|
-
I, [2016-07-18T13:18:25.993878 #21248] INFO -- : James+B.+Hunt+Jr.+Library server ALL (100.2ms)
|
170
|
-
I, [2016-07-18T13:23:58.315884 #21291] INFO -- : James+B.+Hunt+Jr.+Library server open_library (79.2ms)
|
171
|
-
I, [2016-07-18T13:23:58.316332 #21291] INFO -- : James+B.+Hunt+Jr.+Library server placeholder (0.2ms)
|
172
|
-
I, [2016-07-18T13:23:58.327569 #21291] INFO -- : James+B.+Hunt+Jr.+Library server arxiv (11.1ms)
|
173
|
-
I, [2016-07-18T13:23:58.333845 #21291] INFO -- : James+B.+Hunt+Jr.+Library server best_bets (6.1ms)
|
174
|
-
I, [2016-07-18T13:23:58.363591 #21291] INFO -- : James+B.+Hunt+Jr.+Library server wikipedia (137.2ms)
|
175
|
-
I, [2016-07-18T13:23:58.363744 #21291] INFO -- : James+B.+Hunt+Jr.+Library server ALL (143.5ms)
|
176
|
-
I, [2016-07-18T13:23:58.595650 #21291] INFO -- : printing server wikipedia (8.3ms)
|
177
|
-
I, [2016-07-18T13:23:58.603300 #21291] INFO -- : printing server arxiv (7.5ms)
|
178
|
-
I, [2016-07-18T13:23:58.603732 #21291] INFO -- : printing server placeholder (0.2ms)
|
179
|
-
I, [2016-07-18T13:23:58.608226 #21291] INFO -- : printing server best_bets (4.4ms)
|
180
|
-
I, [2016-07-18T13:23:58.609710 #21291] INFO -- : printing server open_library (25.9ms)
|
181
|
-
I, [2016-07-18T13:23:58.609807 #21291] INFO -- : printing server ALL (26.7ms)
|
182
|
-
I, [2016-07-18T13:23:58.718373 #21291] INFO -- : speling server placeholder (0.3ms)
|
183
|
-
I, [2016-07-18T13:23:58.810890 #21291] INFO -- : speling server best_bets (88.5ms)
|
184
|
-
I, [2016-07-18T13:23:58.992556 #21291] INFO -- : speling server wikipedia (264.2ms)
|
185
|
-
I, [2016-07-18T13:23:59.065908 #21291] INFO -- : speling server arxiv (326.7ms)
|
186
|
-
I, [2016-07-18T13:23:59.087496 #21291] INFO -- : speling server open_library (368.9ms)
|
187
|
-
I, [2016-07-18T13:23:59.087649 #21291] INFO -- : speling server ALL (369.9ms)
|
188
|
-
I, [2016-07-18T13:23:59.253228 #21291] INFO -- : harry+potter server best_bets (10.5ms)
|
189
|
-
I, [2016-07-18T13:23:59.270777 #21291] INFO -- : harry+potter server open_library (16.7ms)
|
190
|
-
I, [2016-07-18T13:23:59.293765 #21291] INFO -- : harry+potter server wikipedia (22.8ms)
|
191
|
-
I, [2016-07-18T13:23:59.297144 #21291] INFO -- : harry+potter server arxiv (65.1ms)
|
192
|
-
I, [2016-07-18T13:23:59.297495 #21291] INFO -- : harry+potter server placeholder (0.2ms)
|
193
|
-
I, [2016-07-18T13:23:59.297554 #21291] INFO -- : harry+potter server ALL (66.6ms)
|
194
|
-
I, [2016-07-18T13:25:55.648286 #21354] INFO -- : printing server placeholder (0.3ms)
|
195
|
-
I, [2016-07-18T13:25:55.667236 #21354] INFO -- : printing server wikipedia (7.3ms)
|
196
|
-
I, [2016-07-18T13:25:55.672381 #21354] INFO -- : printing server best_bets (19.6ms)
|
197
|
-
I, [2016-07-18T13:25:55.673320 #21354] INFO -- : printing server open_library (16.6ms)
|
198
|
-
I, [2016-07-18T13:25:55.676400 #21354] INFO -- : printing server arxiv (27.9ms)
|
199
|
-
I, [2016-07-18T13:25:55.676583 #21354] INFO -- : printing server ALL (33.6ms)
|
200
|
-
I, [2016-07-18T13:25:56.074808 #21354] INFO -- : harry+potter server placeholder (0.3ms)
|
201
|
-
I, [2016-07-18T13:25:56.083999 #21354] INFO -- : harry+potter server open_library (9.0ms)
|
202
|
-
I, [2016-07-18T13:25:56.087949 #21354] INFO -- : harry+potter server best_bets (3.7ms)
|
203
|
-
I, [2016-07-18T13:25:56.092853 #21354] INFO -- : harry+potter server arxiv (32.9ms)
|
204
|
-
I, [2016-07-18T13:25:56.097132 #21354] INFO -- : harry+potter server wikipedia (32.4ms)
|
205
|
-
I, [2016-07-18T13:25:56.097241 #21354] INFO -- : harry+potter server ALL (37.9ms)
|
206
|
-
I, [2016-07-18T13:25:56.206217 #21354] INFO -- : James+B.+Hunt+Jr.+Library server placeholder (0.2ms)
|
207
|
-
I, [2016-07-18T13:25:56.233044 #21354] INFO -- : James+B.+Hunt+Jr.+Library server wikipedia (59.7ms)
|
208
|
-
I, [2016-07-18T13:25:56.237661 #21354] INFO -- : James+B.+Hunt+Jr.+Library server best_bets (4.5ms)
|
209
|
-
I, [2016-07-18T13:25:56.253633 #21354] INFO -- : James+B.+Hunt+Jr.+Library server open_library (15.8ms)
|
210
|
-
I, [2016-07-18T13:25:56.260153 #21354] INFO -- : James+B.+Hunt+Jr.+Library server arxiv (6.3ms)
|
211
|
-
I, [2016-07-18T13:25:56.260295 #21354] INFO -- : James+B.+Hunt+Jr.+Library server ALL (87.7ms)
|
212
|
-
I, [2016-07-18T13:25:56.350856 #21354] INFO -- : speling server arxiv (7.3ms)
|
213
|
-
I, [2016-07-18T13:25:56.355112 #21354] INFO -- : speling server open_library (4.0ms)
|
214
|
-
I, [2016-07-18T13:25:56.360392 #21354] INFO -- : speling server best_bets (5.1ms)
|
215
|
-
I, [2016-07-18T13:25:56.360806 #21354] INFO -- : speling server placeholder (0.2ms)
|
216
|
-
I, [2016-07-18T13:25:56.361985 #21354] INFO -- : speling server wikipedia (23.4ms)
|
217
|
-
I, [2016-07-18T13:25:56.362085 #21354] INFO -- : speling server ALL (23.8ms)
|
218
|
-
I, [2016-07-18T16:27:36.901879 #27490] INFO -- : harry+potter server best_bets (0.6ms)
|
219
|
-
I, [2016-07-18T16:27:36.949292 #27490] INFO -- : harry+potter server open_library (47.2ms)
|
220
|
-
I, [2016-07-18T16:27:36.922213 #27490] INFO -- : harry+potter server placeholder (0.8ms)
|
221
|
-
I, [2016-07-18T16:27:36.942628 #27490] INFO -- : harry+potter server wikipedia (54.0ms)
|
222
|
-
I, [2016-07-18T16:27:36.941346 #27490] INFO -- : harry+potter server arxiv (19.0ms)
|
223
|
-
I, [2016-07-18T16:27:36.949628 #27490] INFO -- : harry+potter server ALL (70.3ms)
|
224
|
-
I, [2016-07-18T16:27:37.095507 #27490] INFO -- : James+B.+Hunt+Jr.+Library server placeholder (0.3ms)
|
225
|
-
I, [2016-07-18T16:27:37.146583 #27490] INFO -- : James+B.+Hunt+Jr.+Library server open_library (50.9ms)
|
226
|
-
I, [2016-07-18T16:27:37.147083 #27490] INFO -- : James+B.+Hunt+Jr.+Library server best_bets (0.3ms)
|
227
|
-
I, [2016-07-18T16:27:37.148855 #27490] INFO -- : James+B.+Hunt+Jr.+Library server wikipedia (77.2ms)
|
228
|
-
I, [2016-07-18T16:27:37.154623 #27490] INFO -- : James+B.+Hunt+Jr.+Library server arxiv (77.1ms)
|
229
|
-
I, [2016-07-18T16:27:37.154750 #27490] INFO -- : James+B.+Hunt+Jr.+Library server ALL (84.1ms)
|
230
|
-
I, [2016-07-18T16:27:37.231709 #27490] INFO -- : speling server best_bets (0.3ms)
|
231
|
-
I, [2016-07-18T16:27:37.243129 #27490] INFO -- : speling server open_library (6.2ms)
|
232
|
-
I, [2016-07-18T16:27:37.248388 #27490] INFO -- : speling server arxiv (5.0ms)
|
233
|
-
I, [2016-07-18T16:27:37.248784 #27490] INFO -- : speling server placeholder (0.2ms)
|
234
|
-
I, [2016-07-18T16:27:37.250253 #27490] INFO -- : speling server wikipedia (18.3ms)
|
235
|
-
I, [2016-07-18T16:27:37.250378 #27490] INFO -- : speling server ALL (19.7ms)
|
236
|
-
I, [2016-07-18T16:27:37.325655 #27490] INFO -- : printing server best_bets (0.3ms)
|
237
|
-
I, [2016-07-18T16:27:37.333986 #27490] INFO -- : printing server arxiv (8.2ms)
|
238
|
-
I, [2016-07-18T16:27:37.340654 #27490] INFO -- : printing server wikipedia (6.4ms)
|
239
|
-
I, [2016-07-18T16:27:37.341023 #27490] INFO -- : printing server placeholder (0.2ms)
|
240
|
-
I, [2016-07-18T16:27:37.341981 #27490] INFO -- : printing server open_library (19.4ms)
|
241
|
-
I, [2016-07-18T16:27:37.342056 #27490] INFO -- : printing server ALL (20.2ms)
|
1
|
+
# Logfile created on 2016-05-03 20:07:44 +0000 by logger.rb/44203
|
2
|
+
I, [2016-05-03T20:07:44.973525 #26747] INFO -- : printing server placeholder (16.4ms)
|
3
|
+
I, [2016-05-03T20:07:44.980383 #26747] INFO -- : printing server open_library (15.6ms)
|
4
|
+
I, [2016-05-03T20:07:44.981394 #26747] INFO -- : printing server best_bets (23.8ms)
|
5
|
+
I, [2016-05-03T20:07:44.982622 #26747] INFO -- : printing server wikipedia (26.0ms)
|
6
|
+
I, [2016-05-03T20:07:45.002507 #26747] INFO -- : printing server arxiv (37.3ms)
|
7
|
+
I, [2016-05-03T20:07:45.003040 #26747] INFO -- : printing server ALL (46.7ms)
|
8
|
+
I, [2016-05-03T20:07:45.155377 #26747] INFO -- : harry+potter server arxiv (12.5ms)
|
9
|
+
I, [2016-05-03T20:07:45.163038 #26747] INFO -- : harry+potter server wikipedia (5.7ms)
|
10
|
+
I, [2016-05-03T20:07:45.163657 #26747] INFO -- : harry+potter server placeholder (0.3ms)
|
11
|
+
I, [2016-05-03T20:07:45.167570 #26747] INFO -- : harry+potter server best_bets (3.8ms)
|
12
|
+
I, [2016-05-03T20:07:45.205332 #26747] INFO -- : harry+potter server open_library (65.9ms)
|
13
|
+
I, [2016-05-03T20:07:45.205485 #26747] INFO -- : harry+potter server ALL (69.1ms)
|
14
|
+
I, [2016-05-03T20:07:45.318380 #26747] INFO -- : James+B.+Hunt+Jr.+Library server open_library (39.5ms)
|
15
|
+
I, [2016-05-03T20:07:45.340046 #26747] INFO -- : James+B.+Hunt+Jr.+Library server arxiv (18.7ms)
|
16
|
+
I, [2016-05-03T20:07:45.341747 #26747] INFO -- : James+B.+Hunt+Jr.+Library server best_bets (98.0ms)
|
17
|
+
I, [2016-05-03T20:07:45.356566 #26747] INFO -- : James+B.+Hunt+Jr.+Library server wikipedia (105.4ms)
|
18
|
+
I, [2016-05-03T20:07:45.357049 #26747] INFO -- : James+B.+Hunt+Jr.+Library server placeholder (0.3ms)
|
19
|
+
I, [2016-05-03T20:07:45.357133 #26747] INFO -- : James+B.+Hunt+Jr.+Library server ALL (113.5ms)
|
20
|
+
I, [2016-05-03T20:07:45.429590 #26747] INFO -- : speling server wikipedia (7.0ms)
|
21
|
+
I, [2016-05-03T20:07:45.433076 #26747] INFO -- : speling server best_bets (3.3ms)
|
22
|
+
I, [2016-05-03T20:07:45.436909 #26747] INFO -- : speling server arxiv (3.6ms)
|
23
|
+
I, [2016-05-03T20:07:45.437364 #26747] INFO -- : speling server placeholder (0.3ms)
|
24
|
+
I, [2016-05-03T20:07:45.438746 #26747] INFO -- : speling server open_library (19.1ms)
|
25
|
+
I, [2016-05-03T20:07:45.438841 #26747] INFO -- : speling server ALL (19.8ms)
|
26
|
+
I, [2016-12-12T20:01:38.627629 #26382] INFO -- : printing server placeholder (0.3ms)
|
27
|
+
I, [2016-12-12T20:01:38.653469 #26382] INFO -- : printing server wikipedia (36.4ms)
|
28
|
+
I, [2016-12-12T20:01:38.633269 #26382] INFO -- : printing server best_bets (5.4ms)
|
29
|
+
I, [2016-12-12T20:01:38.652643 #26382] INFO -- : printing server open_library (40.2ms)
|
30
|
+
I, [2016-12-12T20:01:38.650997 #26382] INFO -- : printing server arxiv (17.6ms)
|
31
|
+
I, [2016-12-12T20:01:38.653633 #26382] INFO -- : printing server ALL (45.1ms)
|
32
|
+
I, [2016-12-12T20:01:38.873535 #26382] INFO -- : James+B.+Hunt+Jr.+Library server open_library (57.1ms)
|
33
|
+
I, [2016-12-12T20:01:38.885112 #26382] INFO -- : James+B.+Hunt+Jr.+Library server arxiv (11.3ms)
|
34
|
+
I, [2016-12-12T20:01:38.886861 #26382] INFO -- : James+B.+Hunt+Jr.+Library server best_bets (95.1ms)
|
35
|
+
I, [2016-12-12T20:01:38.913015 #26382] INFO -- : James+B.+Hunt+Jr.+Library server wikipedia (112.6ms)
|
36
|
+
I, [2016-12-12T20:01:38.913513 #26382] INFO -- : James+B.+Hunt+Jr.+Library server placeholder (0.4ms)
|
37
|
+
I, [2016-12-12T20:01:38.913645 #26382] INFO -- : James+B.+Hunt+Jr.+Library server ALL (123.0ms)
|
38
|
+
I, [2016-12-12T20:01:39.087237 #26382] INFO -- : speling server best_bets (7.0ms)
|
39
|
+
I, [2016-12-12T20:01:39.088078 #26382] INFO -- : speling server placeholder (0.7ms)
|
40
|
+
I, [2016-12-12T20:01:39.097764 #26382] INFO -- : speling server arxiv (9.6ms)
|
41
|
+
I, [2016-12-12T20:01:39.100060 #26382] INFO -- : speling server wikipedia (41.4ms)
|
42
|
+
I, [2016-12-12T20:01:39.100532 #26382] INFO -- : speling server open_library (32.1ms)
|
43
|
+
I, [2016-12-12T20:01:39.100634 #26382] INFO -- : speling server ALL (42.3ms)
|
44
|
+
I, [2016-12-12T20:01:39.276521 #26382] INFO -- : harry+potter server open_library (27.5ms)
|
45
|
+
I, [2016-12-12T20:01:39.277721 #26382] INFO -- : harry+potter server placeholder (0.7ms)
|
46
|
+
I, [2016-12-12T20:01:39.285541 #26382] INFO -- : harry+potter server best_bets (7.4ms)
|
47
|
+
I, [2016-12-12T20:01:39.291195 #26382] INFO -- : harry+potter server arxiv (61.5ms)
|
48
|
+
I, [2016-12-12T20:01:39.296780 #26382] INFO -- : harry+potter server wikipedia (61.3ms)
|
49
|
+
I, [2016-12-12T20:01:39.297503 #26382] INFO -- : harry+potter server ALL (68.7ms)
|
50
|
+
I, [2016-12-12T20:02:31.983946 #26454] INFO -- : James+B.+Hunt+Jr.+Library server open_library (55.1ms)
|
51
|
+
I, [2016-12-12T20:02:31.984615 #26454] INFO -- : James+B.+Hunt+Jr.+Library server placeholder (0.4ms)
|
52
|
+
I, [2016-12-12T20:02:31.993142 #26454] INFO -- : James+B.+Hunt+Jr.+Library server arxiv (8.4ms)
|
53
|
+
I, [2016-12-12T20:02:31.993637 #26454] INFO -- : James+B.+Hunt+Jr.+Library server best_bets (0.3ms)
|
54
|
+
I, [2016-12-12T20:02:32.034352 #26454] INFO -- : James+B.+Hunt+Jr.+Library server wikipedia (117.5ms)
|
55
|
+
I, [2016-12-12T20:02:32.034532 #26454] INFO -- : James+B.+Hunt+Jr.+Library server ALL (125.7ms)
|
56
|
+
I, [2016-12-12T20:02:32.154287 #26454] INFO -- : harry+potter server best_bets (0.4ms)
|
57
|
+
I, [2016-12-12T20:02:32.167262 #26454] INFO -- : harry+potter server wikipedia (12.8ms)
|
58
|
+
I, [2016-12-12T20:02:32.175455 #26454] INFO -- : harry+potter server open_library (7.9ms)
|
59
|
+
I, [2016-12-12T20:02:32.176572 #26454] INFO -- : harry+potter server placeholder (0.3ms)
|
60
|
+
I, [2016-12-12T20:02:32.188347 #26454] INFO -- : harry+potter server arxiv (11.4ms)
|
61
|
+
I, [2016-12-12T20:02:32.188527 #26454] INFO -- : harry+potter server ALL (47.9ms)
|
62
|
+
I, [2016-12-12T20:02:32.297087 #26454] INFO -- : printing server placeholder (0.3ms)
|
63
|
+
I, [2016-12-12T20:02:32.304740 #26454] INFO -- : printing server arxiv (7.5ms)
|
64
|
+
I, [2016-12-12T20:02:32.312342 #26454] INFO -- : printing server wikipedia (7.2ms)
|
65
|
+
I, [2016-12-12T20:02:32.312848 #26454] INFO -- : printing server best_bets (0.3ms)
|
66
|
+
I, [2016-12-12T20:02:32.318107 #26454] INFO -- : printing server open_library (4.7ms)
|
67
|
+
I, [2016-12-12T20:02:32.318238 #26454] INFO -- : printing server ALL (22.5ms)
|
68
|
+
I, [2016-12-12T20:02:32.424622 #26454] INFO -- : speling server open_library (5.5ms)
|
69
|
+
I, [2016-12-12T20:02:32.425135 #26454] INFO -- : speling server best_bets (0.3ms)
|
70
|
+
I, [2016-12-12T20:02:32.431250 #26454] INFO -- : speling server arxiv (5.3ms)
|
71
|
+
I, [2016-12-12T20:02:32.438365 #26454] INFO -- : speling server wikipedia (6.9ms)
|
72
|
+
I, [2016-12-12T20:02:32.439006 #26454] INFO -- : speling server placeholder (0.3ms)
|
73
|
+
I, [2016-12-12T20:02:32.439117 #26454] INFO -- : speling server ALL (20.4ms)
|
74
|
+
I, [2016-12-19T21:08:12.940308 #20149] INFO -- : printing server best_bets (0.4ms)
|
75
|
+
I, [2016-12-19T21:08:12.948979 #20149] INFO -- : printing server placeholder (0.2ms)
|
76
|
+
I, [2016-12-19T21:08:12.960206 #20149] INFO -- : printing server open_library (19.1ms)
|
77
|
+
I, [2016-12-19T21:08:12.966645 #20149] INFO -- : printing server arxiv (21.9ms)
|
78
|
+
I, [2016-12-19T21:08:12.958830 #20149] INFO -- : printing server wikipedia (9.8ms)
|
79
|
+
I, [2016-12-19T21:08:12.967241 #20149] INFO -- : printing server ALL (30.9ms)
|
80
|
+
I, [2016-12-19T21:08:13.140023 #20149] INFO -- : speling server wikipedia (19.9ms)
|
81
|
+
I, [2016-12-19T21:08:13.140530 #20149] INFO -- : speling server placeholder (0.3ms)
|
82
|
+
I, [2016-12-19T21:08:13.140852 #20149] INFO -- : speling server best_bets (0.2ms)
|
83
|
+
I, [2016-12-19T21:08:13.151560 #20149] INFO -- : speling server open_library (10.0ms)
|
84
|
+
I, [2016-12-19T21:08:13.155464 #20149] INFO -- : speling server arxiv (46.1ms)
|
85
|
+
I, [2016-12-19T21:08:13.155705 #20149] INFO -- : speling server ALL (46.6ms)
|
86
|
+
I, [2016-12-19T21:08:13.322463 #20149] INFO -- : James+B.+Hunt+Jr.+Library server placeholder (0.3ms)
|
87
|
+
I, [2016-12-19T21:08:13.345945 #20149] INFO -- : James+B.+Hunt+Jr.+Library server best_bets (0.5ms)
|
88
|
+
I, [2016-12-19T21:08:13.389396 #20149] INFO -- : James+B.+Hunt+Jr.+Library server open_library (89.9ms)
|
89
|
+
I, [2016-12-19T21:08:13.391541 #20149] INFO -- : James+B.+Hunt+Jr.+Library server wikipedia (87.4ms)
|
90
|
+
I, [2016-12-19T21:08:13.398111 #20149] INFO -- : James+B.+Hunt+Jr.+Library server arxiv (75.4ms)
|
91
|
+
I, [2016-12-19T21:08:13.398249 #20149] INFO -- : James+B.+Hunt+Jr.+Library server ALL (99.5ms)
|
92
|
+
I, [2016-12-19T21:08:13.514481 #20149] INFO -- : harry+potter server best_bets (0.9ms)
|
93
|
+
I, [2016-12-19T21:08:13.515421 #20149] INFO -- : harry+potter server placeholder (0.2ms)
|
94
|
+
I, [2016-12-19T21:08:13.562792 #20149] INFO -- : harry+potter server arxiv (24.6ms)
|
95
|
+
I, [2016-12-19T21:08:13.566068 #20149] INFO -- : harry+potter server wikipedia (50.5ms)
|
96
|
+
I, [2016-12-19T21:08:13.581598 #20149] INFO -- : harry+potter server open_library (51.8ms)
|
97
|
+
I, [2016-12-19T21:08:13.581793 #20149] INFO -- : harry+potter server ALL (68.9ms)
|
98
|
+
I, [2016-12-19T21:19:26.604785 #21017] INFO -- : harry+potter server wikipedia (9.9ms)
|
99
|
+
I, [2016-12-19T21:19:26.605204 #21017] INFO -- : harry+potter server placeholder (0.2ms)
|
100
|
+
I, [2016-12-19T21:19:26.610751 #21017] INFO -- : harry+potter server open_library (5.4ms)
|
101
|
+
I, [2016-12-19T21:19:26.615306 #21017] INFO -- : harry+potter server best_bets (4.4ms)
|
102
|
+
I, [2016-12-19T21:19:26.623815 #21017] INFO -- : harry+potter server arxiv (35.9ms)
|
103
|
+
I, [2016-12-19T21:19:26.623933 #21017] INFO -- : harry+potter server ALL (39.2ms)
|
104
|
+
I, [2016-12-19T21:19:26.782084 #21017] INFO -- : James+B.+Hunt+Jr.+Library server wikipedia (37.7ms)
|
105
|
+
I, [2016-12-19T21:19:26.783455 #21017] INFO -- : James+B.+Hunt+Jr.+Library server placeholder (0.5ms)
|
106
|
+
I, [2016-12-19T21:19:26.792322 #21017] INFO -- : James+B.+Hunt+Jr.+Library server arxiv (8.0ms)
|
107
|
+
I, [2016-12-19T21:19:26.809161 #21017] INFO -- : James+B.+Hunt+Jr.+Library server open_library (16.5ms)
|
108
|
+
I, [2016-12-19T21:19:26.814549 #21017] INFO -- : James+B.+Hunt+Jr.+Library server best_bets (5.2ms)
|
109
|
+
I, [2016-12-19T21:19:26.814676 #21017] INFO -- : James+B.+Hunt+Jr.+Library server ALL (100.8ms)
|
110
|
+
I, [2016-12-19T21:19:26.924396 #21017] INFO -- : printing server open_library (10.4ms)
|
111
|
+
I, [2016-12-19T21:19:26.924777 #21017] INFO -- : printing server placeholder (0.2ms)
|
112
|
+
I, [2016-12-19T21:19:26.956073 #21017] INFO -- : printing server arxiv (19.8ms)
|
113
|
+
I, [2016-12-19T21:19:26.965794 #21017] INFO -- : printing server best_bets (9.3ms)
|
114
|
+
I, [2016-12-19T21:19:26.970572 #21017] INFO -- : printing server wikipedia (45.7ms)
|
115
|
+
I, [2016-12-19T21:19:26.970767 #21017] INFO -- : printing server ALL (57.7ms)
|
116
|
+
I, [2016-12-19T21:19:27.118931 #21017] INFO -- : speling server best_bets (10.4ms)
|
117
|
+
I, [2016-12-19T21:19:27.129303 #21017] INFO -- : speling server arxiv (10.2ms)
|
118
|
+
I, [2016-12-19T21:19:27.141260 #21017] INFO -- : speling server open_library (11.7ms)
|
119
|
+
I, [2016-12-19T21:19:27.141752 #21017] INFO -- : speling server placeholder (0.3ms)
|
120
|
+
I, [2016-12-19T21:19:27.144201 #21017] INFO -- : speling server wikipedia (47.4ms)
|
121
|
+
I, [2016-12-19T21:19:27.144397 #21017] INFO -- : speling server ALL (47.9ms)
|