Skip to content

Commit

Permalink
Fix query test
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Nov 15, 2022
1 parent ce1101e commit a753679
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/components/Views/ElasticSearchHighlights.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export const getMatches = (highlight) => {
matches = matches.concat(fragmentmatches.map((match) => match[1]));
});
matches = [...new Set(matches)];
console.debug('getMatches', matches);
return matches;
};

Expand Down
9 changes: 5 additions & 4 deletions src/components/Views/TestSearchkitQuerystrings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const OnHighlights = withState(_OnHighlights);
const OnResults = withState(ResultsMultiLayout);

const CustomResultsListItem = ({ result, index }) => {
console.debug('** result.title', result.title);
return (
<div>
<Header as="h3">
Expand Down Expand Up @@ -121,13 +120,15 @@ const TestSearchkitQuerystrings = (props) => {
// reviewstatemapping: {
// Manual: ['internally_published', 'private', 'internal'],
// },
simpleFields: config.settings.searchkitblock.simpleFields,

simpleFields: [],
nestedFilterFields: [],
allowed_content_types: searchkitblock_controlpanel?.allowed_content_types,
allowed_review_states: searchkitblock_controlpanel?.allowed_review_states,
backend_url: searchkitblock_controlpanel?.testsearch_backend,
frontend_url: searchkitblock_controlpanel?.testsearch_frontend,
}
: {};
console.debug('TestSearchkitQuerystrings. searchconfig', searchconfig);
console.debug('searchkitblock_controlpanel', searchkitblock_controlpanel);

const initialState = {
sortBy: 'bestmatch',
Expand Down

0 comments on commit a753679

Please sign in to comment.