Skip to content
Snippets Groups Projects
Commit 793788fc authored by David Rothstein's avatar David Rothstein
Browse files

Issue #2369675 by FMB, pstewart, jhodgdon: Document that SearchQuery does not...

Issue #2369675 by FMB, pstewart, jhodgdon: Document that SearchQuery does not support orderBy in queries outside of addScore
parent ac39ceaf
No related branches found
No related tags found
No related merge requests found
......@@ -409,10 +409,10 @@ public function executeFirstPass() {
* used. However, if at least one call to addScore() has taken place, the
* keyword relevance score is not automatically added.
*
* Also note that if you call orderBy() directly on the query, search scores
* will not automatically be used to order search results. Your orderBy()
* expression can reference 'calculated_score', which will be the total
* calculated score value.
* Note that you must use this method to add ordering to your searches, and
* not call orderBy() directly, when using the SearchQuery extender. This is
* because of the two-pass system the SearchQuery class uses to normalize
* scores.
*
* @param $score
* The score expression, which should evaluate to a number between 0 and 1.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment