1
0
mirror of https://github.com/djohnlewis/stackdump synced 2024-12-04 15:07:36 +00:00
Commit Graph

195 Commits

Author SHA1 Message Date
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
Samuel Lai
5e930bbc08 Added scripts for deleting a site from the system, and getting site info from the net. 2011-11-01 22:02:25 +11:00
Samuel Lai
489d9aec22 Added some new fields for sites, and ability to look up details from the sites RSS feed. 2011-11-01 17:36:14 +11:00
Samuel Lai
97740a206d Added methods to render templates. 2011-10-30 18:37:33 +11:00
Samuel Lai
a83bed32b5 Extracted models out of dataproc/insert.py so they can be reused elsewhere. 2011-10-30 17:12:01 +11:00
Samuel Lai
18850e5bb5 Fixed media root path due to file having moved directories. 2011-10-30 17:11:41 +11:00
Samuel Lai
d541bdeabc Added missing __init__ file to make stackdump dir a module. 2011-10-30 17:11:00 +11:00
Samuel Lai
65130d5415 Moved code into a single stackdump package so code can be shared more easily. 2011-10-30 16:54:49 +11:00
Samuel Lai
513829e255 Oops, forgot to remove the import statement for the now deprecated servers.py. 2011-10-23 18:20:20 +11:00
Samuel Lai
63da7cd3ca Added Twitter bootstrap and jQuery to static media. 2011-10-23 18:18:48 +11:00
Samuel Lai
bc1572be52 Added static files serving function, and cleaned up more Jython hacks. 2011-10-23 18:17:23 +11:00
Samuel Lai
810e2e5fe3 Removed package modded markers that are no longer needed. 2011-10-23 17:42:23 +11:00
Samuel Lai
61b3ba0c94 Fixed bug where Solr data was being stored one directory too far back. 2011-10-23 17:42:06 +11:00
Samuel Lai
3626ea34ae One last fime to modify for Jython hack removal - the start_python.sh script. 2011-10-23 17:32:44 +11:00
Samuel Lai
61579cb807 Removed the Jython hacks. We're going with CPython only now. 2011-10-23 17:07:59 +11:00
Samuel Lai
59ab86dd59 Attempted to fix issues with Jython and the import process. 2011-10-23 16:52:47 +11:00
Samuel Lai
58f2225e4e Completed first hack of data insertion script - db and solr. 2011-09-18 18:00:32 +10:00
Samuel Lai
ed9a46144b Redesigned Solr schema to index more, store less and use the JSON fields. 2011-09-18 18:00:05 +10:00
Samuel Lai
5857815885 Modified jython-sqlite connector to support transactions. 2011-09-18 13:57:28 +10:00
Samuel Lai
e6d91198fa Added the httplib2 and pysolr libraries for Solr Python API. 2011-09-17 19:57:45 +10:00
Samuel Lai
65dc8fb66f Added the data directory to the ignore file. 2011-09-17 19:54:51 +10:00
Samuel Lai
cc760afec9 Configured Solr - setup and schema. 2011-09-17 19:53:31 +10:00
Samuel Lai
232306d338 Changed jetty config so it only listens on localhost.
We don't want public access to it anyway.
2011-09-17 19:52:35 +10:00
Samuel Lai
bd6280f6a5 Added some new ignores due to previous commit. 2011-09-14 22:37:21 +10:00
Samuel Lai
429aa69660 Now uses Python if it can be found.
Jython was too slow, and took too much memory to be reliable, particularly for large data sets.
2011-09-14 22:35:56 +10:00
Samuel Lai
af2eafeccd Initial commit. Still building up the env and some parsing code. 2011-09-11 14:29:39 +10:00