You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by is...@apache.org on 2017/03/12 00:18:20 UTC
[11/50] [abbrv] lucene-solr:jira/solr-6736: LUCENE-6819: Make
ExtractingRequestHandlerTest not rely on index-time boosts.
LUCENE-6819: Make ExtractingRequestHandlerTest not rely on index-time boosts.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/7453f78b
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/7453f78b
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/7453f78b
Branch: refs/heads/jira/solr-6736
Commit: 7453f78b3539c7f4f5fa6e5324b251467ca50644
Parents: efbabf8
Author: Adrien Grand <jp...@gmail.com>
Authored: Fri Mar 3 21:43:50 2017 +0100
Committer: Adrien Grand <jp...@gmail.com>
Committed: Fri Mar 3 21:43:50 2017 +0100
----------------------------------------------------------------------
.../solr/handler/extraction/ExtractingRequestHandlerTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/7453f78b/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
----------------------------------------------------------------------
diff --git a/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java b/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
index a53bcd9..dc84b51 100644
--- a/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
+++ b/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
@@ -113,7 +113,7 @@ public class ExtractingRequestHandlerTest extends SolrTestCaseJ4 {
assertQ(req("+id:simple2 +t_content:serif"), "//*[@numFound='0']"); // make sure <style> content is excluded
assertQ(req("+id:simple2 +t_content:blur"), "//*[@numFound='0']"); // make sure <script> content is excluded
- // load again in the exact same way, but boost one field
+ // make sure the fact there is an index-time boost does not fail the parsing
loadLocal("extraction/simple.html",
"literal.id","simple3",
"uprefix", "t_",
@@ -125,7 +125,7 @@ public class ExtractingRequestHandlerTest extends SolrTestCaseJ4 {
);
assertQ(req("t_href:http"), "//*[@numFound='2']");
- assertQ(req("t_href:http"), "//doc[1]/str[.='simple3']");
+ assertQ(req("t_href:http"), "//doc[2]/str[.='simple3']");
assertQ(req("+id:simple3 +t_content_type:[* TO *]"), "//*[@numFound='1']");//test lowercase and then uprefix
loadLocal("extraction/version_control.xml", "fmap.created", "extractedDate", "fmap.producer", "extractedProducer",