Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-946: replace text from an online collection (used in few test cases) with text that is surely 100% free.

Doron Cohenba90fb06c154
diff --git a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleDocMaker.java b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleDocMaker.java
index c15d1520d47..8fe74e7e2d6 100644
--- a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleDocMaker.java
+++ b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleDocMaker.java
@@ -24,17 +24,21 @@ public class SimpleDocMaker extends BasicDocMaker {
private int docID = 0;
- static final String DOC_TEXT = // from a public first aid info at http://firstaid.ie.eu.org
- "Well it may be a little dramatic but sometimes it true. " +
- "If you call the emergency medical services to an incident, " +
- "your actions have started the chain of survival. " +
- "You have acted to help someone you may not even know. " +
- "First aid is helping, first aid is making that call, " +
- "putting a Band-Aid on a small wound, controlling bleeding in large " +
- "wounds or providing CPR for a collapsed person whose not breathing " +
- "and heart has stopped beating. You can help yourself, your loved " +
- "ones and the stranger whose life may depend on you being in the " +
- "right place at the right time with the right knowledge.";
+ static final String DOC_TEXT =
+ "Well, this is just some plain text we use for creating the " +
+ "test documents. It used to be a text from an online collection " +
+ "devoted to first aid, but if there was there an (online) lawyers " +
+ "first aid collection with legal advices, \"it\" might have quite " +
+ "probably advised one not to include \"it\"'s text or the text of " +
+ "any other online collection in one's code, unless one has money " +
+ "that one don't need and one is happy to donate for lawyers " +
+ "charity. Anyhow at some point, rechecking the usage of this text, " +
+ "it became uncertain that this text is free to use, because " +
+ "the web site in the disclaimer of he eBook containing that text " +
+ "was not responding anymore, and at the same time, in projGut, " +
+ "searching for first aid no longer found that eBook as well. " +
+ "So here we are, with a perhaps much less interesting " +
+ "text for the test, but oh much much safer. ";
// return a new docid
private synchronized int newdocid() throws NoMoreDataException {
diff --git a/src/test/org/apache/lucene/search/function/FunctionTestSetup.java b/src/test/org/apache/lucene/search/function/FunctionTestSetup.java
index 52247b81561..7c198464edd 100755
--- a/src/test/org/apache/lucene/search/function/FunctionTestSetup.java
+++ b/src/test/org/apache/lucene/search/function/FunctionTestSetup.java
@@ -49,17 +49,20 @@ public abstract class FunctionTestSetup extends TestCase {
protected static final String FLOAT_FIELD = "fff";
private static final String DOC_TEXT_LINES[] = {
- // from a public first aid info at http://firstaid.ie.eu.org
- "Well it may be a little dramatic but sometimes it true. ",
- "If you call the emergency medical services to an incident, ",
- "your actions have started the chain of survival. ",
- "You have acted to help someone you may not even know. ",
- "First aid is helping, first aid is making that call, ",
- "putting a Band-Aid on a small wound, controlling bleeding in large ",
- "wounds or providing CPR for a collapsed person whose not breathing ",
- "and heart has stopped beating. You can help yourself, your loved ",
- "ones and the stranger whose life may depend on you being in the ",
- "right place at the right time with the right knowledge.",
+ "Well, this is just some plain text we use for creating the ",
+ "test documents. It used to be a text from an online collection ",
+ "devoted to first aid, but if there was there an (online) lawyers ",
+ "first aid collection with legal advices, \"it\" might have quite ",
+ "probably advised one not to include \"it\"'s text or the text of ",
+ "any other online collection in one's code, unless one has money ",
+ "that one don't need and one is happy to donate for lawyers ",
+ "charity. Anyhow at some point, rechecking the usage of this text, ",
+ "it became uncertain that this text is free to use, because ",
+ "the web site in the disclaimer of he eBook containing that text ",
+ "was not responding anymore, and at the same time, in projGut, ",
+ "searching for first aid no longer found that eBook as well. ",
+ "So here we are, with a perhaps much less interesting ",
+ "text for the test, but oh much much safer. ",
};
protected Directory dir;