mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31:43 -05:00
Merge pull request #2021 from Apollinaire/getParametersFix
collection.getParameters handles schema extension for searchable fields
This commit is contained in:
commit
858fbece5e
1 changed files with 2 additions and 2 deletions
|
@ -246,8 +246,8 @@ export const createCollection = options => {
|
|||
if (terms.query) {
|
||||
|
||||
const query = escapeStringRegexp(terms.query);
|
||||
|
||||
const searchableFieldNames = _.filter(_.keys(schema), fieldName => schema[fieldName].searchable);
|
||||
const currentSchema = collection.simpleSchema()._schema;
|
||||
const searchableFieldNames = _.filter(_.keys(currentSchema), fieldName => currentSchema[fieldName].searchable);
|
||||
if (searchableFieldNames.length) {
|
||||
parameters = Utils.deepExtend(true, parameters, {
|
||||
selector: {
|
||||
|
|
Loading…
Add table
Reference in a new issue