Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update buildFilterObject()
  • Loading branch information
bluefuton committed Jan 27, 2020
commit 91645d126b3d9b094df6a38bf484f01ac2f1768a
2 changes: 1 addition & 1 deletion modules/search/instant-search/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function buildFilterObject( filterQuery ) {
filter.bool.must.push( filterKeyToEsFilter.get( key )( item ) );
} else {
// If key is not in the standard map, assume to be a custom taxonomy
filter.bool.must.push( { term: { [ `taxonomy.${ key }.slug` ]: item } } );
filter.bool.must.push( { term: { [ `taxonomy.${ key }.name.raw` ]: item } } );
}
} );
} );
Expand Down