Commit Graph

864 Commits

Author SHA1 Message Date
Otis Gospodnetic bd5f3ae723 - Added "&&" between the 3 calls that copy, remove, and move index data to add a bit of extra robustness
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@549454 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 12:10:30 +00:00
Yonik Seeley a21373772a make TextField respect sortMissingFirst,sortMissingLast
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@549362 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 04:39:41 +00:00
Yonik Seeley 75c74dd595 fix logging of chars < 32
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@549356 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 04:08:06 +00:00
Yonik Seeley 054a5b4406 share the love...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@549176 13f79535-47bb-0310-9956-ffa450edef68
2007-06-20 18:15:03 +00:00
Ryan McKinley 69095c5de0 Testing StaxUpdateRequestHandler with tests written for XmlUpdateRequestHandler
* Added three test subclasses to test updating with StaxUpdateRequestHandler rather then XmlUpdateRequestHandler
* Made the XmlUpdateRequestHandler in TestHarness public so it could be changed after initialization
* Fixed new DocumentBuilder toDocument() impl so it passes tests (copy fields were not handled properly)

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548958 13f79535-47bb-0310-9956-ffa450edef68
2007-06-20 06:46:23 +00:00
Ryan McKinley be08e28414 SOLR-264 - updating the RandomSortField so it follows the Comparator contract. This uses the: field name hash, docID, and reader version as a random generator seed.
This may not be the final version, but it is better then the existing one...

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548887 13f79535-47bb-0310-9956-ffa450edef68
2007-06-20 01:38:18 +00:00
Ryan McKinley c06888092b SOLR-264: equivalent logic without branch
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548599 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 06:03:10 +00:00
Ryan McKinley 59ed1b5bf1 SOLR-264: Added RandomSortField a random order SortComparatorSource. Thanks yonik for the performance hints
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548594 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 05:27:47 +00:00
Ryan McKinley 1981c7ab29 adding utility function clear() to ModifiableSolrParams
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548247 13f79535-47bb-0310-9956-ffa450edef68
2007-06-18 07:39:49 +00:00
Ryan McKinley 92cb5f09ba setting setRemoveDuplicateFieldValues( null, true ) uses a Set by default.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548242 13f79535-47bb-0310-9956-ffa450edef68
2007-06-18 07:34:28 +00:00
Ryan McKinley f475f5d76c only send one boost value for multi-valued fields
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548237 13f79535-47bb-0310-9956-ffa450edef68
2007-06-18 07:09:26 +00:00
Ryan McKinley 045248e2c1 * Changed setKeepDuplicateFieldValues to setRemoveDuplicateFieldValues
* made sure the tests deal with duplicate values on one field, but not the other

http://www.nabble.com/Re%3A-svn-commit%3A-r547493---in--lucene-solr-trunk%3A-.--src-java-org-apache-solr-common--src-java-org-apache-solr-schema--src-java-org-apache-solr-update--src-test-org-apache-solr-common--p11159518.html

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548094 13f79535-47bb-0310-9956-ffa450edef68
2007-06-17 18:37:28 +00:00
Ryan McKinley 91c3b6d535 1. DocumentBuilder only sets the boost for the first value in a multi-valued field
2. XML parser sets the document boost as the product of each boost value.
3. Added XmlUpdateRequestHandlerTest (somehow lost in the final patch of SOLR-133)

