Samuel Lai
755a2f2c1f
Added some sane default limits for Solr so it doesn't chew up all the RAM.
...
That tends to happen when importing large datasets.
2012-08-07 19:07:07 +10:00
Samuel Lai
ae208b49ca
Fixed a bug where the topbar search box did not have the name attribute.
...
This caused the search to fail.
2012-08-07 18:52:17 +10:00
Samuel Lai
e38a6e6d0d
Fixed a minor bug where if the incorrect version of Python was specified in PYTHON_CMD, no error message was printed and the script just aborted.
2012-08-07 18:51:45 +10:00
Samuel Lai
6013a706d7
Added custom 404 page.
2012-02-12 21:40:35 +11:00
Samuel Lai
9807f0c076
Built licenses pages into the app.
2012-02-12 21:32:48 +11:00
Samuel Lai
1da980424c
Links in question view are now parsed and links are re-written where possible to point to the stackdump instance. They are also styled differently to highlight this.
...
Images are also replaced with a placeholder.
2012-02-12 21:16:07 +11:00
Samuel Lai
5bfcfd2f1a
Added an error message when start_python.sh can't find a valid version.
2012-02-12 21:12:33 +11:00
Samuel Lai
105be00e9e
Added confirmation when deleting sites.
2012-02-12 21:11:42 +11:00
Samuel Lai
3b1393d9c2
Reduced the number of database calls for the retrieve_sites view helper.
2012-02-12 16:51:14 +11:00
Samuel Lai
f4e2c64de7
Fixed a minor rendering bug where there was no bottom margin for lists.
2012-02-12 16:50:38 +11:00
Samuel Lai
d1ac676db5
Added the site name to the title text for the site logo too.
2012-02-12 15:57:29 +11:00
Samuel Lai
cab37377f7
Added indicator for accepted answer.
2012-02-12 15:54:03 +11:00
Samuel Lai
67f1ac7a3a
Added check in the import script to make sure sites aren't inserted with a site key that clashes with Stackdump URLs, e.g. /search or /media.
2012-02-12 14:23:59 +11:00
Samuel Lai
84f5a951ed
Re-ordered the Stackdump-wide search method in code so it is processed before the site-specific methods. This means even if a site is imported with the key 'search', it can't replace that page.
2012-02-12 14:19:50 +11:00
Samuel Lai
caebcabd89
Refactored the 'no data' page so the import instructions are accessible even after you've imported your initial dump(s) via a link in the footer.
2012-02-12 14:14:15 +11:00
Samuel Lai
ea0c592fed
Very minor adjustment of margins for the site tagline.
2012-02-12 13:58:08 +11:00
Samuel Lai
db3bf11310
Added a 'no data' page with instructions on how to import data into Stackdump.
2012-02-12 13:56:37 +11:00
Samuel Lai
adccd41724
Renamed dataproc management commands to better names.
2012-02-12 13:55:18 +11:00
Samuel Lai
f075580a2e
Added indexes to database to speed things up.
2012-02-12 13:54:49 +11:00
Samuel Lai
43f49d1827
Fixed some minor CSS issues, and fixed issues when there is only one site imported in Stackdump.
2012-02-11 22:57:57 +11:00
Samuel Lai
06e210d37a
Implemented random questions on home pages. Also consolidated the index pages into a single template.
2012-02-11 22:32:23 +11:00
Samuel Lai
6c58938d44
Changed the default operator to AND properly this time. It has been changed in Solr configuration, instead of hacking the query string.
2012-02-11 21:09:40 +11:00
Samuel Lai
888d7d2e94
Fixed bug where sites without logos were not being correctly served the unknown site logo.
2012-02-11 19:25:21 +11:00
Samuel Lai
b4b2a536e0
Changed from using the route decorator to get because it shows the HTTP methods allowed for that method more clearly.
2012-02-11 19:24:04 +11:00
Samuel Lai
ded9a52d02
Fixed issue where answers were in a difficult-to-read light grey colour.
2012-02-11 19:23:33 +11:00
Samuel Lai
1638617c3e
Fixed bug where site_index.html was POSTing the query instead of using GET.
...
Also fixed issue where errors when searching were not being propagated properly.
2012-02-11 19:20:19 +11:00
Samuel Lai
7363c666d8
Implemented the question view.
2012-02-11 19:08:51 +11:00
Samuel Lai
7dac0dcdea
Fixed bug where searching on site search pages would bounce you back to the all sites search page.
2012-02-11 19:08:28 +11:00
Samuel Lai
a4dd607dcc
Added missing padding before footer for pages longer than screen height.
2012-02-11 16:44:09 +11:00
Samuel Lai
cda1690be4
Adjusted styling of the 'search all sites' link.
2012-02-11 16:43:34 +11:00
Samuel Lai
68106831ea
Fixed the footer at the bottom of the page regardless of the page height.
2012-02-11 16:41:16 +11:00
Samuel Lai
2979714a0c
Added a nicer message when no results are returned.
2012-02-11 16:30:36 +11:00
Samuel Lai
101e36d9e0
Query is now automatically modified to default to ANDing keywords together, unless another operator is specified in the query string.
2012-02-11 16:17:40 +11:00
Samuel Lai
7e87726b74
Implemented site-specific search.
...
Added site logos to searches across all sites for easier identification.
Added hints to make it more obvious which site you are searching.
Minor CSS tweaks.
2012-02-05 17:54:13 +11:00
Samuel Lai
6d32f93452
Changed the indexed field from site name to site key because site key is relatively more unique.
2012-02-05 17:52:44 +11:00
Samuel Lai
3e02dcf151
Fixed bug with paging where the paginator thought the current page was the next page.
...
Also changed the sort button URLs so when changing sort, you are thrown back to page 1.
2012-02-04 18:38:15 +11:00
Samuel Lai
5078e7369f
User details are now retrieved and shown on the results page.
2012-02-04 18:33:24 +11:00
Samuel Lai
68e5e17f74
Minor CSS fixes to make positively voted questions stand out and fixed line height issue with long titles.
2012-02-04 17:10:22 +11:00
Samuel Lai
6511759213
Implemented sorting on the search page.
2012-02-04 17:05:43 +11:00
Samuel Lai
ea2170edb9
Changed name of field from 'score' to 'votes' as score is a keyword in Lucene.
2012-02-04 17:04:54 +11:00
Samuel Lai
4fc9f4e780
Fixed bug where no or negative search result range parameters resulted in HTTP 500.
2012-02-04 15:43:20 +11:00
Samuel Lai
c4c3835841
Implemented paging on results page.
2012-01-29 00:32:15 +11:00
Samuel Lai
96cb924c52
Improved styling of results page with :hover, links and more spacing.
2012-01-28 23:48:00 +11:00
Samuel Lai
90e46dfacf
Dates are now formatted using a custom template filter, format_datetime.
2011-11-06 18:14:31 +11:00
Samuel Lai
045b50fe6c
Tags are now parsed during import, and inserted into the index as an array field.
...
Also changed names of multivalued Solr fields so they are plural.
2011-11-06 18:02:06 +11:00
Samuel Lai
098a4f2fa9
Started implementing the search results view.
2011-11-06 17:20:11 +11:00
Samuel Lai
f8a6e7c455
Enabled template autoescaping by default.
2011-11-05 18:52:49 +11:00
Samuel Lai
a2614220ae
Created resource decorators that create connections as needed in by the current thread.
2011-11-05 18:43:54 +11:00
Samuel Lai
365acbe80a
Added method to make site logos appear if they exist, otherwise show unknown icon.
2011-11-05 12:13:16 +11:00
Samuel Lai
dc7a923fa9
Fleshed initial HTML views and pages.
2011-11-01 22:03:22 +11:00