0%

How to query a specific field: filter by value

Data can be filtered by specifying field:value in the q parameter. Here is an example of searching for data with the marker_symbol Prkdc:

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

On the next page we will try an exercise which searches using a specific gene.