Search only custom taxonomies

Create a search form that submits a field called “name”. In the file that handles form submissions,

// get the "name" the visitor searched for
$term = $_POST['name'];

// query: find all posts with the 'people' taxonomy set to the "name" they searched for
$args = array(
    'post_type' => 'post', // or insert your custom post type here
    'tax_query' => array(
        array(
            'taxonomy' => 'people',
            'field'    => 'slug',
            'terms'    => "$sterm"
        ),
    ),
);
$query = new WP_Query( $args );

// loop through results and display
if($query->have_posts()):
    while($query->have_posts()) : $query->the_post();

    // output whatever HTML you like here
    ?><a href="https://wordpress.stackexchange.com/questions/260763/<?php the_permalink(); ?>"><?php the_title(); ?></a><?php

    endwhile;
endif;