New webapp working and deployed
Posted by mholmes on 23 Jan 2013 in Activity log
Spent the day tidying up the last of the things on my list. I've implemented authentication through eXist rather than Tomcat, which makes things cleaner in the deployment department, but slightly more messy when it comes to users, groups and permissions in the db itself. I've also got the Snowball analyzer working with English stemming, and it works out of the box, with syntax highlighting and everything. Things I'll need to remember for the next one:
- In controller.xql, when doing a dispatch/forward to an XQuery library, url parameters are passed on automatically. If you erroneously pass them explicitly as well, you get an array in the XQuery.
- CSS background-size sometimes fails on Chrome with an SVG image if the root
<svg>
element doesn't havepreserveAspectRatio="none"
. - To use the Snowball analyzer, in collection.xconf:
<lucene> <analyzer class="org.apache.lucene.analysis.snowball.SnowballAnalyzer"> <param name="name" type="java.lang.String" value="English"/> <param name="stopWords" type="java.util.Set"> <!-- using set from StopAnalyzer.ENGLISH_STOP_WORDS_SET --> <value>a</value> <value>an</value> [...] </analyzer> </lucene>