Skip to content

Commit 8ce04df

Browse files
committed
Add LENIENT validation
1 parent 3ba82fa commit 8ce04df

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

jbrowse/resources/web/jbrowse/window/ModifyJsonConfigWindow.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ Ext4.define('JBrowse.window.ModifyJsonConfigWindow', {
107107
handler: function (gridBtn) {
108108
this.addAttribute('infoFieldsForFullTextSearch', null, 'STRING');
109109
}
110+
},{
111+
text: 'Allow Lenient Validation for Search Index',
112+
scope: this,
113+
handler: function (gridBtn) {
114+
this.addAttribute('lenientLuceneProcessing', true, 'BOOLEAN');
115+
}
110116
},{
111117
text: 'Other',
112118
scope: this,

jbrowse/src/org/labkey/jbrowse/model/JsonFile.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,13 @@ private void prepareLuceneIndex(Logger log) throws PipelineJobException
10041004

10051005
args.add("--allow-missing-fields");
10061006

1007+
JSONObject config = getExtraTrackConfig();
1008+
if (config != null && !config.isNull("lenientLuceneProcessing") && config.getBoolean("lenientLuceneProcessing"))
1009+
{
1010+
args.add("--validation-stringency");
1011+
args.add("LENIENT");
1012+
}
1013+
10071014
runner.execute(args);
10081015
}
10091016

0 commit comments

Comments
 (0)