Uwe Schindler
98e055a539
LUCENE-5207: Throw correct exception in JavascriptFunction ctor
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523204 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 10:20:47 +00:00
Uwe Schindler
ada121d6b0
LUCENE-5207: load available javascript functions from resource file (properties)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523114 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 21:38:36 +00:00
Uwe Schindler
b23b6276cc
LUCENE-5207: add comment that the regen hack does not work in Java 8
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523075 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 20:04:14 +00:00
Robert Muir
afc65eebac
LUCENE-5207: enforce encoding and locale (for paranoia reasons)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523059 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 18:48:58 +00:00
Robert Muir
675fb49bbd
LUCENE-5207: try a hack around antlr hashmap bugs
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523057 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 18:40:42 +00:00
Robert Muir
d706f3b8d9
LUCENE-5207: upgrade checksum/maven
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523047 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 18:22:59 +00:00
Uwe Schindler
91aaa597a8
LUCENE-5207: replace tabs by 2 spaces now. antlr 3.5 produces tabs consistently now, so we can replace them (no mixed tabs anymore)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523046 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 18:22:18 +00:00
Uwe Schindler
7480e82c21
LUCENE-5207: Update to antlr 3.5 (which produces no warnings while compiling with java 7). Also fix the regen-macro to handle windows file paths while replacing
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523042 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 18:18:01 +00:00
Uwe Schindler
260853183c
LUCENE-5207: Minor cleanups, also mark all generated methods as SYNTHETIC because there exists no source code
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523016 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 17:02:53 +00:00
Uwe Schindler
699651904d
LUCENE-5207: Refactor compiler to use final fields and simplify initialization
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522972 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 15:22:41 +00:00
Uwe Schindler
01b002b510
LUCENE-5207: Remove classloader field (is not needed, we call only once)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522967 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 15:10:23 +00:00
Uwe Schindler
9617a1ddaa
LUCENE-5207: Add a unused test method to make sure that if we change the FunctionValues interface we get compile error. Also make the class format version a constant for easy maintenance (once we backport)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522925 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 13:40:56 +00:00
Uwe Schindler
115d5dd0e1
LUCENE-5207: Revert the dynamic class name. Its much better to use the "source file attribute". The class name is now constant (as every class gets own class loader) and looks like an internal class of the compiler. The stack trace is then looking like:
...
Throwable #1 : java.lang.IllegalArgumentException: foobar
at __randomizedtesting.SeedInfo.seed([3968E8DD2901F71C:4292B9595A397818]:0)
at org.apache.lucene.util.MathUtil.log(MathUtil.java:51)
at org.apache.lucene.expressions.js.JavascriptCompiler$CompiledExpression.evaluate(logn(2, 0))
at org.apache.lucene.expressions.js.TestJavascriptFunction.assertEvaluatesTo(TestJavascriptFunction.java:27)
at org.apache.lucene.expressions.js.TestJavascriptFunction.testLognMethod(TestJavascriptFunction.java:178)
at java.lang.Thread.run(Thread.java:724)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522907 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 12:54:29 +00:00
Martijn van Groningen
026526dbd4
Fix idea config
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522898 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 12:36:22 +00:00
Uwe Schindler
fc2d83400b
LUCENE-5207: Remove stupidity... :(
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522888 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 12:06:26 +00:00
Michael McCandless
36d7c6b38d
try to workaround javadocs bug causing nightly-smoke to fail
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522885 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 11:58:33 +00:00
Uwe Schindler
d586a56a3b
LUCENE-5207: Limit the maximum class name length
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522877 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 11:27:26 +00:00
Uwe Schindler
f05d6b11a8
LUCENE-5207: Create the class name of generated classes from the parsed text
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522873 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 11:22:42 +00:00
Uwe Schindler
dab0325b9d
LUCENE-5207: Remove classloader constructor, because it makes no sense to use any other classloader
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522858 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 10:45:37 +00:00
Uwe Schindler
5fcf69f8df
LUCENE-5207: Remove the crazy internal signature notation and use ASM Type to generate them
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522850 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 10:21:39 +00:00
Uwe Schindler
ae056bf735
LUCENE-5207: Simplifications
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522839 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 09:52:30 +00:00
Uwe Schindler
42e1cb7ee0
LUCENE-5207: Add missing test for atan2 including funny values (+/-0). The original patch had a bug with this method, because the arity was wrong.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522822 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 09:04:46 +00:00
Uwe Schindler
a62a5ce2ad
LUCENE-5207: More strict checks for invalid method signatures (currently only double is accepted as parameter or return type). The method must be static, too.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522813 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 08:37:10 +00:00
Uwe Schindler
75382a1444
LUCENE-5207: Cleanup JavascriptFunction class to use reflection and type-safe checking (to be extended)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522805 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 08:00:46 +00:00
Robert Muir
b9b88ea26a
LUCENE-5207: simplify tests
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522798 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 07:18:12 +00:00
Robert Muir
8d84d3b5ff
LUCENE-5207: maven/idea config
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522788 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 06:33:33 +00:00
Robert Muir
5d3202793f
LUCENE-5207: sync up syntax docs
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522783 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 05:41:39 +00:00
Robert Muir
b29b3e5f3f
LUCENE-5207: minor docs and API cleanups
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522781 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 05:21:27 +00:00
Robert Muir
0603e66d7d
LUCENE-5207: fix broken javadoc link
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522772 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 03:41:43 +00:00
Robert Muir
9c2cafdeb1
LUCENE-5207: only depends on antlr-runtime
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522771 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 03:32:59 +00:00
Robert Muir
2012823708
LUCENE-5207: replaceregexp tabs with spaces in generated parser
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522770 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 03:28:53 +00:00
Robert Muir
f3947ba910
LUCENE-5207: eol-style native
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522769 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 03:23:08 +00:00
Robert Muir
5f5d39eb18
LUCENE-5207: setup svn:ignores and so on
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522768 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 03:21:53 +00:00
Robert Muir
c73f175c71
LUCENE-5207: initial patch from ryan
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522767 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 03:11:17 +00:00
Robert Muir
bd94c46203
create branch
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522766 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 03:10:31 +00:00
Michael McCandless
1a9067d671
LUCENE-5206: move CHANGES entry to 4.5
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522737 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 21:31:12 +00:00
Michael McCandless
81c0b1bf4e
LUCENE-5206: fix javadocs to clarify FuzzyQuery's unexpected behaviour on short terms
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522733 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 21:26:29 +00:00
Michael McCandless
ea178175bc
LUCENE-4998: fix a few places to pass IOContext.READONCE instead of IOContext.READ
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522722 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 20:45:53 +00:00
Mark Robert Miller
c4eb440bf8
tests: harden
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522701 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 19:28:32 +00:00
Mark Robert Miller
942dabba8c
SOLR-4816: Don't create "loads" of LBHttpSolrServer's, shutdown LBHttpSolrServer when appropriate, get collection from nonRoutableParams.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522684 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 17:51:31 +00:00
Yonik Seeley
f2b3d010b3
SOLR-5148: optimization - lazy create child doc list
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522680 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 17:44:09 +00:00
Michael McCandless
534a9f3080
LUCENE-5133: allow highlight to Object for AnalyzingInfixSuggester for advanced use cases
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522667 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 17:14:27 +00:00
Adrien Grand
d06ba3caaf
LUCENE-5204: Make Directory easier to wrap.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522661 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 16:59:34 +00:00
Michael McCandless
c3ccfbe8d1
LUCENE-4906: PostingsHighlighter: add expert API to render highlights to Object
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522619 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 15:34:55 +00:00
Adrien Grand
980411d93d
Add version 4.6.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522507 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 09:40:24 +00:00
Dawid Weiss
047a650004
SOLR-5219: follow-up code cleanups.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522472 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 07:49:23 +00:00
Shalin Shekhar Mangar
247142e18c
SOLR-5233: The deleteshard collections API doesn't wait for cluster state to update, can fail if some nodes of the deleted shard were down and had incorrect logging.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522463 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 07:14:10 +00:00
Dawid Weiss
098f8b37f4
SOLR-5219: always forget about eol-style...
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1521979 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 18:46:26 +00:00
Dawid Weiss
7a79894528
SOLR-5219: Rewritten selection of the default search and document clustering algorithms.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1521978 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 18:45:27 +00:00
Noble Paul
bddef8a226
SOLR-5006 added missed param
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1521955 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 17:57:20 +00:00