Skip to content

Commit

Permalink
fix derived/raw
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAkhmetov committed Aug 27, 2024
1 parent a5b66e1 commit 20d5baa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions context/app/static/js/pages/search/DevSearch.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { ExistsQuery, BoolMustNot, TermQuery } from 'searchkit';
import { ExistsQuery, BoolMustNot, BoolMust, TermQuery } from 'searchkit';

import { Alert } from 'js/shared-styles/alerts';
import { useAppContext } from 'js/components/Contexts';
Expand Down Expand Up @@ -52,8 +52,8 @@ function DevSearch() {
listFilter('mapped_data_types', 'mapped_data_types'),
listFilter('metadata.metadata.assay_category', 'assay_category'),
listFilter('metadata.metadata.assay_type', 'assay_type'),
checkboxFilter('is_derived', 'Is derived?', TermQuery('processing', 'processed')),
checkboxFilter('is_raw', 'Is raw?', BoolMustNot(TermQuery('processing', 'raw'))),
checkboxFilter('is_derived', 'Is derived?', BoolMust(TermQuery('processing.keyword', 'processed'))),
checkboxFilter('is_raw', 'Is raw?', BoolMust(TermQuery('processing.keyword', 'raw'))),
hierarchicalFilter({
fields: {
parent: { id: 'metadata.metadata.analyte_class.keyword' },
Expand Down

0 comments on commit 20d5baa

Please sign in to comment.