# Search term operator and wildcard support (NEAR5, AND, OR, NOT, '\*', '?', etc.) and fuzzy matching

**URL:** <http://forum.companieshouse.gov.uk/t/search-term-operator-and-wildcard-support-near5-and-or-not-etc-and-fuzzy-matching/182>\
**Category:** Uncategorized\
**Created:** [July 31, 2015, 9:17am UTC](http://forum.companieshouse.gov.uk/t/search-term-operator-and-wildcard-support-near5-and-or-not-etc-and-fuzzy-matching/182 "2015-07-31T09:17:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![james\_mardell](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/james_mardell/32/1111_2.png) [@james\_mardell](http://forum.companieshouse.gov.uk/u/james_mardell)\
**Post date:** [July 31, 2015, 9:17am UTC](http://forum.companieshouse.gov.uk/t/search-term-operator-and-wildcard-support-near5-and-or-not-etc-and-fuzzy-matching/182/1 "2015-07-31T09:17:44Z")

</div>

On the `/search/companies` GET endpoint, does the `q` parameter support operators and wildcards, such as (`NEAR5`, `AND`, `OR`, `NOT`, `*`, `?`, etc.)? If so what syntax does the API use for its query language?

Is it also possible to switch fuzzy matching on/off for a given query?

For example, a GET request on `https://api.companieshouse.gov.uk/search/companies?q=insurance%20NOT%20quote` should return companies with the word _insurance_ in their name, but exclude companies names containing the word _quote_.

---

<div class="post-metadata">

**Author:** ![amaddaford](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/amaddaford/32/45_2.png) [@amaddaford](http://forum.companieshouse.gov.uk/u/amaddaford)\
**Post date:** [August 3, 2015, 8:27am UTC](http://forum.companieshouse.gov.uk/t/search-term-operator-and-wildcard-support-near5-and-or-not-etc-and-fuzzy-matching/182/2 "2015-08-03T08:27:19Z")

</div>

There is currently no way to customise the search or provide any operators or wildcards. Longer term we are hoping to provide more advanced search options.

---

<div class="post-metadata">

**Author:** ![john\_prince](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@john\_prince](http://forum.companieshouse.gov.uk/u/john_prince)\
**Post date:** [June 18, 2024, 8:13am UTC](http://forum.companieshouse.gov.uk/t/search-term-operator-and-wildcard-support-near5-and-or-not-etc-and-fuzzy-matching/182/3 "2024-06-18T08:13:13Z")

</div>

Hi - is there any update on this question? Does the API support operator matching yet?

---

<div class="post-metadata">

**Author:** ![voracityemail](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@voracityemail](http://forum.companieshouse.gov.uk/u/voracityemail)\
**Post date:** [June 18, 2024, 8:37am UTC](http://forum.companieshouse.gov.uk/t/search-term-operator-and-wildcard-support-near5-and-or-not-etc-and-fuzzy-matching/182/4 "2024-06-18T08:37:29Z")

</div>

You can’t search exactly as the OP requested but see the [Companies House advanced search](https://developer-specs.company-information.service.gov.uk/companies-house-public-data-api/reference/search/advanced-company-search). This allows you to require certain words and exclude others, in addition to specifying all kinds of other conditions e.g. type of organisation etc.

You can try it online here: [Advanced company search - Find and update company information - GOV.UK](https://find-and-update.company-information.service.gov.uk/advanced-search)

As for fuzzy searching, Companies House have advised that the normal search incorporates this e.g. they try to return results which seem to be appropriate. However that is not configurable.
