[MediaWiki-commits] [Gerrit] mediawiki...CirrusSearch[master]: Add contentmodel: query feature

2017-01-31 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/334715 )

Change subject: Add contentmodel: query feature
..


Add contentmodel: query feature

Bug: T156371
Change-Id: I54bb866b9d6f39042854c4a56574a4be423d368b
---
M autoload.php
A includes/Query/ContentModelFeature.php
M includes/Searcher.php
3 files changed, 42 insertions(+), 0 deletions(-)

Approvals:
  Cindy-the-browser-test-bot: Looks good to me, but someone else must approve
  EBernhardson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/autoload.php b/autoload.php
index 73ecdd4..cb56368 100644
--- a/autoload.php
+++ b/autoload.php
@@ -107,6 +107,7 @@
'CirrusSearch\\PhraseSuggesterProfiles' => __DIR__ . 
'/profiles/PhraseSuggesterProfiles.php',
'CirrusSearch\\Query\\BaseSimpleKeywordFeatureTest' => __DIR__ . 
'/tests/unit/Query/BaseSimpleKeywordFeatureTest.php',
'CirrusSearch\\Query\\BoostTemplatesFeature' => __DIR__ . 
'/includes/Query/BoostTemplatesFeature.php',
+   'CirrusSearch\\Query\\ContentModelFeature' => __DIR__ . 
'/includes/Query/ContentModelFeature.php',
'CirrusSearch\\Query\\FileNumericFeature' => __DIR__ . 
'/includes/Query/FileNumericFeature.php',
'CirrusSearch\\Query\\FileTypeFeature' => __DIR__ . 
'/includes/Query/FileTypeFeature.php',
'CirrusSearch\\Query\\FullTextQueryBuilder' => __DIR__ . 
'/includes/Query/FullTextQueryBuilder.php',
diff --git a/includes/Query/ContentModelFeature.php 
b/includes/Query/ContentModelFeature.php
new file mode 100644
index 000..3f3fb9f
--- /dev/null
+++ b/includes/Query/ContentModelFeature.php
@@ -0,0 +1,39 @@
+ $value 
] );
+
+   return [ $query, false ];
+   }
+}
diff --git a/includes/Searcher.php b/includes/Searcher.php
index 272fd83..2348a5c 100644
--- a/includes/Searcher.php
+++ b/includes/Searcher.php
@@ -335,6 +335,8 @@
new Query\FileTypeFeature(),
// File numeric characteristics - size, resolution, etc.
new Query\FileNumericFeature(),
+   // Content model feature
+   new Query\ContentModelFeature(),
];
 
$extraFeatures = [];

-- 
To view, visit https://gerrit.wikimedia.org/r/334715
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I54bb866b9d6f39042854c4a56574a4be423d368b
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Smalyshev 
Gerrit-Reviewer: Cindy-the-browser-test-bot 
Gerrit-Reviewer: DCausse 
Gerrit-Reviewer: Daniel Kinzler 
Gerrit-Reviewer: EBernhardson 
Gerrit-Reviewer: Gehel 
Gerrit-Reviewer: Smalyshev 
Gerrit-Reviewer: Tjones 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...CirrusSearch[master]: Add contentmodel: query feature

2017-01-27 Thread Smalyshev (Code Review)
Smalyshev has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/334715 )

Change subject: Add contentmodel: query feature
..

Add contentmodel: query feature

Bug: T156371
Change-Id: I54bb866b9d6f39042854c4a56574a4be423d368b
---
A includes/Query/ContentModelFeature.php
1 file changed, 39 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/15/334715/1

diff --git a/includes/Query/ContentModelFeature.php 
b/includes/Query/ContentModelFeature.php
new file mode 100644
index 000..3f3fb9f
--- /dev/null
+++ b/includes/Query/ContentModelFeature.php
@@ -0,0 +1,39 @@
+ $value 
] );
+
+   return [ $query, false ];
+   }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/334715
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I54bb866b9d6f39042854c4a56574a4be423d368b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Smalyshev 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits