Search string translator
This search string translator takes one Boolean query, written with AND, OR, NOT, brackets and a few field prefixes, and writes it three times: with PubMed’s field tags, with Europe PMC’s field names, and as the keyword parameters Crossref’s API accepts. Under each one it lists what that database couldn’t express.
Updated
The tool
Runs in your browser. Nothing you enter is uploaded, stored or sent anywhere.
How the query is translated
You write the query once in a small neutral grammar. A field prefix sits directly on a word or a quoted phrase, as in title:"measles vaccine". The translator turns each prefix into the tag that database uses, from the PubMed User Guide, the list of search fields Europe PMC accepts and the Crossref REST API documentation.
| You write | PubMed | Europe PMC | Crossref |
|---|---|---|---|
title:measles | measles[ti] | TITLE:measles | query.title=measles |
abstract:measles | measles[tiab] | ABSTRACT:measles | A plain word in query.bibliographic |
author:smith | smith[au] | AUTH:smith | query.author=smith |
journal:lancet | lancet[ta] | JOURNAL:lancet | query.container-title=lancet |
doi:10.1000/xyz | 10.1000/xyz[doi] | DOI:10.1000/xyz | A plain word in query.bibliographic |
pmid:12345678 | 12345678[pmid] | EXT_ID:12345678 | A plain word in query.bibliographic |
year:2015-2024 | 2015:2024[dp] | (FIRST_PDATE:[2015-01-01 TO 2024-12-31]) | filter=from-pub-date:2015-01-01,until-pub-date:2024-12-31 |
What each field prefix becomes. The year row shows a query that is only a year range.
title:measles- PubMed
measles[ti]- Europe PMC
TITLE:measles- Crossref
query.title=measles
abstract:measles- PubMed
measles[tiab]- Europe PMC
ABSTRACT:measles- Crossref
- A plain word in
query.bibliographic
author:smith- PubMed
smith[au]- Europe PMC
AUTH:smith- Crossref
query.author=smith
journal:lancet- PubMed
lancet[ta]- Europe PMC
JOURNAL:lancet- Crossref
query.container-title=lancet
doi:10.1000/xyz- PubMed
10.1000/xyz[doi]- Europe PMC
DOI:10.1000/xyz- Crossref
- A plain word in
query.bibliographic
pmid:12345678- PubMed
12345678[pmid]- Europe PMC
EXT_ID:12345678- Crossref
- A plain word in
query.bibliographic
year:2015-2024- PubMed
2015:2024[dp]- Europe PMC
(FIRST_PDATE:[2015-01-01 TO 2024-12-31])- Crossref
filter=from-pub-date:2015-01-01,until-pub-date:2024-12-31
The rules it follows
- Operators. AND, OR and NOT are read in any case and written in capitals, which is the only way PubMed reads them. Two terms side by side are joined with AND. Every group goes in brackets, because PubMed processes a search from left to right (PubMed User Guide).
- Phrases. A quoted phrase keeps its quotes in PubMed and Europe PMC. Crossref matches words, so the phrase is sent as its separate words and the result says so.
- Years. A
year:at the top level becomes a date limit. PubMed takes a range of publication dates with a colon between them and the[dp]tag. Crossref takes publication date filters. Ayear:inside OR or NOT is ignored, and the result says so. - Anything already in a database’s syntax is left exactly as typed: a MeSH heading such as
"Measles"[Mesh], a tagged word such asmeasles[tiab], a wildcard such asvaccin*, or a Europe PMC field such asAUTH:smith. The result names each one under the databases that won’t read it as you meant. - Abstract only. The PubMed User Guide lists no abstract-only tag, so
abstract:is written[tiab], which also searches the title and the author keywords.
A worked example: measles vaccine outcomes
The translator opens with this query: title:"measles vaccine" (outcome OR complication*) NOT animal year:2015-2024. It asks for records with the phrase in the title, either of two outcome words anywhere, nothing about animals, published from 2015 to 2024.
| Database | Search |
|---|---|
| PubMed | ("measles vaccine"[ti] AND (outcome OR complication*) NOT animal) AND 2015:2024[dp] |
| Europe PMC | (TITLE:"measles vaccine" AND (outcome OR complication*) NOT animal) AND (FIRST_PDATE:[2015-01-01 TO 2024-12-31]) |
| Crossref | query.bibliographic=outcome complication* with query.title=measles vaccine and filter=from-pub-date:2015-01-01,until-pub-date:2024-12-31 |
PubMed and Europe PMC lose nothing. Crossref loses four things, and the tool lists them. The NOT clause is dropped, because Crossref can’t exclude terms. The OR group is flattened, because its documentation describes a query as looking for “the presence of one or more words” and names no operators. The phrase is sent as two words. The wildcard is sent as typed.
What a translation can’t do
- It doesn’t translate subject headings. MeSH is the vocabulary of MEDLINE and PubMed, and Embase, for one, uses its own, so a heading has to be looked up again in each database. The search strategy guide covers this.
- It writes for three databases only. Embase, Scopus, Web of Science, CINAHL and the Ovid platform each have their own syntax, and none of them is covered here.
- It can’t tell you the search is a good one. Check that each version finds the studies you already know are eligible, and have the strategy peer reviewed.
- Counts will differ between databases. They hold different records, and the fields don’t line up exactly: PubMed’s
[tiab]includes author keywords, for instance. - A Crossref search is a ranked keyword search. Expect a very large total, and treat Crossref as a supplement to databases that take a Boolean search.
What to report
What to report: Report each search as it was run
PRISMA 2020 item 7 asks for the full search strategies for all databases, registers and websites, including any filters and limits used. PRISMA-S item 8 asks for the strategies “copied and pasted exactly as run”. Report the string each database received, not the neutral query you started from. The PRISMA-S checklist tracks the rest.
Doing this in OtterSR
In OtterSR the protocol holds one search for each database: PubMed, Europe PMC, ClinicalTrials.gov, Crossref and, with your own free key, OpenAlex. Set up protocol drafts them from your protocol. Each is shown as its database reads it, with its years and limits, and is counted before you import. The rules on this page are the ones OtterSR’s own search code uses for a query written with these field prefixes, and the tool’s tests hold the two to the same answers.
For Embase, Scopus or Web of Science, run the search there and import the exported file. Searching and importing are free. See the protocol generator and how it works.
Frequently asked questions
Can it convert a PubMed search for Embase or Scopus?
No. It writes for PubMed, Europe PMC and Crossref only. Other databases have their own syntax, and Embase indexes with its own subject headings, so those versions need writing and testing in the database itself.
What happens to MeSH terms and [tiab] tags?
They’re left exactly as you typed them, so the PubMed version is unchanged. Under Europe PMC and Crossref, the tool names each tagged term and tells you to rewrite or remove it, because those databases don’t use PubMed’s tags.
Does Crossref support Boolean operators?
Its documentation describes queries that look for one or more words, plus field queries for the title, the author and the publication name. It describes no AND, OR or NOT. So the translator drops NOT clauses, flattens OR groups into a list of words, and tells you it has.
Why do PubMed and Europe PMC give different counts?
They hold different sets of records and define their fields differently. Report the count from each database separately, which PRISMA-S item 15 asks for, and don’t expect them to match.
Is my search sent anywhere?
No. The translation runs in your browser. A search leaves the page only if you click a link that opens it in PubMed, Europe PMC or Crossref.
In a review run in OtterSR, this comes at step 2 of 5, Search and import. The protocol generator page shows how a review is set up and searched.
How to cite this tool
OtterSR. Search string translator. https://www.ottersr.com/tools/search-string-translator (accessed today’s date).
Please cite the method as well:
PubMed User Guide. National Center for Biotechnology Information, US National Library of Medicine.
Europe PMC RESTful Web Service: the search fields it accepts, as its fields method lists them. EMBL-EBI.
Crossref REST API documentation, version 4.11.3: queries, field queries and filters on the works route. Crossref.
Related guides
- How to build a systematic review search strategyHow to build a systematic review search strategy: concept blocks, MeSH and free-text terms, Boolean operators, filters, grey literature, PRESS and PRISMA-S.
- How to write a systematic review protocol and register itHow to write a systematic review protocol with PRISMA-P, register it on PROSPERO or OSF, handle amendments and report it all under PRISMA 2020 item 24.
- How to remove duplicate references in EndNote, Zotero, Mendeley and OtterSRHow EndNote, Zotero and Mendeley find duplicate references, what each misses, how to resolve them safely, and how to count duplicates removed for PRISMA 2020.
Related tools
- PubMed search string builderUse this when you’re turning the concepts of your question into a PubMed search and want the syntax checked before you run it.
- PRISMA-S checklist for reporting literature searchesUse this when your searches are done and you need to show, item by item, where the manuscript reports each part of them.
- RIS converterUse this when a reference file is in the wrong format for the software you need it in, or you want your references in a spreadsheet.
Sources
- PubMed User Guide. National Center for Biotechnology Information, US National Library of Medicine. https://pubmed.ncbi.nlm.nih.gov/help/
- Europe PMC RESTful Web Service: the search fields it accepts, as its fields method lists them. EMBL-EBI. https://www.ebi.ac.uk/europepmc/webservices/rest/fields
- Crossref REST API documentation, version 4.11.3: queries, field queries and filters on the works route. Crossref. https://api.crossref.org/swagger-ui/index.html
- REST API filters. Crossref documentation, crossref.org. https://www.crossref.org/documentation/retrieve-metadata/rest-api/rest-api-filters/
- Page MJ, McKenzie JE, Bossuyt PM, et al. The PRISMA 2020 statement: an updated guideline for reporting systematic reviews. BMJ 2021;372:n71. https://doi.org/10.1136/bmj.n71
- Rethlefsen ML, Kirtley S, Waffenschmidt S, et al. PRISMA-S: an extension to the PRISMA Statement for Reporting Literature Searches in Systematic Reviews. Systematic Reviews 2021;10:39. https://doi.org/10.1186/s13643-020-01542-z