Commit Graph

21994 Commits

Author SHA1 Message Date
Adrien Grand f3edb95218 Use the same index reader to create the weight and the scorers.
Otherwise there might be class cast exceptions because of incompatible TermState impls.


git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663328 13f79535-47bb-0310-9956-ffa450edef68
2015-03-02 15:26:26 +00:00
Robert Muir e4f06aba2d LUCENE-6318: re-use immutable maps across fieldinfos when they are the same
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663299 13f79535-47bb-0310-9956-ffa450edef68
2015-03-02 13:28:12 +00:00
Michael McCandless da8fe452fd simple code cleanups to FST: consistently use 'static final' not 'final static', and move static members up top
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663200 13f79535-47bb-0310-9956-ffa450edef68
2015-03-02 07:55:24 +00:00
Adrien Grand 578c4f9f8f Fix integer overflow in TestTimSorter.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663199 13f79535-47bb-0310-9956-ffa450edef68
2015-03-02 07:45:38 +00:00
Michael McCandless 959dfcb7de fix buggy 'advance called before nextDoc' case
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663186 13f79535-47bb-0310-9956-ffa450edef68
2015-03-02 00:32:27 +00:00
Robert Muir a9915c6616 LUCENE-6317: Fix readStringStringMap API, reduce memory usage
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663157 13f79535-47bb-0310-9956-ffa450edef68
2015-03-01 20:30:49 +00:00
Adrien Grand 4f3d2aeae5 LUCENE-6303: Make tests reproducible again.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663106 13f79535-47bb-0310-9956-ffa450edef68
2015-03-01 13:59:10 +00:00
Robert Muir b985737d1f LUCENE-6314: BooleanQuery toString() is wrong for FILTER clauses
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663102 13f79535-47bb-0310-9956-ffa450edef68
2015-03-01 13:52:28 +00:00
Robert Muir f64e74c0c7 LUCENE-6310: FilterScorer supports two-phase always, adds two-phase support to some long-tail scorers
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663095 13f79535-47bb-0310-9956-ffa450edef68
2015-03-01 13:24:59 +00:00
Robert Muir cd66868e93 simplify test to be debuggable when it doesnt get expected exception
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662976 13f79535-47bb-0310-9956-ffa450edef68
2015-02-28 17:46:09 +00:00
Michael McCandless f4011cfc51 LUCENE-6311: make sure IndexInput.toString confesses when it's within a compound file
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662967 13f79535-47bb-0310-9956-ffa450edef68
2015-02-28 17:16:46 +00:00
Robert Muir 99a16fc2dc LUCENE-6309: disable coord when scores are not needed, or the scoring fn does not use it
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662964 13f79535-47bb-0310-9956-ffa450edef68
2015-02-28 16:43:54 +00:00
Michael McCandless f5e8447d8c make SimpleText's checkIntegrity more robust so it's not fooled if you index the string END
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662948 13f79535-47bb-0310-9956-ffa450edef68
2015-02-28 15:26:35 +00:00
Shalin Shekhar Mangar eb8079c050 SOLR-7178: OverseerAutoReplicaFailoverThread compares Integer objects using ==
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662935 13f79535-47bb-0310-9956-ffa450edef68
2015-02-28 13:28:18 +00:00
Adrien Grand 68f87360dd LUCENE-6303: Do not cache filters twice in SolrIndexSearcher.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662914 13f79535-47bb-0310-9956-ffa450edef68
2015-02-28 10:29:23 +00:00
Adrien Grand cf39112477 LUCENE-6303: Fix 'access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.net.www.protocol.file")' error.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662829 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 22:05:03 +00:00
Adrien Grand e4d88cab5c LUCENE-6303: CachingWrapperFilter -> CachingWrapperQuery, FilterCache -> QueryCache and added caching to IndexSearcher.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662774 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 18:09:01 +00:00
Adrien Grand 60ecddfb9e LUCENE-6294: Generalize how IndexSearcher parallelizes collection execution.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662751 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 17:03:37 +00:00
Michael McCandless 5f45083f67 LUCENE-6001: null check was backwards
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662733 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 15:57:06 +00:00
Shalin Shekhar Mangar 3cf40619ca SOLR-7128: Make sure fields aren't duplicated in shard requests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662729 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 15:50:07 +00:00
Adrien Grand 544f5bf1e7 LUCENE-6300: Remove multi-term filters.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662682 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 14:12:02 +00:00
Michael McCandless e98b031bda LUCENE-6001: DrillSideways hits NullPointerException for some BooleanQuery searches
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662681 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 14:02:47 +00:00
Noble Paul 0a169719c7 SOLR-7168: Test failure :Could not remove the files in windows
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662677 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 13:05:04 +00:00
Alan Woodward 60d117b7cb SOLR-7151: CHANGES.txt attribution
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662671 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 12:18:44 +00:00
Alan Woodward d7eefdd7a7 SOLR-7151: SolrClient query methods throw IOException
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662670 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 12:17:51 +00:00
Noble Paul 6c84653e08 remove the hack to get the DIH handler name
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662663 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 11:42:22 +00:00
Michael McCandless 62130ae70c LUCENE-6299: IndexWriter was failing to enforce the 2.1 billion doc limit in one index
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662571 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 21:23:53 +00:00
Robert Muir ec843c6e0a LUCENE-6298: SimpleQueryParser returns empty query rather than null for empty query
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662564 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 20:50:13 +00:00
Noble Paul 63a6080c82 SOLR-7130: remove the special entry from response after reading, so that tests don't see them
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662554 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 19:53:17 +00:00
Noble Paul 925ad53f97 SOLR-7130: formatting mistakes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662546 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 19:42:13 +00:00
Michael McCandless 7a5162c8b3 LUCENE-6299: fix deleteAll to deduct from pendingNumDocs more carefully; fix addIndexes to do best-effort check up front and only reserve for real just before changing SIS
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene6299@1662544 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 19:36:44 +00:00
Noble Paul bd44478442 SOLR-7168:TestSolrConfigHandler failure ,Could not remove the following files
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662541 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 19:14:03 +00:00
Michael McCandless 4e53fae38e LUCENE-6299: commit rob's last patch
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene6299@1662504 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 17:34:00 +00:00
Michael McCandless 855c5cb1c4 LUCENE-6299: make branch
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene6299@1662503 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 17:33:00 +00:00
Robert Muir 9d49ce79e7 best effort support this reading out of sandbox
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662465 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 14:46:38 +00:00
Uwe Schindler 3347d644d4 Typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662460 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 14:29:32 +00:00
Uwe Schindler 09a0dcb6c6 SOLR-7139: Fix SolrContentHandler for TIKA to ignore multiple startDocument events
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662457 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 14:26:38 +00:00
Alan Woodward 46ede7622e SOLR-7166: Encapsulate JettySolrRunner config
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662449 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 14:05:24 +00:00
Noble Paul f511424d43 SOLR-7130: Make stale state notification work without failing the requests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662439 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 13:04:28 +00:00
Adrien Grand ed358ad9ad LUCENE-6291: Rename TwoPhaseDocIdSetIterator to TwoPhaseIterator.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662414 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 10:52:51 +00:00
Adrien Grand 3ec9440e94 LUCENE-6293: Fixed TimSorter bug.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662410 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 10:28:33 +00:00
Shalin Shekhar Mangar 7cf4eedf59 SOLR-7164: Fix failing TestSolr4Spatial by closing SolrCore
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662368 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 06:59:28 +00:00
Shalin Shekhar Mangar 936aa1dcfc SOLR-7128: Two phase distributed search is fetching extra fields in GET_TOP_IDS phase
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662366 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 06:47:52 +00:00
Ryan McKinley 5eda9e0c77 SOLR-7164: fix README for BBoxFieldType
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662357 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 05:06:51 +00:00
Ryan McKinley 47662fff60 SOLR-7164: BBoxFieldType defaults sub fields to not-stored
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662355 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 04:38:36 +00:00
Robert Muir 08266a72ed LUCENE-6238: the resourcebundle stuff happening here can cause problems in some configs (e.g. OS X 10.10.x)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662341 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 00:50:49 +00:00
Michael McCandless f5c7d90d2f LUCENE-6297: make sure default LogByteSizeMP.getMaxMergeMBForForcedMerge is > 0.0
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662325 13f79535-47bb-0310-9956-ffa450edef68
2015-02-25 23:24:33 +00:00
Mark Robert Miller f2c9067e59 SOLR-7113: Multiple calls to UpdateLog#init is not thread safe with respect to the HDFS FileSystem client object usage.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662324 13f79535-47bb-0310-9956-ffa450edef68
2015-02-25 23:19:08 +00:00
Michael McCandless 00ab5bacc6 improve specificity of error messages
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662320 13f79535-47bb-0310-9956-ffa450edef68
2015-02-25 22:54:08 +00:00
Uwe Schindler 563c9da606 LUCENE-6238: Remove access to sun.misc package from static <clinit> code.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662317 13f79535-47bb-0310-9956-ffa450edef68
2015-02-25 22:16:12 +00:00