Commit Graph

209 Commits

Author SHA1 Message Date
Steven Rowe c91f22b0b0 SOLR-4658:
- Fix class name shortening issues, for SimilarityFactory's, FieldType's, and analysis factories: persisted class names' original forms are preserved in both shortened form (e.g. 'solr.TextField') and fully qualified form (e.g. 'org.apache.solr.schema.TextField')
- luceneMatchVersion on analysis factories is now persisted only when explicitly specified in the original; previously the default value was persisted when it was absent in the original
- Add MockTokenFilterFactory

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1466720 13f79535-47bb-0310-9956-ffa450edef68
2013-04-10 22:36:19 +00:00
Erick Erickson ae84b6a178 =SOLR-4663, SOLR-4347, SOLR-1905. Warn for bad core configs, persist transient cores correctly, do not persist implicit properties
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1466291 13f79535-47bb-0310-9956-ffa450edef68
2013-04-09 23:46:24 +00:00
Steven Rowe 6de43dea0a LUCENE-4877: more param parsing verbs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1463335 13f79535-47bb-0310-9956-ffa450edef68
2013-04-01 23:45:33 +00:00
Robert Muir 29b5142e79 LUCENE-4877: throw exception for invalid arguments in analysis factories
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1463191 13f79535-47bb-0310-9956-ffa450edef68
2013-04-01 16:30:00 +00:00
Steven Rowe b1e4ba6843 SOLR-4658: In preparation for REST API requests that can modify the schema, a "managed schema" is introduced.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1463182 13f79535-47bb-0310-9956-ffa450edef68
2013-04-01 16:16:03 +00:00
Steven Rowe 61875d4c8f LUCENE-4879: Finish solr upgrade: upgrade randomizedtesting-runner and junit4-ant dependencies in solr/test-framework/ivy.xml; and add junit4-ant 2.0.9 SHA1 to solr/licenses/
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1461280 13f79535-47bb-0310-9956-ffa450edef68
2013-03-26 19:40:56 +00:00
Steven Rowe 5c7ca6aa48 SOLR-4623: Provide REST API read access to all elements of the live schema. Add a REST API request to return the entire live schema, in JSON, XML, and schema.xml formats. Move REST API methods from package org.apache.solr.rest to org.apache.solr.rest.schema, and rename base functionality REST API classes to remove the current schema focus, to prepare for other non-schema REST APIs. Change output path for copyFields and dynamicFields from "copyfields" and "dynamicfields" (all lowercase) to "copyFields" and "dynamicFields", respectively, to align with all other schema REST API outputs, which use camelCase.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1460519 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 04:29:33 +00:00
Robert Muir 1e656d42c5 SOLR-4606: set the random seed used to shuffle shards within tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457821 13f79535-47bb-0310-9956-ffa450edef68
2013-03-18 15:40:41 +00:00
Robert Muir edc777e22e SOLR-4607: use noggit 0.5 release jar
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457811 13f79535-47bb-0310-9956-ffa450edef68
2013-03-18 15:28:35 +00:00
Mark Robert Miller d5bcb41586 SOLR-4605: Rollback does not work correctly.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457784 13f79535-47bb-0310-9956-ffa450edef68
2013-03-18 14:52:49 +00:00
Steven Rowe 67083534ff LUCENE-4642:
* TokenizerFactory.create(Reader) is made final, and calls the AttributeFactory-accepting version with AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY
* TokenizerFactory.create(AttributeFactory, Reader) is made abstract
* Added AttributeFactory-accepting constructors to all Tokenizer's with existing TokenizerFactory subclasses that didn't already have them
* Removed create(Reader) from all TokenizerFactory subclasses

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456768 13f79535-47bb-0310-9956-ffa450edef68
2013-03-15 04:41:50 +00:00
Steven Rowe 092545884e LUCENE-4642: Add create(AttributeFactory) to TokenizerFactory and subclasses with ctors taking AttributeFactory, and remove Tokenizer's and subclasses' ctors taking AttributeSource.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455670 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 19:04:06 +00:00
Erick Erickson 325ab7dfe1 Fix for assumption in the test harness uncovered by SOLR-4317
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455368 13f79535-47bb-0310-9956-ffa450edef68
2013-03-12 00:12:48 +00:00
Erick Erickson f5b524f434 fix for SOLR-4317, don't requre 'collection1' in test harness. Thanks Tricia.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1455196 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 15:46:52 +00:00
Mark Robert Miller 5ea281a9d6 SOLR-4555: When forceNew is used with CachingDirectoryFactory#get, the old CachValue should have it's path set to null.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1454993 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 04:20:14 +00:00
Mark Robert Miller 2fa013d7df SOLR-4475: Fix various places that still assume File based paths even when not using a file based DirectoryFactory.
SOLR-4551: CachingDirectoryFactory needs to create CacheEntry's with the fullpath not path.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1454913 13f79535-47bb-0310-9956-ffa450edef68
2013-03-10 20:14:31 +00:00
Mark Robert Miller 09f4fa2191 SOLR-4497: Collection Aliasing.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1453687 13f79535-47bb-0310-9956-ffa450edef68
2013-03-07 05:52:23 +00:00
Steven Rowe 4618a5a0fe SOLR-4503: Add REST API methods to get schema information: fields, dynamicFields, fieldTypes, and copyFields. Restlet 2.1.1 is integrated and is used to service these requests.
Also fixes bugs in dynamic copyField logic described in SOLR-3798.
Also fixes a bug with proxied SolrCloud requests (SOLR-4210) when using the GET method.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1453161 13f79535-47bb-0310-9956-ffa450edef68
2013-03-06 04:50:33 +00:00
Mark Robert Miller 61eca4446b tests: speed test up a bit
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1452113 13f79535-47bb-0310-9956-ffa450edef68
2013-03-03 19:42:31 +00:00
Erick Erickson aa22ceb97d SOLR-4196, steps toward making solr.xml obsolete
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1451797 13f79535-47bb-0310-9956-ffa450edef68
2013-03-02 01:01:12 +00:00
Mark Robert Miller 99b77c04aa SOLR-4513: We can speed up the Collections API test quite a bit by not loading any cores on startup.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1451214 13f79535-47bb-0310-9956-ffa450edef68
2013-02-28 14:30:30 +00:00
Mark Robert Miller f3be2a55fa tests: tweak syncslicetest
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1450600 13f79535-47bb-0310-9956-ffa450edef68
2013-02-27 04:40:20 +00:00
Mark Robert Miller d0d2ff9209 SOLR-4078: Allow custom naming of SolrCloud nodes so that a new host:port combination can take over for a previous shard.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1450012 13f79535-47bb-0310-9956-ffa450edef68
2013-02-26 04:09:52 +00:00
Steven Rowe 83fa975ae9 LUCENE-4789: fix typos
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1448400 13f79535-47bb-0310-9956-ffa450edef68
2013-02-20 20:53:46 +00:00
Chris M. Hostetter 881c0b21eb SOLR-4394: phase 2, promoted SSL randomization logic up to SolrJettyTestBase
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1447885 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 19:52:16 +00:00
Mark Robert Miller aee1929695 tests: fix compare bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1447071 13f79535-47bb-0310-9956-ffa450edef68
2013-02-17 20:34:01 +00:00
Mark Robert Miller 902e34af55 tests: improve some cloud tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1446935 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 20:21:33 +00:00
Mark Robert Miller 384d42b5e3 SOLR-4421,SOLR-4165: On CoreContainer shutdown, all SolrCores should publish their state as DOWN.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1446914 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 16:59:53 +00:00
Chris M. Hostetter 9e767a667d SOLR-4394: Tests and example configs demonstrating SSL with both server and client certs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1445971 13f79535-47bb-0310-9956-ffa450edef68
2013-02-13 23:04:38 +00:00
Mark Robert Miller dd9ffb9bc5 SOLR-3911: Replicate after startup option would not replicate until the IndexWriter was lazily opened.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1440508 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 16:29:05 +00:00
Mark Robert Miller 7f2353defd SOLR-3911: pass a context flag so that impls can use different strategies for index directories vs meta data file directories
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1432670 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 17:38:26 +00:00
Shalin Shekhar Mangar f41e563d7d SOLR-4112: Fixed DataImportHandler ZKAwarePropertiesWriter implementation so
import works fine with SolrCloud clusters

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1432045 13f79535-47bb-0310-9956-ffa450edef68
2013-01-11 13:38:23 +00:00
Yonik Seeley b85bf15d38 tests: improve stack traces
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1428138 13f79535-47bb-0310-9956-ffa450edef68
2013-01-03 02:04:46 +00:00
Dawid Weiss a25096e273 LUCENE-4650: Upgrade randomized testing to version 2.0.8: make the test framework more robust under low memory conditions.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1427696 13f79535-47bb-0310-9956-ffa450edef68
2013-01-02 08:16:22 +00:00
Mark Robert Miller 6b6d1f65c2 tests: only add a delete if the doc add did not fail
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1427618 13f79535-47bb-0310-9956-ffa450edef68
2013-01-02 01:26:04 +00:00
Mark Robert Miller fc4ed67dc2 tests: fix - only do this check if there are actually different docs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1427616 13f79535-47bb-0310-9956-ffa450edef68
2013-01-02 01:19:08 +00:00
Mark Robert Miller a5d5c905e0 tests: only do this check if there are actually different docs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1427606 13f79535-47bb-0310-9956-ffa450edef68
2013-01-02 00:47:23 +00:00
Uwe Schindler ba52cd4e03 Revert SOLR-1972
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1426230 13f79535-47bb-0310-9956-ffa450edef68
2012-12-27 15:48:37 +00:00
Mark Robert Miller 15bf918824 tests: parameterize
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1425818 13f79535-47bb-0310-9956-ffa450edef68
2012-12-26 04:44:50 +00:00
Mark Robert Miller 4bd6402d16 raise so timeout
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1424868 13f79535-47bb-0310-9956-ffa450edef68
2012-12-21 11:23:29 +00:00
Chris M. Hostetter a5608fb81e fix the 'double-slash' URL that has been taunting my nightmares ... doesn't appear to have any bearing on test correctness, but has definitely been confusing
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1424796 13f79535-47bb-0310-9956-ffa450edef68
2012-12-21 03:38:13 +00:00
Yonik Seeley fb0a737ff6 tests: allow calling useFactory more than once
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1424793 13f79535-47bb-0310-9956-ffa450edef68
2012-12-21 03:12:37 +00:00
Mark Robert Miller 719c4dd5e9 raise test so timeout for clients
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1424611 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 17:57:22 +00:00
Mark Robert Miller cb188b0679 don't alter recovery wait based on nightly or random multiplier
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1424510 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 15:09:05 +00:00
Yonik Seeley 0fbb260f1e tests: fix showDiff to only return differing ids
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423756 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 03:53:25 +00:00
Yonik Seeley ad7c665177 tests: start single jetty in cloud mode w/ manual shard assignment
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423753 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 03:44:29 +00:00
Yonik Seeley 2b800b3c0e tests: don't start up default collection if numSlices<=0
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423729 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 01:00:58 +00:00
Yonik Seeley 5f502ec003 SOLR-3180: improve logging
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423591 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 19:30:39 +00:00
Yonik Seeley 9a37c111db tests: _version_ isn't comparable with control
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423182 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 22:03:27 +00:00
Yonik Seeley 3ad389d8f7 tests: show details of count mismatch
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423179 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 21:59:25 +00:00