Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#17139 closed enhancement (invalid)

Multiple keyword search: intersection instead of union

Reported by: scribu Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Query Keywords:
Focuses: Cc:

Description (last modified by scribu)

When you search for more than one word, the SQL LIKEs are ORed together.

They should be ANDed together so that the more words you add, the fewer, and more relevant, results you get.

Alternatively, all previous results could be returned, but ordered by relevance: more matching keywords = higher ranking. See #7394

Change History (2)

#1 @scribu
10 years ago

  • Description modified (diff)

#2 @scribu
10 years ago

  • Milestone Future Release deleted
  • Resolution set to invalid
  • Status changed from new to closed

Nevermind, the 'OR' is between post_title and post_content, not between clauses.

Note: See TracTickets for help on using tickets.