0%

How to exclude data: NOT operator

Logical filters can be inverted by using the NOT operator. For example: NOT marker_symbol:Prkdc.

num_found, df = solr_request(
    core='statistical-result', 
    params={
        'q': 'NOT marker_symbol:Prkdc',
        'fl': 'marker_symbol,top_level_mp_term_name,effect_size,p_value',
        'rows': 3
    }
)

This query will return documents where the marker_symbol is not Prkdc.