Commit Graph

33436 Commits

Author SHA1 Message Date
Tomoko Uchida c8dea5d77f LUCENE-9259: Fix wrong NGramFilterFactory argument name for preserveOriginal option 2020-03-10 01:25:14 +09:00
Ignacio Vera 03c2557681
LUCENE-9263: Fix wrong transformation of distance in meters to radians in Geo3DPoint (#1318) 2020-03-09 17:07:55 +01:00
Bruno Roustant c7cf9e8e4f
LUCENE-9254: UniformSplit supports FST off-heap.
Closes #1301
2020-03-09 16:35:42 +01:00
Nhat Nguyen 7b9f212907 LUCENE-9268: Add some random tests to IndexWriter
Add some tests that perform a set of operations randomly and
concurrently on IndexWriter.
2020-03-08 22:18:04 -04:00
Joel Bernstein 01688cd8f1 SOLR-14073: Fix segment look ahead NPE in CollapsingQParserPlugin 2020-03-08 20:26:04 -04:00
Michael Sokolov 4501b3d3fd Revert "LUCENE-8962: Split test case (#1313)"
This reverts commit 90aced5a51.

Revert "LUCENE-8962: woops, remove leftover accidental copyright (darned IDEs)"

This reverts commit 3dbfd10279.

Revert "LUCENE-8962: Fix intermittent test failures"

This reverts commit a5475de57f.

Revert "LUCENE-8962: Add ability to selectively merge on commit (#1155)"

This reverts commit a1791e7714.
2020-03-08 18:27:54 -04:00
Paul Pazderski 320578274b LUCENE-9259: Fix wrong NGramFilterFactory argument name for preserveOriginal option 2020-03-07 21:32:40 +09:00
David Smiley 0c261f4215 CHANGES.txt: 8.5: re-categorize issues 2020-03-06 21:02:52 -05:00
Bruno Roustant c73d2c15ba
LUCENE-9257: Always keep FST off-heap. Remove SegmentReadState.openedFromWriter. 2020-03-06 14:24:12 +01:00
noble 4cf37ade35 Revert "SOLR-13942: /api/cluster/zk/* to fetch raw ZK data"
This reverts commit bc6fa3b650.
2020-03-06 23:08:34 +11:00
Robert Muir 4360fa7506
add 8.6 section to master branch's MERGE-CONFLICTS.txt for consistency 2020-03-06 05:52:26 -05:00
Robert Muir 624f5a3c2f
LUCENE-9264: Remove SimpleFSDirectory in favor of NIOFSDirectory
Closes #1321
2020-03-06 05:42:22 -05:00
Bruno Roustant 9733643466
LUCENE-9257: Always keep FST off-heap. Remove FSTLoadMode and Reader attributes.
Closes #1320
2020-03-06 11:15:09 +01:00
Robert Muir 9cfdf17b28
LUCENE-9241: fix tests to pass with -Xmx128m 2020-03-05 21:29:39 -05:00
Mike McCandless e5be034df2 LUCENE-8962: woops, remove leftover accidental copyright (darned IDEs) 2020-03-05 19:04:24 -05:00
Yannick Welsch 8a88dd02c6 Remove SimpleFSDirectory in favor of NIOFSDirectory 2020-03-06 00:04:25 +01:00
Michael Sokolov a030207a5e
LUCENE-8962: Split test case (#1313)
* LUCENE-8962: Simplify test case

The testMergeOnCommit test case was trying to verify too many things
at once: basic semantics of merge on commit and proper behavior when
a bunch of indexing threads are writing and committing all at once.

Now we just verify basic behavior, with strict assertions on invariants, while 
leaving it to MockRandomMergePolicy to enable merge on commit in existing
 test cases to verify that indexing generally works as expected and no new
unexpected exceptions are thrown.

* LUCENE-8962: Only update toCommit if merge was committed

The code was previously assuming that if mergeFinished() was called and
isAborted() was false, then the merge must have completed successfully.
Instead, we should know for sure if a given merge was committed, and
only then update our pending commit SegmentInfos.
2020-03-05 15:49:26 -05:00
Jan Høydahl ceb90ce0e8
LUCENE-9016: RefGuide meta doc for how to publish website (#1291) 2020-03-05 18:17:35 +01:00
Cassandra Targett 74b9ba396c SOLR-14147: comment out for now link to security manager docs in upgrade notes that don't exist on master 2020-03-05 06:16:07 -06:00
Atri Sharma 5d605102d8 Update CHANGES.txt Entry for 9114 2020-03-05 09:23:50 +05:30
Atri Sharma d751cf626e
LUCENE-9114: Improve ValueSourceScorer's Default Cost Implementation (#1303)
This commit makes ValueSourceScorer's costing algorithm also take the delegated FunctionValues's cost into consideration when calculating its cost. FunctionValues now exposes a cost method which is used by ValueSourceScorer's default matchCost method. In addition, ValueSourceScorer exposes a matchCost method which can be overridden to specify a custom costing mechanism
2020-03-05 09:16:50 +05:30
Cassandra Targett f6afb8b165 Ref Guide/CHANGES: fix typos in page refs and format of CHANGES entry 2020-03-04 16:25:14 -06:00
Cassandra Targett e8828f2a1c Ref Guide: move 9.0 changes to 9.0 page; prep 8.5 notes for release; add missing change to CHANGES.txt 2020-03-04 16:20:42 -06:00
Tomas Fernandez Lobbe 2cabeb924d
Add try-with-resources to CloudManager in tests (#1315) 2020-03-04 13:32:44 -08:00
Mike Drob dd9b9f2f7f SOLR-14223 Fix tests for windows 2020-03-04 10:50:00 -08:00
Adrien Grand 46bda6bea0 SOLR-12930: Include `dev-docs` in the expected list files for the source archive.
Otherwise the smoke tester fails.
2020-03-04 08:59:57 +01:00
Tomas Fernandez Lobbe 4d2d052b7d
Fix resource leak in TestPolicyCloud (#1312) 2020-03-03 11:42:20 -08:00
Cassandra Targett fa6166f261 SOLR-14286: jvm-settings.adoc: minor typos; add links to external resources 2020-03-03 12:34:02 -06:00
Christine Poerschke 4a0063f04a Fix spellcheck.queryAnalyzerField[t-->T]ype typo in Solr Ref Guide.
(Carlos Sponchiado via Christine Poerschke)
2020-03-03 18:32:08 +00:00
Noble Paul bc6fa3b650
SOLR-13942: /api/cluster/zk/* to fetch raw ZK data 2020-03-03 22:36:17 +11:00
Ignacio Vera 286d22717b
LUCENE-9225: Rectangle extends LatLonGeometry so it can be used in a geometry collection (#1258) 2020-03-03 07:36:44 +01:00
Ignacio Vera c313365c5f
LUCENE-9251: Filter equal edges with different value on isEdgeFromPolygon (#1290)
Fix bug in the polygon tessellator where edges with different value on #isEdgeFromPolygon were bot filtered out properly
2020-03-03 07:07:34 +01:00
Ignacio Vera b732ce7002
LUCENE-9239: Circle2D#WithinTriangle detects properly if a triangle is Within distance. (#1280) 2020-03-03 06:44:35 +01:00
Pushkar Raste 17c576a36f SOLR-14299 IndexFetcher doesn't reset count to 0 after the last packet is received 2020-03-02 16:26:25 -08:00
Michael Sokolov e308e53873 Add CHANGES entry for LUCENE-8962 2020-03-02 18:34:13 -05:00
msfroh f017ae465e
LUCENE-8962: Fix intermittent test failures (#1307)
1. TestIndexWriterMergePolicy.testMergeOnCommit will fail if the last
   commit (the one that should trigger the full merge) doesn't have any
   pending changes (which could occur if the last indexing thread
   commits at the end). We can fix that by adding one more document
   before that commit.
2. The previous implementation was throwing IOException if the commit
   thread gets interrupted while waiting for merges to complete. This
   violates IndexWriter's documented behavior of throwing
   ThreadInterruptedException.
2020-03-02 18:29:12 -05:00
Cassandra Targett 422d994612 SOLR-14241: fix typos & incorrect example param 2020-03-02 16:53:12 -06:00
Cassandra Targett 27523b5e40 SOLR-14270: Move .gz example to CLI page; Remove bin/solr export from command-line-utilities.adoc 2020-03-02 16:53:12 -06:00
Nicholas Knize a6e80d004d LUCENE-9150: Restore support for dynamic PlanetModel in spatial3d 2020-03-02 16:06:17 -06:00
Cassandra Targett a7ebe0c906 Ref Guide: Add license header, typos in Package Manager docs 2020-03-02 15:44:55 -06:00
Cassandra Targett 153d7bcfee Ref Guide: standardize i.e., e.g., spellings; fix typos 2020-03-02 15:44:55 -06:00
msfroh 043c5dff6f
LUCENE-8962: Add ability to selectively merge on commit (#1155)
* LUCENE-8962: Add ability to selectively merge on commit

This adds a new "findCommitMerges" method to MergePolicy, which can
specify merges to be executed before the
IndexWriter.prepareCommitInternal method returns.

If we have many index writer threads, they will flush their DWPT buffers
on commit, resulting in many small segments, which can be merged before
the commit returns.

* Add missing Javadoc

* Fix incorrect comment

* Refactoring and fix intermittent test failure

1. Made some changes to the callback to update toCommit, leveraging
SegmentInfos.applyMergeChanges.
2. I realized that we'll never end up with 0 registered merges, because
we throw an exception if we fail to register a merge.
3. Moved the IndexWriterEvents.beginMergeOnCommit notification to before
we call MergeScheduler.merge, since we may not be merging on another
thread.
4. There was an intermittent test failure due to randomness in the time
it takes for merges to complete. Before doing the final commit, we wait
for pending merges to finish. We may still end up abandoning the final
merge, but we can detect that and assert that either the merge was
abandoned (and we have > 1 segment) or we did merge down to 1 segment.

* Fix typo

* Fix/improve comments based on PR feedback

* More comment improvements from PR feedback

* Rename method and add new MergeTrigger

1. Renamed findCommitMerges -> findFullFlushMerges.
2. Added MergeTrigger.COMMIT, passed to findFullFlushMerges and to
   MergeScheduler when merging on commit.

* Update renamed method name in strings and comments
2020-03-02 12:19:47 -05:00
Namgyu Kim b2dbd18f96
LUCENE-9253: Support custom dictionaries in KoreanTokenizer
Signed-off-by: Namgyu Kim <namgyu@apache.org>
2020-03-03 02:11:44 +09:00
Adrien Grand f4b5069c1f LUCENE-9247: Fix test failures with ExtraFS. 2020-03-02 08:59:13 +01:00
Ignacio Vera c653c04bb1
LUCENE-9243: Add fudge factor when creating a bounding box of a xycircle (#1278) 2020-03-02 06:56:29 +01:00
Shalin Shekhar Mangar 4897a64713 SOLR-13996: Rename LegacyReplicaSource to StandaloneReplicaSource 2020-03-01 07:00:51 +05:30
Tomoko Uchida 5f9bf6b707 SOLR-14295: Add the parameter description about 'discardCompoundToken' for JapaneseTokenizer in RefGuide 2020-02-29 17:43:25 +09:00
Adrien Grand c929b65c81 LUCENE-9247: Exclude `write.lock` from files whose integrity is expected to be verified. 2020-02-29 08:46:16 +01:00
Adrien Grand 30944d3520 LUCENE-9247: Fix class visibility issue discovered when backporting. 2020-02-28 15:34:36 +01:00
Bruno Roustant 99af698107
LUCENE-9237: Faster UniformSplit intersect TermsEnum.
Closes #1270
2020-02-28 14:52:19 +01:00