Commit Graph

894 Commits

Author SHA1 Message Date
Ryan McKinley 2adc9df23a SOLR-283: autoCommit after delete
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552698 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 07:31:32 +00:00
Ryan McKinley 0985f37184 SOLR-225 - style changes and HighlightUtils.emptyArray() change
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552689 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 06:29:50 +00:00
Ryan McKinley a517e0f5a9 SOLR-102 - regex fragmenter using SOLR-225 plugin framework
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552683 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 06:15:17 +00:00
Ryan McKinley 1e037fcf50 SOLR-225 -- adding pluggable highlighting formatters and fragmenters
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552682 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 06:14:07 +00:00
Ryan McKinley 95b41b373f SOLR-260 -- adding a standard PluginLoader framework. NOTE, this commit includes parts of files from (the soon to be commited) highlight plugins SOLR-225
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552680 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 06:10:10 +00:00
Ryan McKinley 69bd5b7f17 SOLR-280 -- changing SolrInputField to take float rather then Float. this will avoid autoboxing, if you don't want to define the boost, use one of the wrapper functions that default to 1.0
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552521 13f79535-47bb-0310-9956-ffa450edef68
2007-07-02 15:57:03 +00:00
Ryan McKinley 1f799adf41 SOLR-280 -- adding wrapper functions for API compatibility. thanks Will
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552514 13f79535-47bb-0310-9956-ffa450edef68
2007-07-02 15:43:50 +00:00
Ryan McKinley 1760d4242d SOLR-280 -- changing the SolrDocument/SolrInputDocument implementation so each one as as efficient as it can be. The API changes mostly affect solrj users.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552405 13f79535-47bb-0310-9956-ffa450edef68
2007-07-02 05:19:22 +00:00
Ryan McKinley 33c839ab4d SOLR-269 -- missing changes for somethign commited a while ago
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552387 13f79535-47bb-0310-9956-ffa450edef68
2007-07-02 02:57:24 +00:00
Ryan McKinley 3a3829a3c9 changes note for multiple deletes with <delete> command
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552386 13f79535-47bb-0310-9956-ffa450edef68
2007-07-02 02:47:54 +00:00
Ryan McKinley 5d7981c26c SOLR-133 -- found a bug in the delete XML parsing. for id's and queries with &, it did not behave correctly. Adds a fix and test. Another sideeffect that should be noted is that this parser now accepts multiple delete commands:
<delete>
 <id>1</id>
 <id>3</id>
 <id>4</id>
</delete`>


git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552385 13f79535-47bb-0310-9956-ffa450edef68
2007-07-02 02:44:45 +00:00
Ryan McKinley 0994528c21 adding a clear() function to the solrj UpdateRequest
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552212 13f79535-47bb-0310-9956-ffa450edef68
2007-06-30 20:46:51 +00:00
Ryan McKinley fb559461fa SOLR-133 -- moving stax implementation to XmlUpdateRequestHandler. Remove the stax derived tests.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552198 13f79535-47bb-0310-9956-ffa450edef68
2007-06-30 18:52:16 +00:00
Ryan McKinley 631a4a63f1 SOLR-133 - moving XPP implementation to a Deprecated class. Next commit will move the Stax version to its place.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552196 13f79535-47bb-0310-9956-ffa450edef68
2007-06-30 18:40:26 +00:00
Ryan McKinley 579b316839 SOLR-269: Using a factory pattern to generate UpdateRequestProcessor.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552195 13f79535-47bb-0310-9956-ffa450edef68
2007-06-30 18:34:47 +00:00
Yonik Seeley 1e65246689 remove test properties from ant: SOLR-279
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@552023 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 20:27:59 +00:00
Ryan McKinley 7230a8eb3f SOLR-278 - modify LukeRequest/Response to handle show=schema
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@551971 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 17:32:55 +00:00
Yonik Seeley 63e36e5f9c remove ant dependency for setting test system properties
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@551701 13f79535-47bb-0310-9956-ffa450edef68
2007-06-28 21:18:12 +00:00
Yonik Seeley 79b3ef65c3 SOLR-276: improve JSON writer speed
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@551170 13f79535-47bb-0310-9956-ffa450edef68
2007-06-27 14:17:29 +00:00
Yonik Seeley 951dab2048 check for null copyField source, delay some allocations
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@551060 13f79535-47bb-0310-9956-ffa450edef68
2007-06-27 05:52:02 +00:00
Chris M. Hostetter 89bf821efe more SOLR-264 work: add example to schema.xml; fix equals bug in SolrComparatorSource that Koji found; make ValueSource use IndexReader version in it's computation; refactor getSeed to use both the fieldname and the reader version
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@550668 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 03:16:05 +00:00
Chris M. Hostetter 4006ae52db point query syntax help to Solr wiki instead of lucene-java site so the few extensions can be noticed
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@550607 13f79535-47bb-0310-9956-ffa450edef68
2007-06-25 21:00:16 +00:00
Mike Klaas f288752728 noted bugfix SOLR-274
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@550577 13f79535-47bb-0310-9956-ffa450edef68
2007-06-25 19:14:04 +00:00
Mike Klaas e740dce042 bugfix for SOLR-274
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@550576 13f79535-47bb-0310-9956-ffa450edef68
2007-06-25 19:10:14 +00:00
Ryan McKinley 4e0e8f6707 javadoc spelling cleanup
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@550264 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 17:35:08 +00:00
Erik Hatcher b72286589d Get back jetty.port setting capability
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@550227 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 13:47:42 +00:00
Chris M. Hostetter 9eb7ff4bc5 SOLR-268 - Tweaks to post.jar so it prints the error message from Solr.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@550010 13f79535-47bb-0310-9956-ffa450edef68
2007-06-23 05:33:06 +00:00
Yonik Seeley 7b4db83305 fix OpenBitSet.flip bug when indicies outside current size
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@549948 13f79535-47bb-0310-9956-ffa450edef68
2007-06-22 20:27:28 +00:00
Yonik Seeley aa705c5f14 implement OpenBitSet.set(from,to) and clear(from,to)
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@549909 13f79535-47bb-0310-9956-ffa450edef68
2007-06-22 18:00:00 +00:00
Ryan McKinley 02cadd8bb0 SOLR-266: Adding show=schema to LukeRequestHandler
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@549570 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 17:53:24 +00:00
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