Manybubbles has uploaded a new change for review.
https://gerrit.wikimedia.org/r/82825
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.
Change-Id: Ia6603302afd00317366301663f4e5d24d1f4de4f
---
M CirrusSearchSearcher.php
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch
refs/changes/25/82825/1
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: newchange
Gerrit-Change-Id: Ia6603302afd00317366301663f4e5d24d1f4de4f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits