This has now been moved to a proper GitHub repository: https://github.com/njh/gen-webid-cert
Please submit issues and enhancements there.
#!/usr/bin/env python | |
# | |
# pymarc_disco.py - Mark Matienzo | |
# sample MapReduce tasks for Disco to get tag counts from MARC files/streams | |
# usage: python pymarc_disco.py <input1> [input2 ... inputN] | |
import sys | |
from disco.core import Disco, result_iterator | |
from disco.settings import DiscoSettings | |
import pymarc |
license: gpl-3.0 |
<xhtml:html xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> | |
<xhtml:head> | |
<xforms:model> | |
<xforms:submission id="inexistent" resource="http://www.orbeon.com/gaga" replace="instance" method="post"> | |
<xforms:message ev:event="xforms-submit-error" level="modal">submission1 error (<xforms:output value="event('response-status-code')"/>)</xforms:message> | |
</xforms:submission> | |
<xforms:instance> | |
<instance/> | |
</xforms:instance> | |
</xforms:model> |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script src="http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js"></script> | |
<script> | |
/** | |
* A Simple Vector Shape Drawing App with RaphaelJS and jQuery | |
* copyright 2010 Kayla Rose Martin - Licensed under the MIT license | |
* Inspired by http://stackoverflow.com/questions/3582344/draw-a-connection-line-in-raphaeljs | |
**/ |
<collection xmlns="http://exist-db.org/collection-config/1.0"> | |
<index> | |
<!-- Old full text index configuration. Deprecated. --> | |
<fulltext default="none" attributes="false"/> | |
<!-- New full text index based on Lucene --> | |
<lucene> | |
<text qname="SPEECH"> | |
<ignore qname="SPEAKER"/> | |
</text> |
This has now been moved to a proper GitHub repository: https://github.com/njh/gen-webid-cert
Please submit issues and enhancements there.
<xh:html | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xh="http://www.w3.org/1999/xhtml" | |
xmlns:xf="http://www.w3.org/2002/xforms" | |
xmlns:exf="http://www.exforms.org/exf/1-0" | |
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
xmlns:ev="http://www.w3.org/2001/xml-events"> | |
<xh:head> | |
<xf:model id="model"> | |
<xf:instance id="instance"> |
// Andy bunce jan 2013 based on http://book.mixu.net/ch13.html | |
var fs = require('fs'), | |
http = require('http'), | |
sio = require('socket.io'); | |
var port=8001; | |
var server = http.createServer(function(req, res) { | |
res.writeHead(200, { 'Content-type': 'text/html'}); | |
res.end(fs.readFileSync('./index.html')); | |
}); | |
server.listen(port, function() { |
xquery version "3.0"; | |
declare function local:mapReduce( | |
$list as item()*, | |
$mapper as function(*), | |
$reducer as function(*) | |
) | |
{ | |
let $intermediate := for $l at $pos in $list return $mapper("list" || $pos,$l) | |
return |
This is a super basic beginners guide to Solr Lucene query syntax. We're going to cover running a straightforward query, as well as some of the more useful functionality such as filtering and creating facets. We'll point out some things you can't do and generally give you enough instruction so that you can get yourself into trouble.
To specify a list of fields to return instead of the default Solr response use fl
and provide a comma delimited list of fields: