Commit Graph

128 Commits

Author SHA1 Message Date
Erik Hatcher f027d99c6f fix test that fails on zones server by replacing reference to localhost with 127.0.0.1
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499804 13f79535-47bb-0310-9956-ffa450edef68
2007-01-25 14:31:40 +00:00
Erik Hatcher b85c0cbbd2 Remove Solr specific licenses, leaving it with only ASL for solrb
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499476 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 16:52:48 +00:00
Erik Hatcher 70d1a4f8ce tidy up documentation and add license, preparing for an 0.01 release
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499463 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 16:16:01 +00:00
Erik Hatcher bbf2ddef81 fix tests due to change in symbols to strings in hash
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499443 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 15:28:17 +00:00
Erik Hatcher 29935fe9a7 add TODO about all docs constant
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499440 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 15:25:41 +00:00
Erik Hatcher 7dc02690f9 Add test for field_facets method
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499439 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 15:23:55 +00:00
Erik Hatcher 1bebd85d26 Add helper method to retrieve and sort facets
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499438 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 15:23:11 +00:00
Erik Hatcher f294acbcd7 :"word.word" symbols make rdoc unhappy, unfortunately, so changed them to just strings
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499433 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 15:19:26 +00:00
Erik Hatcher 07a87711db add TODO listing task to Rakefile
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499431 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 15:09:51 +00:00
Erik Hatcher 39c8be6447 Add support for new facet.prefix feature
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499218 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 02:59:17 +00:00
Erik Hatcher 2f37fb1633 add some additional facet mappings to MARC importer example
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499216 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 02:57:50 +00:00
Erik Hatcher 4dffe932f5 Add some comments about auto-commit
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@498663 13f79535-47bb-0310-9956-ffa450edef68
2007-01-22 15:57:13 +00:00
Erik Hatcher 0e560eccfa Upgrade to Rails 1.2, only this JavaScript file changed in the application itself
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@498511 13f79535-47bb-0310-9956-ffa450edef68
2007-01-22 02:38:55 +00:00
Erik Hatcher da5722fa35 Omit functional tests from gem as the overhead of a Solr server and risk someone would run functional tests against an existing Solr instance and remove all documents is not worth it at this point
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@498454 13f79535-47bb-0310-9956-ffa450edef68
2007-01-21 21:04:39 +00:00
Erik Hatcher 80606b5f15 Bring test coverage back to 100 percent
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@498447 13f79535-47bb-0310-9956-ffa450edef68
2007-01-21 20:42:14 +00:00
Erik Hatcher d5bc3ec4ba add new indexinfo request capability
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@498440 13f79535-47bb-0310-9956-ffa450edef68
2007-01-21 20:00:18 +00:00
Erik Hatcher 189ffc877c Push @response down into Request::Standard, because not all Ruby responses have a response key
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@498439 13f79535-47bb-0310-9956-ffa450edef68
2007-01-21 19:58:54 +00:00
Erik Hatcher 18e95b18a7 Remove creating new Solr::Document in #add, as AddDocument.new already does this. This change allows a SolrDocument to be passed to #add/#update, instead of just a Hash
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@498436 13f79535-47bb-0310-9956-ffa450edef68
2007-01-21 19:54:53 +00:00
Erik Hatcher b9f5817c3c remove temporary test data directory before running functional tests, and convert to rm_rf instead of rm_f in other places, and also set the default task to unit test instead of unit+functional tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@498428 13f79535-47bb-0310-9956-ffa450edef68
2007-01-21 19:11:34 +00:00
Erik Hatcher 7b6a592110 Clean up test language. Sorry I didn't catch this earlier in Ed's patch.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@498392 13f79535-47bb-0310-9956-ffa450edef68
2007-01-21 16:08:31 +00:00
Erik Hatcher 96922ef419 crude search / faceted UI, requires faceted fields to be *_facet
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496984 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 10:39:56 +00:00
Erik Hatcher 3250a9b7b9 add ASL to several files
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496983 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 10:37:56 +00:00
Erik Hatcher 9373fa3f45 update to facet parameter changes to Solr via SOLR-106
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496954 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 07:57:48 +00:00
Erik Hatcher bd3e81a1a8 add TODO discussion comment to ruby.rb
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496953 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 07:55:00 +00:00
Erik Hatcher 59f0a1bc46 Update example to use _text field name and have explicit require/include code too, suitable for copy/pasting right into irb to work it, and cleaned up output
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496939 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 05:44:37 +00:00
Erik Hatcher db6cbaa709 adjust README to have autocommit specified so the rest of the example works as-is
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496872 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 22:03:44 +00:00
Erik Hatcher 8b963995a0 SOLR-111: add new response classes and enhance connection. one change i made was to make autocommit off by default and use a symbol for :on/:off
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496871 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 22:02:29 +00:00
Erik Hatcher b8ac946026 SOLR-111: add new response classes and enhance connection. one change i made was to make autocommit off by default and use a symbol for :on/:off
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496870 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 22:02:13 +00:00
Erik Hatcher ce8064d4bb temporary change, make parsed response publicly available until facets are robustly implemented. seems odd that facet response is not inside the *response* container though
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496865 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 21:29:59 +00:00
Erik Hatcher 4f85c3998b Exempt nil parameters from the Solr request
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496863 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 21:28:44 +00:00
Erik Hatcher 4c8747190b oops, broke a test, fixed when a field value does not respond to :each
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496821 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 19:01:13 +00:00
Erik Hatcher ebfafc6d63 Add more MARC mappings. Add a -debug switch to dump documents to stdout instead of sending to Solr
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496805 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 18:06:18 +00:00
Erik Hatcher c7d72e0e5a allow facets and text fields to be multi-valued
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496803 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 18:05:11 +00:00
Erik Hatcher 718618922c upgrade to newer trunk build of solr
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496801 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 18:04:50 +00:00
Erik Hatcher 5e4dcfa889 Allow field hash to take an array for values
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496797 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 17:50:55 +00:00
Erik Hatcher 162dbee7ea SOLR-108: Request::Standard cleanup (contributed by William Groppe), with slight addition to fix failing test because rows became zero instead of nil
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496551 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 00:41:47 +00:00
Erik Hatcher 3fefa3f9f1 Adjust README with current API
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496211 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 02:43:02 +00:00
Erik Hatcher 9963f1608e Add MARC import example
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496205 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 01:50:12 +00:00
Erik Hatcher e343ccc2ab Simplify schema, with only 4 fields: id, text, *_facet, and *_text. The client does not send text, only *_text, which gets copied into the text field. This is surely overly simplified, and will evolve back as field name munging facilities are added and other data types are supported.
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496204 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 01:49:54 +00:00
Erik Hatcher f06086ede6 Cosmetic change to gem summary
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496203 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 01:44:37 +00:00
Erik Hatcher cde074eec5 Modeled Solr's StandardRequestHandler (qt=standard) as Solr::Request::Standard (includes common, standard, and facet parameters, but not highlighting parameters).
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496202 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 01:41:18 +00:00
Yonik Seeley 077fae5c81 simple python client: SOLR-98
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495915 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 16:13:58 +00:00
Erik Hatcher dcc781a7a5 Fix Rakefile to fail immediately on unit test failures, rather than bug where things might seem ok if units failed but functionals did not
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495838 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 04:34:29 +00:00
Erik Hatcher c20a0cc4d8 refactor Document slightly, allowing << to take multiple fields in a Hash
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495837 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 04:31:47 +00:00
Erik Hatcher 01c454c9a2 add tests to bring coverage back to 100%
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495836 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 04:31:09 +00:00
Erik Hatcher 56c1269ff5 use standard request handler for ping request; dismax is not currently defined in our config
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495835 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 04:30:11 +00:00
Erik Hatcher 76cd8e7110 Add aggregate test suite, enabling one-click runs in an editor
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495831 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 03:37:01 +00:00
Erik Hatcher 753ae838e8 OOify case statements in Request::Base. Added more tests to increase code coverage
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495830 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 03:36:10 +00:00
Erik Hatcher ebab2b4cad Change gem name from solr to solrb, based on personal preference. Open to discussion on this.
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495828 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 03:02:26 +00:00
Erik Hatcher b397f4b2be Add ASL header
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495827 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 03:01:48 +00:00
Erik Hatcher 2dc186201c SOLR-101: Refactored request classes, adding Document/Field abstractions. (contributed by Ed Summers)
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495826 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 02:53:39 +00:00
Erik Hatcher 5f57b25a51 freeze rails edge
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495386 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 21:33:25 +00:00
Erik Hatcher 856341b092 removed a symlink file, it seems
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495354 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 19:50:44 +00:00
Erik Hatcher 2d5f7d6250 Add tests to cover the exception handling, bringing code coverage back to 100%
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495258 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 15:42:57 +00:00
Erik Hatcher 0cad261fb8 SOLR-100: added Exception handling to solrb (submitted by William Groppe)
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@495223 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 13:54:22 +00:00
Erik Hatcher e6467d8838 a test of Solrs ruby escaping, mainly as a real example of adding a document and then searching for it
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@494208 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 21:50:30 +00:00
Erik Hatcher c10a85f982 adjust test not to rely on hash ordering
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@494189 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 20:43:25 +00:00
Erik Hatcher 6d0d02f41b Added TestSolrServer.wrap. Adjusted Rakefile to use .wrap method in test target, and added functional tests to code coverage run.
Test coverage now at 100%!



