mirror of https://github.com/apache/lucene.git
Enable validation checks on JSON files
This commit is contained in:
parent
2e519ac955
commit
575eead80f
|
@ -138,7 +138,7 @@
|
|||
'java', 'jflex', 'py', 'pl', 'g4', 'jj', 'html', 'js',
|
||||
'css', 'xml', 'xsl', 'vm', 'sh', 'cmd', 'bat', 'policy',
|
||||
'properties', 'mdtext',
|
||||
'template', 'adoc',
|
||||
'template', 'adoc', 'json',
|
||||
];
|
||||
def invalidPatterns = [
|
||||
(~$/@author\b/$) : '@author javadoc tag',
|
||||
|
|
|
@ -3,15 +3,20 @@
|
|||
"name":"fqmodel",
|
||||
"features":[
|
||||
{
|
||||
"name":"matchedTitle",
|
||||
"name": "matchedTitle",
|
||||
"norm": {
|
||||
"class":"org.apache.solr.ltr.norm.MinMaxNormalizer",
|
||||
"params":{ "min":"0.0f", "max":"10.0f" }
|
||||
"class": "org.apache.solr.ltr.norm.MinMaxNormalizer",
|
||||
"params": {
|
||||
"min": "0.0f",
|
||||
"max": "10.0f"
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "name":"popularity"}
|
||||
{
|
||||
"name": "popularity"
|
||||
}
|
||||
],
|
||||
"params":{
|
||||
"params": {
|
||||
"weights": {
|
||||
"matchedTitle": 0.5,
|
||||
"popularity": 0.5
|
||||
|
|
|
@ -1,30 +1,45 @@
|
|||
{
|
||||
"class":"org.apache.solr.ltr.model.LinearModel",
|
||||
"name":"6029760550880411648",
|
||||
"features":[
|
||||
{"name":"title"},
|
||||
{"name":"description"},
|
||||
{"name":"keywords"},
|
||||
"class": "org.apache.solr.ltr.model.LinearModel",
|
||||
"name": "6029760550880411648",
|
||||
"features": [
|
||||
{
|
||||
"name":"popularity",
|
||||
"name": "title"
|
||||
},
|
||||
{
|
||||
"name": "description"
|
||||
},
|
||||
{
|
||||
"name": "keywords"
|
||||
},
|
||||
{
|
||||
"name": "popularity",
|
||||
"norm": {
|
||||
"class":"org.apache.solr.ltr.norm.MinMaxNormalizer",
|
||||
"params":{ "min":"0.0f", "max":"10.0f" }
|
||||
"class": "org.apache.solr.ltr.norm.MinMaxNormalizer",
|
||||
"params": {
|
||||
"min": "0.0f",
|
||||
"max": "10.0f"
|
||||
}
|
||||
}
|
||||
},
|
||||
{"name":"text"},
|
||||
{"name":"queryIntentPerson"},
|
||||
{"name":"queryIntentCompany"}
|
||||
{
|
||||
"name": "text"
|
||||
},
|
||||
{
|
||||
"name": "queryIntentPerson"
|
||||
},
|
||||
{
|
||||
"name": "queryIntentCompany"
|
||||
}
|
||||
],
|
||||
"params":{
|
||||
"params": {
|
||||
"weights": {
|
||||
"title": 0.0000000000,
|
||||
"description": 0.1000000000,
|
||||
"keywords": 0.2000000000,
|
||||
"popularity": 0.3000000000,
|
||||
"text": 0.4000000000,
|
||||
"queryIntentPerson":0.1231231,
|
||||
"queryIntentCompany":0.12121211
|
||||
"queryIntentPerson": 0.1231231,
|
||||
"queryIntentCompany": 0.12121211
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue