Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 151 lines (142 sloc) 4.239 kB
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
1 {
83caccf @markmacgillivray bringing in coll metadata to templates
markmacgillivray authored
2 # service and super user account
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
3 "service_name" : "BibSoup",
83caccf @markmacgillivray bringing in coll metadata to templates
markmacgillivray authored
4 "super_user" : "test",
0407dbe @markmacgillivray separating out the search functionality and adding in jtedit
markmacgillivray authored
5 "debug" : true,
6 "port" : 5000,
2ea417c @markmacgillivray fix to site url identification for building urls into records. additi…
markmacgillivray authored
7
e3f6be1 @markmacgillivray refactoring solreyes functions out - not finished though. parsers mov…
markmacgillivray authored
8 # elasticsearch settings
9696841 [refactor,setup][s]: introduce elasticsearch, document this, and test…
rgrp authored
9 "ELASTIC_SEARCH_HOST" : "127.0.0.1:9200",
10 "ELASTIC_SEARCH_DB" : "bibserver",
45edeeb @markmacgillivray changes to dao
markmacgillivray authored
11
06bc33a @markmacgillivray raft of changes to alter the layout of the search results, and to ena…
markmacgillivray authored
12 # bibserver functionality settings
47ad385 @markmacgillivray fixing config
markmacgillivray authored
13 # set to false if no frontend upload wanted
14 # set to false if no frontend edit wanted
15 "allow_upload" : true,
16 "allow_edit" : true,
06bc33a @markmacgillivray raft of changes to alter the layout of the search results, and to ena…
markmacgillivray authored
17
3b3456b @epoz First cut of the async ingest.
epoz authored
18 # ingest settings
19 "download_cache_directory" : "download_cache",
20 "parserscrapers_plugin_directory" : "parserscrapers_plugins",
21
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
22
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
23 # The default fields and settings for which faceting should be made available on
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
24 # these can be nested fields, e.g. links.url
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
25 "search_facet_fields" : [
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
26 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
27 "field":"collection.exact",
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
28 "order":"term",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
29 "size":200,
30 "display":"collection"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
31 },
32 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
33 "field":"type.exact",
34 "order":"count",
35 "display":"type"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
36 },
37 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
38 "field":"journal.name.exact",
39 "display":"journal"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
40 },
41 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
42 "field":"author.name.exact",
6b64456 @markmacgillivray adding a method to iomanager to find all relevant sort fields for giv…
markmacgillivray authored
43 "order":"term",
4fee8fb @markmacgillivray adding some beta tags and a version number, tidying up the FAQ page t…
markmacgillivray authored
44 "size":500,
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
45 "display":"author"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
46 },
47 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
48 "field":"year.exact",
49 "size":100,
50 "order":"reverse_term",
51 "display":"year"
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
52 }
53 ],
a7786fc @markmacgillivray added search result sort to frontend. added first pass at parsing peo…
markmacgillivray authored
54
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
55 # search result display layout
0532079 @markmacgillivray pushing changes to meet jims no-negotiable requirement that facet val…
markmacgillivray authored
56 # a list of lists. each list represents a line on the display.
57 # in each line, there are objects for each key to include on the line.
58 # must specify the key, and optional "pre" and "post" params for displaying round it
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
59 "search_result_display" : [
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
60 [
61 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
62 "field": "author.name"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
63 },
64 {
65 "pre": "(",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
66 "field": "year",
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
67 "post": ")"
68 }
69 ],
70 [
71 {
72 "pre": "<strong>",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
73 "field": "title",
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
74 "post": "</strong>"
75 }
76 ],
77 [
78 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
79 "field": "howpublished"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
80 },
81 {
9d17358 @markmacgillivray improved the config method for preparing facets - it is now an object…
markmacgillivray authored
82 "pre": "in <em>",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
83 "field": "journal.name",
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
84 "post": "</em>,"
85 },
86 {
87 "pre": "<em>",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
88 "field": "booktitle",
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
89 "post": "</em>,"
90 },
91 {
fec0f85 @markmacgillivray changing default config to closer match Jims wishes
markmacgillivray authored
92 "pre": "vol. ",
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
93 "field": "volume",
0532079 @markmacgillivray pushing changes to meet jims no-negotiable requirement that facet val…
markmacgillivray authored
94 "post": ","
fec0f85 @markmacgillivray changing default config to closer match Jims wishes
markmacgillivray authored
95 },
96 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
97 "pre": "p. ",
98 "field": "pages"
fec0f85 @markmacgillivray changing default config to closer match Jims wishes
markmacgillivray authored
99 },
100 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
101 "field": "publisher"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
102 }
103 ],
104 [
105 {
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
106 "field": "link.url"
be84de5 @markmacgillivray changing result display layout and adding passthrough options to show…
markmacgillivray authored
107 }
108 ]
109 ],
17c7c5a @markmacgillivray updating setup.py
markmacgillivray authored
110
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
111 # a dict of the ES mappings. identify by name, and include name as first object name
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
112 # and identifier for how non-analyzed fields for faceting are differentiated in the mappings
113 "facet_field" : ".exact",
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
114 "mappings" : {
115 "record" : {
116 "record" : {
117 "dynamic_templates" : [
118 {
119 "default" : {
120 "match" : "*",
003019c @markmacgillivray main purpose of this commit is the change to the dynamic mapping to s…
markmacgillivray authored
121 "match_mapping_type": "string",
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
122 "mapping" : {
123 "type" : "multi_field",
124 "fields" : {
125 "{name}" : {"type" : "{dynamic_type}", "index" : "analyzed", "store" : "no"},
126 "exact" : {"type" : "{dynamic_type}", "index" : "not_analyzed", "store" : "yes"}
127 }
128 }
129 }
130 }
131 ]
132 }
133 },
134 "collection" : {
135 "collection" : {
136 "dynamic_templates" : [
137 {
138 "default" : {
139 "match" : "*",
140 "mapping" : {
141 "index" : "not_analyzed"
142 }
143 }
144 }
145 ]
146 }
147 }
1c796d7 @markmacgillivray major refactor to new versions of bootstrap and facetview. dropped al…
markmacgillivray authored
148 }
37aea4f @markmacgillivray slight refactor of iomanager and web.py calling it, and changes to bi…
markmacgillivray authored
149
e491933 @markmacgillivray adding facetview files
markmacgillivray authored
150 }
Something went wrong with that request. Please try again.