# Custom Search Filter

The Custom Search Filter will give the user an input box to type into, and using their text, it will search through the post titles and popup text you've added in order to present clickable results that will zoom to the relevant feature.

If you want, you can include a geocoder with this -- meaning that users will be able to search both the features you've added *and* real-world locations together. Your features will always appear first in the list if any match is found.

<figure><img src="https://350198811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK5R35dCakOT16UkavAw2%2Fuploads%2FSxvrTxydQHcrFEtPun2r%2Fsearch-filter.PNG?alt=media&#x26;token=943cadde-efe3-4e6d-97f3-ae84943a09ef" alt=""><figcaption></figcaption></figure>

### Include Geocoder <sup><sub>*<mark style="color:blue;">\[Requires Mapbox access token]</mark>*<sub></sup>

Allow users to search both general address and your feature information at the same time.

* **Limit results** by country code (use [2-letter country codes](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))
* **Modify the search placeholder text**

### Number of Results <sup><sub>*<mark style="color:green;">\[Pro]</mark>*<sub></sup>

Adjust how many results are returned maximum

### Search Type <sup><sub>*<mark style="color:green;">\[Pro]</mark>*<sub></sup>

Adjust whether search results must find an exact match, match any term, or match all terms entered. [You can see examples here](https://wpmaps.mapster.me/examples/#controls-filters).

For instance, if you have three points, and they have the titles:

* Bear Lake Station
* Station Grudge Bear
* Lake Bear Station

And someone searches "Bear Lake", then:

* With Exact Matching, "Bear Lake Station" will show up
* With Any Term, all three will show up (all match "Bear")
* With All Terms, "Bear Lake Station" and "Lake Bear Station" will show up

### Embed on Separate Page <sup><sub>*<mark style="color:green;">\[Pro]</mark>*<sub></sup>

To make a unique landing page that users can use as a portal to search your map like on popular real estate websites like AirBNB, use the shortcode generated in this section.

You can then style the front-end search form to make it look how you want and have it direct users to specific popups, locations, or shapes on your map.