http://www.nabble.com/Re%3A-svn-commit%3A-r547493---in--lucene-solr-trunk%3A-.--src-java-org-apache-solr-common--src-java-org-apache-solr-schema--src-java-org-apache-solr-update--src-test-org-apache-solr-common--p11159518.html

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548084 13f79535-47bb-0310-9956-ffa450edef68
2007-06-17 18:14:08 +00:00
Ryan McKinley 6ed8e171ad Since many fields are single valued, start the ArrayList with capacity 1 -- this should help with GC.
http://www.nabble.com/Re%3A-svn-commit%3A-r547493---in--lucene-solr-trunk%3A-.--src-java-org-apache-solr-common--src-java-org-apache-solr-schema--src-java-org-apache-solr-update--src-test-org-apache-solr-common--tf3931539.html#a11159518

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548080 13f79535-47bb-0310-9956-ffa450edef68
2007-06-17 17:50:55 +00:00
Ryan McKinley e21f3cfd6e Changing: DocumentBuilder.toDocument(SolrDocument) function so it does not unnecessarily make an extra Map and List and does not call functions for stuff it can easily do internally.
This is not intended as a final implementation; it is better then the existing one, but still needs work.

http://www.nabble.com/Re%3A-svn-commit%3A-r547493---in--lucene-solr-trunk%3A-.--src-java-org-apache-solr-common--src-java-org-apache-solr-schema--src-java-org-apache-solr-update--src-test-org-apache-solr-common--tf3931539.html



git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547973 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 20:01:03 +00:00
Yonik Seeley 5f81cf33cb remove extra calls to currentTimeMillis()
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547931 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 15:28:57 +00:00
Ryan McKinley 55fb7f9c96 SOLR-176 -- add average time/request to RequestHandlerBase statistics.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547818 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 22:26:02 +00:00
Ryan McKinley f0f8c0fb56 upgrading commons-io to latest stable build. The changes do not affect solr (or solrj), but some of the new features are useful for clients.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547764 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 18:44:38 +00:00
Ryan McKinley 2929bca894 use port 8984 for jetty testing (not 8982) to reduce the chance of getting an "Address already in use: JVM_Bin.." exception.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547530 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 05:16:29 +00:00
Ryan McKinley 40fccaea18 SOLR-135: (and SOLR-225) moving highlight test to highlight directory. SOLR-225 will apply without an empty test class.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547523 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 04:36:29 +00:00
Ryan McKinley 2054a10ad9 SOLR-133: changes...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547501 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 02:41:11 +00:00
Ryan McKinley 0973e23e52 SOLR-133: Adding StaxUpdateRequestHandler.java and mapping it to:
http://localhost:8983/solr/admin/update/stax
in the example solrconfig.xml

We should test and evaluate this in comparison to the XmlUpdateRequestHandler before replacing it. 

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547495 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 02:33:39 +00:00
Ryan McKinley 04e7c94b99 SOLR-262 -- Added toObject( Fieldable ) to FieldType. This lets the DocumentBuilder convert lucene Document to a SolrDocument. This patch also lets the DocumentBuilder convert a SolrInputDocument to a lucene Document.
The semantics of document conversion is not totally agreed upon yet.  This is commited so we have something to work with for other patches.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547493 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 02:27:48 +00:00
Ryan McKinley ecdbcc62d5 SOLR-135 -- missed one...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547487 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 02:16:07 +00:00
Chris M. Hostetter e3dd761fb3 SOLR-135 ... sigh ... previous version compiled common code in isolation, but but had to always recompile even if there were no changes.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547460 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 00:12:51 +00:00
Ryan McKinley a172ba4d77 SOLR-20: solrj needs to compile with java 1.5. It needs stax in the classpath
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547458 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 00:08:56 +00:00
Chris M. Hostetter 18d21bd455 SOLR-135: previous build.xml didn't partition core/common code properly which ment we didn't notice CommonParams and DisMaxParams were using SolrCore for logging.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547455 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 23:54:23 +00:00
Ryan McKinley da41728b8e SOLR-20 changes
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547438 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 23:05:19 +00:00
Ryan McKinley 9a9d11385c SOLR-20: Adding a java client. The client includes two implementaions: CommonsHttpSolrServer.java and EmbeddedSolrServer.java
There are major changes to build.xml -- these should be closely reviewed.

