{"id":19037104,"date":"2026-10-05T19:06:17","date_gmt":"2026-10-05T19:06:17","guid":{"rendered":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wordpress.org\/support\/topic\/search-function-issue-3\/"},"modified":"2026-10-05T19:06:17","modified_gmt":"2026-10-05T19:06:17","slug":"search-function-issue-3","status":"publish","type":"topic","link":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wordpress.org\/support\/topic\/search-function-issue-3\/","title":{"rendered":"Search function issue"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">It is my understanding that the basic search function in WP is based on the AND operator, so if I type in two words, it searches post text for posts containing both words. However, mine doesn&#8217;t &#8211; it very definitely does an OR search for either word. When I set the site up, I assumed this was how it worked, and installed Relevanssi. Having just migrated the site and being told by the IT person doing it that the Relevanssi database had 3 million lines, I felt I needed to revisit the issue, and found that the inbuilt function is supposed to work as an AND search.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I apologise if this is already answered somewhere, but my search didn&#8217;t find anything related. Any thoughts?<\/p>\n","protected":false},"template":"","class_list":["post-19037104","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19037104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19037104\/revisions"}],"wp:attachment":[{"href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19037104"}],"curies":[{"name":"wp","href":"https:\/\/round-lake.dustinice.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}