Ryan McKinley
e3dd7faecf
SOLR-249 -- depreating new SolrException( int ... ) in favor of new SolrException( enum ...
...
This also refactors all calls to new SolrException()
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@542679 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 22:28:21 +00:00
Yonik Seeley
d45042208b
add ASF license
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@542653 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 21:11:35 +00:00
Chris M. Hostetter
1e5e40cb9c
SOLR-238: make tutorial explicit about the version it applies to
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@542626 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 19:16:09 +00:00
Yonik Seeley
e864ab6cd8
add usage comments, reformat
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@542583 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 16:33:23 +00:00
Ryan McKinley
7403608cab
Error code cleanup. Changing:
...
SolrException( 1, ... ) to SolrException( 500, ... )
SolrException( 2, ... ) to SolrException( 400, ... )
Now, the only status codes set in SolrExceptions are valid HTTP status codes:
500
400
503
404
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@542461 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 08:52:03 +00:00
Chris M. Hostetter
5680b9436b
fix warning from javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@541944 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 22:29:12 +00:00
Ryan McKinley
5ea9310021
only search for fields solr knows about (otherwise you could get NPE for range query) -- also searching for non-indexed fields is useless.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@541824 13f79535-47bb-0310-9956-ffa450edef68
2007-05-25 23:47:29 +00:00
Ryan McKinley
e1f54f34a6
SOLR-246 -- don't compute top terms when numTerms=0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@541380 13f79535-47bb-0310-9956-ffa450edef68
2007-05-24 18:46:20 +00:00
Chris M. Hostetter
8d1d5939f7
SOLR-230: improvements to SOLR-230 so curl is not needed at all in tutorial
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@541046 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 19:44:03 +00:00
Ryan McKinley
c93dd85a74
SOLR-234 TrimFilter can update the Token's startOffset and endOffset if updateOffsets="true". By default the Token offsets are unchanged.
...
This also refactors many of the Filter tests to share common code.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@540995 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 17:18:05 +00:00
Otis Gospodnetic
66b04d6ccc
- svn propset svn:keywords
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@540849 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 05:57:03 +00:00
Yonik Seeley
756b88e8f8
add ngram factories: SOLR-199
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@540219 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 18:17:40 +00:00
Yonik Seeley
1722c8a485
update to lucene 2007-05-20
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@539943 13f79535-47bb-0310-9956-ffa450edef68
2007-05-20 21:21:04 +00:00
Yonik Seeley
849e40a560
SOLR-221 compare minimum count currently needed to the term df and avoid unnecessary intersection count, allow minimum term df in order to use the filterCache, otherwise iterate over TermDocs
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@539531 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 17:34:27 +00:00
Otis Gospodnetic
d272f3e473
- Typo
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@539098 13f79535-47bb-0310-9956-ffa450edef68
2007-05-17 20:01:40 +00:00
Erik Hatcher
2ddd39225a
SOLR-241: Undefined system properties used in configuration files now cause a clear message to be logged rather than an obscure exception thrown.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@538800 13f79535-47bb-0310-9956-ffa450edef68
2007-05-17 03:40:17 +00:00
Ryan McKinley
ca0dedf563
SOLR-231 -- use UTF-8 encoding unless something else is specified.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@537024 13f79535-47bb-0310-9956-ffa450edef68
2007-05-10 22:38:10 +00:00
Ryan McKinley
f4986af881
SOLR-224: Adding a PhoneticFilterFactory that uses commons codec language encoders to build phonetically similar tokens.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@537014 13f79535-47bb-0310-9956-ffa450edef68
2007-05-10 22:10:05 +00:00
Ryan McKinley
e204b3d33e
removed IndexInfoRequestHandler from test schema.xml -- needed to pass the tests
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@536732 13f79535-47bb-0310-9956-ffa450edef68
2007-05-10 02:17:10 +00:00
Ryan McKinley
5e956f4fd3
SOLR-226 adding support for dynamic fields as copyField destination.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@536730 13f79535-47bb-0310-9956-ffa450edef68
2007-05-10 01:52:32 +00:00
Erik Hatcher
c7823d8601
Remove IndexInfoRequestHandler in favor of the Luke request handlers capabilities
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@536729 13f79535-47bb-0310-9956-ffa450edef68
2007-05-10 01:48:41 +00:00
Ryan McKinley
c9a8deb0d4
SOLR-227 -- rather then quietly overwrite an item in a Map<String,xxx>, this checks if an old value exists and adds a severe error if so.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@536653 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 20:53:31 +00:00
Chris M. Hostetter
46428da0dc
SOLR-115 - minor optimization, replace uses of BooleanQuery.getClauses() with BooleanQuery.clauses()
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@536282 13f79535-47bb-0310-9956-ffa450edef68
2007-05-08 18:15:48 +00:00
Chris M. Hostetter
23e5fb0e47
SOLR-217 - no error if fields are unindexed and unstored, instead let them be quietly ignored
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@536278 13f79535-47bb-0310-9956-ffa450edef68
2007-05-08 18:03:32 +00:00
Ryan McKinley
d6f65b926a
SOLR-214 -- override getReader() explicitly. subclass called instance variables, not getContentType()
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@536048 13f79535-47bb-0310-9956-ffa450edef68
2007-05-08 04:23:07 +00:00
Ryan McKinley
c3df2607b0
SOLR-214 - use the charset encoded in the contentType to decode the posted text. Even though they are supposed to, some containers do not obey this specification.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@536019 13f79535-47bb-0310-9956-ffa450edef68
2007-05-07 23:35:55 +00:00
Ryan McKinley
a461ab4cc5
SOLR-228 -- adding missing functions to SolrParams
...
getFieldFloat(String field, String param, float def)
getFieldParam(String field, String param, String def)
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@535914 13f79535-47bb-0310-9956-ffa450edef68
2007-05-07 16:03:02 +00:00
Ryan McKinley
17444901b3
related to SOLR-203 and rev:535580. Some servlet containers (including resin) use an empty string as the getServletPath() if you are on the webapp root:
...
http://localhost:8983/solr
others (jetty) redirect to:
http://localhost:8983/solr/
This makes sure it is a real path before trying to match a request handler.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@535897 13f79535-47bb-0310-9956-ffa450edef68
2007-05-07 15:18:32 +00:00
Ryan McKinley
0b34c977f8
SOLR-203 -- but that normalizes '/' to '' and then matches the default handler
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@535580 13f79535-47bb-0310-9956-ffa450edef68
2007-05-06 05:30:09 +00:00
Ryan McKinley
d75a031c5e
fixing a request parsing bug. When posting "application/x-www-form-urlencoded" and including a charset, application/x-www-form-urlencoded; charset=utf-8, the parser would treat the body as raw content.
...
This includes tests to repeat the error.
It also adds easymock.jar to lib, and excludes it from distribution.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@535548 13f79535-47bb-0310-9956-ffa450edef68
2007-05-05 17:14:22 +00:00
Ryan McKinley
05bf767bcc
javadoc typos
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@535431 13f79535-47bb-0310-9956-ffa450edef68
2007-05-05 01:04:08 +00:00
Ryan McKinley
ac49e15773
more pre solr1.2 XmlUpdateHandler response format cleanup. In the future it would be nice if you get the same response if you do ?commit=true or <commit/>
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@534669 13f79535-47bb-0310-9956-ffa450edef68
2007-05-03 00:59:09 +00:00
Ryan McKinley
9ecad14adf
SOLR-212 java.util.logging.config.file must be set before getInstanceDir()
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@534664 13f79535-47bb-0310-9956-ffa450edef68
2007-05-03 00:23:44 +00:00
Chris M. Hostetter
184bb143df
misc javadoc cleanup to eliminate warnings
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@534181 13f79535-47bb-0310-9956-ffa450edef68
2007-05-01 18:20:52 +00:00
Chris M. Hostetter
80c14dd19f
fixing javadoc escaping issue which triggered this bug...
...
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5082928
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@534179 13f79535-47bb-0310-9956-ffa450edef68
2007-05-01 18:16:08 +00:00
Ryan McKinley
3d133d1f92
minor security fix. This makes sure you can't call paths that start with "/" from /select
...
This way, if you register a handler with "/path" and use path based authentication, you can not sneak into it using:
http://localhost:8983/solr/select/?qt=/update&stream.body= ...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533978 13f79535-47bb-0310-9956-ffa450edef68
2007-05-01 09:02:08 +00:00
Ryan McKinley
b8aea8b7f8
installed an eclipse spellchecker ;)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533815 13f79535-47bb-0310-9956-ffa450edef68
2007-04-30 17:57:52 +00:00
Ryan McKinley
88a33e7427
Properties are maps, so they don't need special handling
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533809 13f79535-47bb-0310-9956-ffa450edef68
2007-04-30 17:18:02 +00:00
Ryan McKinley
974b655b2c
adding a general Properties -> NamedList function
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533596 13f79535-47bb-0310-9956-ffa450edef68
2007-04-30 05:50:31 +00:00
Bertrand Delacretaz
6187859a4c
Forgot to change SimplePostTool's version number
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533593 13f79535-47bb-0310-9956-ffa450edef68
2007-04-30 05:38:49 +00:00
Bertrand Delacretaz
bec6cd3f21
Fix Solr result detection to adapt to slightly modified output format (though the result detection is still a hack)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533591 13f79535-47bb-0310-9956-ffa450edef68
2007-04-30 05:28:51 +00:00
Erik Hatcher
01d2954d92
minor javadoc typo fixes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533579 13f79535-47bb-0310-9956-ffa450edef68
2007-04-30 03:58:02 +00:00
Ryan McKinley
2787609f91
SOLR-181 -- add "required" fields to IndexSchema.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533571 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 23:03:03 +00:00
Ryan McKinley
aa93003946
SOLR-170 -- adding a 'sort' parameter that works for both dismax and standard request handlers. The ';' is still suported (if the 'sort' parameter is not in the query). This also adds a new test class for StandardRequestHandler.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533566 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 22:10:20 +00:00
Ryan McKinley
d273f54151
SOLR-220 -- adding a nicer error message when you sort on an undefined field.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533560 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 21:02:08 +00:00
Ryan McKinley
25a185b7da
SOLR-204: Make it possible for the request dispatcher to handle /select. This offers uniform error handling for /update and /select.
...
This change will affect anyone who has added "enableRemoteStreaming" to their solrconfig.xml since solr1.1
Where you had:
<requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />
You now need:
<requestDispatcher handleSelect="true" >
<requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />
</requestDispatcher>
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533558 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 20:47:23 +00:00
Ryan McKinley
53dc0b4317
removing response information prior to solr1.2 -- in the future, we should offer a more useful response format. For now, this contains the same level of information as solr1.1 <result status=0></result>
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533556 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 20:28:33 +00:00
Ryan McKinley
0775861944
trivial change... remove comment that is not accurate since SOLR-182
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533553 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 20:11:33 +00:00
Ryan McKinley
82dffa7446
SOLR-212 - Adding DirectSolrConnection.java this give you a text interfave to solr without HTTP
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533538 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 18:09:30 +00:00
Ryan McKinley
398ef586b8
deprecating unused functions with a better alternative. see SOLR-183
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533536 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 17:46:52 +00:00