This includes a test that will start jetty and run tests against the example solr install.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547436 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 22:53:25 +00:00
Ryan McKinley 3503a882d9 SOLR-20: make private URL parsing function public so it is accessible to an embedded solrj client.
(this commit also includes StrUtils refactoring ommited of previous commit)

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547324 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 17:26:38 +00:00
Ryan McKinley 8f8b006c1c SOLR-20: Adding a document list class in 'common'
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547314 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 17:07:06 +00:00
Ryan McKinley 5e8f1347d9 SOLR-20: moving private static final Highlight params to a common class
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547309 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 16:55:15 +00:00
Ryan McKinley 1143296770 SOLR-135: adding empty class for StrUtils.java
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547303 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 16:42:25 +00:00
Ryan McKinley 8cc3fa4d04 SOLR-135: Moving StrUtils.java to common.util. Adding empty class for 'UpdateParams'
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547301 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 16:39:59 +00:00
Ryan McKinley 359f7a31c3 SOLR-244 - adding SOLR-244, adding ModifiableSolrParams required for SOLR-20 (nice for testing)
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547300 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 16:36:34 +00:00
Ryan McKinley 9c8dcba5d9 SOLR-244, adding ModifiableSolrParams required for SOLR-20 (nice for testing)
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547297 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 16:33:22 +00:00
Ryan McKinley 1169aab68e spelling error
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547288 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 15:57:06 +00:00
Ryan McKinley 49063076f3 SOLR-135 accidental directory...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547115 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 04:39:48 +00:00
Ryan McKinley 2f9104abed SOLR-135 changes...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547114 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 04:36:07 +00:00
Ryan McKinley e03f25801f SOLR-135: import/warning cleanup for classes in org.apache.solr.common
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547109 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 04:10:17 +00:00
Ryan McKinley 54bdcdc4cc SOLR-135: Adding @depricated extended classes for files moved to org.apache.solr.common
This should restore API compatibility.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547107 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 04:05:04 +00:00
Ryan McKinley b4d1694ef7 SOLR-135: refactoring common classes into a "common" package. This commit moves the files (and updates the imports).
THIS BREAKS API COMPATIBILITY!!!

the next commit will put stub classes in place where the missing classes are.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547101 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 03:26:18 +00:00
Ryan McKinley f461ea38a2 SOLR-193 -- adding clear() to the SolrDocuemnt API. This was used in the parallel SOLR-20 implementaion.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@547003 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 19:11:30 +00:00
Ryan McKinley 1884a2c84c oops 4 > 3
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@546980 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 17:58:33 +00:00
Ryan McKinley c6c0e141bf SOLR-193: Adding SolrDocument and SolrInputDocument to represent documents outside of the lucene Document infrastructure.
This commit includes two functions not in the last (reviewed) patch:
 public Map<String,Collection<Object>> getFieldValuesMap()
 public Map<String,Object> getFieldValueMap()
If there are concerns, we can remove these functions.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@546979 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 17:57:40 +00:00
Ryan McKinley 669e43d7af SOLR-259 -- add log.log(Level.SEVERE, ... when solr home isn't found. Thanks Will!
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@546223 13f79535-47bb-0310-9956-ffa450edef68
2007-06-11 18:58:45 +00:00
Yonik Seeley 80aa3bc884 restore catenateNumbers=1 in example schema
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@545604 13f79535-47bb-0310-9956-ffa450edef68
2007-06-08 19:53:39 +00:00
Mike Klaas 2ae74da893 Accidently turned off generateWordParts in example schema during testing
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@545599 13f79535-47bb-0310-9956-ffa450edef68
2007-06-08 19:10:04 +00:00
Mike Klaas 52d8e2421a SOLR-257: added explicit parameter to schema.xml
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@545598 13f79535-47bb-0310-9956-ffa450edef68
2007-06-08 19:05:46 +00:00
Mike Klaas 39e0ff32f2 SOLR-257: add splitOnCaseChange parameter to WordDelimiterFilter
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@545597 13f79535-47bb-0310-9956-ffa450edef68
2007-06-08 19:02:27 +00:00