Skip to content

Instantly share code, notes, and snippets.

[
{ "name": "inTitle",
"type": "org.apache.solr.ltr.feature.impl.SolrFeature",
"params":{ "q" : "{!field f=title}${user_text}" }
},
{
"name": "documentRecency",
"type": "org.apache.solr.ltr.feature.impl.SolrFeature",
"params": {
"q": "{!func}recip( ms(NOW,uploaded_time), 3.16e-11, 1, 1)"
{
"type":"org.apache.solr.ltr.ranking.RankSVMModel",
"name":"myModelName",
"features":[
{ "name": "documentRecency"},
{ "name": "originalScore"},
{ "name": "inTitle"}
],
"params":{
"weights": {
<dataConfig>
<dataSource type="BinFileDataSource" />
<document>
<entity name="xmltest-test" processor="TikaEntityProcessor"
url="../transcriptionXML/*" format="text/xml">
<field column="doc" name="doc" meta="true"/>
<field column="title" name="title" meta="true"/>
<field column="description" name="description" meta="true"/>
<field column="uploaded_time" name="uploaded_time" meta="true"/>
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@faridasabry
faridasabry / gist:6575935
Created September 16, 2013 01:59
WSDL for Asynchronous Process
<?xml version="1.0"?>
<definitions name="AsynchProcess"
targetNamespace="http://async.com"
xmlns:tns="http://async.com"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@faridasabry
faridasabry / gist:6575910
Last active December 23, 2015 03:49
.wsdl for Caller Process
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<definitions name="CallerProcess"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://caller.com"
xmlns:ns1="http://async.com"
targetNamespace="http://caller.com"
@faridasabry
faridasabry / gist:6575881
Last active December 23, 2015 03:49
BPEL file for Caller Process
<!-- CallerProcess BPEL Process [Generated by the Eclipse BPEL Designer] -->
<bpel:process name="CallerProcess"
targetNamespace="http://caller.com"
suppressJoinFailure="yes"
xmlns:tns="http://caller.com"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ns1="http://async.com">
<!-- Import the client WSDL -->