# Search by <field>:"<word>"
Free search's syntax also allows you to search for specific properties throughout all the fields of a definition.
Steps:
- Inside the search box, enter the field name, in lowercase letters, followed by
:
(colon) and the information you want. - If the field name contains more than one word, you must use
_
(underscore) as a separator (i.e.: fieldCountry Name = country_name
). - If the query includes more than one word, you should put it between
"
(quotation marks) (i.e.:country_name: "Saudi Arabia"
).
# Searching for exact field matches
There can be certain scenarios in which searching for field:"word"
works, however you get more results than what you wanted due to how the matching actualy works. For instance, if you were to search for field:"word"
, you would catch all results containing word
, since it is a partial match and not an exact match. So you result would be any field containing word
in any part of the name of the field, which can result in too many matches.
If you want to search for exact matches only, you must add the .raw
keyword to the field, like so: field.raw:"word"
. Using this format, only those that match exactly will be included in the result.
Example:
Searching for long_name:"republic"
, we get all results whose long name contain the search term "Republic".
![](https://learning.cultofbits.com/recordm/recordm/instances/17576/files/187/Screenshot%202024-11-14%20at%2014.44.30.png)
However, if we search for the exact term, using long_name.raw:"republic"
, we are searching for a country which has the long name "Republic", and none exist.
![](https://learning.cultofbits.com/recordm/recordm/instances/17576/files/187/Screenshot%202024-11-14%20at%2014.44.41.png)