git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@494186 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 20:23:28 +00:00
Erik Hatcher c1311749ac Add more test coverage, with the currently only uncovered code being the mocked Connection#post method
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@494129 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 17:28:36 +00:00
Erik Hatcher 25d727100e Fix rcov for unit tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@494119 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 16:57:36 +00:00
Erik Hatcher bfa8e6f4b8 move test_solr_server to test/functional
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@494112 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 16:28:19 +00:00
Erik Hatcher 092f7375ed SOLR-97: Rakefile now supports functional and unit tests. Also added partially functioning test:coverage task
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@494108 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 16:05:02 +00:00
Erik Hatcher 5bc0a3b009 add mock base class
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@492698 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 19:18:25 +00:00
Erik Hatcher 9da08c70d7 refactor the solr mock a bit more
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@492692 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 19:09:20 +00:00
Erik Hatcher 0b3fc2da6b first attempt at making a mock Solr::Connection base test case
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@492628 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 16:40:07 +00:00
Erik Hatcher 0e22e6fd27 remove diagnostic puts and add ASL
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@492583 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 14:39:13 +00:00
Erik Hatcher d526f56974 SOLR-95: refactored how Solr starts for tests. A few additional changes: added conf directory under test to allow the Solr test server to have its own configuration and data directory and set solr.solr.home when launching Solr.
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@492570 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 14:00:18 +00:00
Erik Hatcher 7641746534 SOLR-94: start Solr before tests are run, shut it down afterwards (contributed by Ed Summers). Original patch modified slightly to set the Jetty port to 8888
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@492374 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 01:00:30 +00:00
Erik Hatcher 93635b2d34 Move solr installation from flare to solrb
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@492150 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 13:53:10 +00:00
Erik Hatcher d57c97bdd7 move core ruby-solr API to client/ruby/solrb
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@492143 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 13:30:57 +00:00
Erik Hatcher 4d9c4504e1 sooner rather than later, tease the Solr DSL out from the web framework
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@492042 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 04:57:00 +00:00
Erik Hatcher 42ec4b2acc Fix issue with non-Rails environment from
require 'solr'

Reported by Ed Summers (edsu).



git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@492019 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 02:30:09 +00:00
Erik Hatcher ed0f589bae improve README
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@491883 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 18:25:02 +00:00
Erik Hatcher e6a093f30b remove redundant example code
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@491880 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 18:20:20 +00:00
Erik Hatcher 522c1afa69 remove index, let solr create it individually
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@491838 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 16:31:39 +00:00
Erik Hatcher 4c78c098c6 add some of Rails generated directories
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@491828 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 16:13:28 +00:00
Erik Hatcher 8570fa21b3 add a version of Solr under Flare too
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@491827 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 16:11:42 +00:00
Erik Hatcher 01048167ae initial commit of Flare beginnings
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@491824 13f79535-47bb-0310-9956-ffa450edef68
2007-01-02 16:05:29 +00:00