jenkins-bot has submitted this change and it was merged.
Change subject: Switch queries to ANDing terms together.
......................................................................
Switch queries to ANDing terms together.
This is more standard for search engines but can lead to times where the
user gets too few results because they were too specific. It is also
the default behavior of lsearchd.
Bug: 52904
Change-Id: Ia6603302afd00317366301663f4e5d24d1f4de4f
---
M CirrusSearchSearcher.php
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Chad: Looks good to me, approved
jenkins-bot: Verified
diff --git a/CirrusSearchSearcher.php b/CirrusSearchSearcher.php
index 0aefbe2..6bdc080 100644
--- a/CirrusSearchSearcher.php
+++ b/CirrusSearchSearcher.php
@@ -191,6 +191,7 @@
$queryStringQuery->setFields( $fields );
$queryStringQuery->setAutoGeneratePhraseQueries( true );
$queryStringQuery->setPhraseSlop( 3 );
+ $queryStringQuery->setDefaultOperator( 'AND' );
// TODO phrase match boosts?
$query->setQuery( self::boostQuery( $queryStringQuery )
);
$query->setParam( 'suggest', array(
--
To view, visit https://gerrit.wikimedia.org/r/82825
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia6603302afd00317366301663f4e5d24d1f4de4f
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits