[wp-trac] [WordPress Trac] #7394: Search: order results by relevance
WordPress Trac
noreply at wordpress.org
Wed Oct 17 15:52:56 UTC 2012
#7394: Search: order results by relevance
-------------------------+-----------------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: General | Version: 2.6
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+-----------------------------
Comment (by azaozz):
7394-4.patch combines 7394-3.patch with
[http://core.trac.wordpress.org/attachment/ticket/21688/21688-5.patch
21688/21688-5.patch] as they are dependent on each other. Closing #21688
as duplicate/extension of this ticket too.
The combined patch has some enhancements:
- Sorting by relevance is only used when there's no explicit ORDER BY set
for the query.
- Filter to specify whether the search ORDER BY should look into
post_title and/or post_content (can be used to disable sorting by
relevance).
- Looks at [http://php.net/manual/en/regexp.reference.unicode.php Unicode
character properties] `\p{L}` to filter out single letter terms but not
high UTF-8 chars.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7394#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list