Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: (qmail 17142 invoked from network); 7 Aug 2009 14:27:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Aug 2009 14:27:39 -0000 Received: (qmail 56713 invoked by uid 500); 7 Aug 2009 14:27:47 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 56620 invoked by uid 500); 7 Aug 2009 14:27:46 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 56610 invoked by uid 99); 7 Aug 2009 14:27:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 14:27:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 14:27:44 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 07D562388873; Fri, 7 Aug 2009 14:27:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r802020 - in /lucene/solr/trunk/src/test: org/apache/solr/TestDistributedSearch.java test-files/solr/conf/schema.xml Date: Fri, 07 Aug 2009 14:27:23 -0000 To: solr-commits@lucene.apache.org From: yonik@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090807142724.07D562388873@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: yonik Date: Fri Aug 7 14:27:23 2009 New Revision: 802020 URL: http://svn.apache.org/viewvc?rev=802020&view=rev Log: TestDistributedSearch - add random values for all numeric field types, sort asc and desc on all numeric field types Modified: lucene/solr/trunk/src/test/org/apache/solr/TestDistributedSearch.java lucene/solr/trunk/src/test/test-files/solr/conf/schema.xml Modified: lucene/solr/trunk/src/test/org/apache/solr/TestDistributedSearch.java URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/TestDistributedSearch.java?rev=802020&r1=802019&r2=802020&view=diff ============================================================================== --- lucene/solr/trunk/src/test/org/apache/solr/TestDistributedSearch.java (original) +++ lucene/solr/trunk/src/test/org/apache/solr/TestDistributedSearch.java Fri Aug 7 14:27:23 2009 @@ -28,8 +28,10 @@ import org.apache.solr.common.util.NamedList; import org.apache.solr.common.params.ModifiableSolrParams; import org.apache.solr.util.AbstractSolrTestCase; +import org.apache.solr.schema.TrieDateField; import java.io.File; +import java.io.IOException; import java.util.*; import junit.framework.TestCase; @@ -43,7 +45,7 @@ * @since solr 1.3 */ public class TestDistributedSearch extends TestCase { - Random r = new Random(0); + static Random r = new Random(0); File testDir; SolrServer controlClient; @@ -58,12 +60,23 @@ String id="id"; String t1="a_t"; String i1="a_si"; - String tlong = "tlong"; + String nint = "n_i"; + String tint = "n_ti"; + String nfloat = "n_f"; + String tfloat = "n_tf"; + String ndouble = "n_d"; + String tdouble = "n_td"; + String nlong = "n_l"; + String tlong = "n_tl"; + String ndate = "n_dt"; + String tdate = "n_tdt"; + String oddField="oddField_s"; String missingField="missing_but_valid_field_t"; String invalidField="invalid_field_not_in_schema"; + @Override public void setUp() throws Exception { System.setProperty("solr.test.sys.prop1", "propone"); @@ -131,12 +144,28 @@ } } + void addFields(SolrInputDocument doc, Object... fields) { + for (int i=0; i - - + + @@ -465,6 +465,13 @@ + + + + + + +