Fixed issue where parent & child queries can fail if a segment doesn't have documents with the targeted type or associated parent type

Closes #2537
Disallow unknown custom indexing parameters

Fixes #2354
Make script cache configurable and bounded

Fixes #2539
Fix char filter issues introduced during lucene 4 migration

Fixes #2543