Commit Graph

10860 Commits

Author SHA1 Message Date
Nicholas Knize 509561bf2a LUCENE-8418: Mute LatLonShape polygonWithHole test until fix is applied 2018-07-20 11:36:47 -05:00
David Smiley 20a7ee9e11 LUCENE-8408: Highlighter: Remove obsolete private AttributeFactory instance 2018-07-20 12:33:34 -04:00
Jim Ferenczi a19bc5ecb6 LUCENE-8402: Remove invalid identityHashCode assertions in TestPriorityQueue. 2018-07-20 10:13:19 +02:00
Nicholas Knize 9d3cc1e16f LUCENE-8399: Fix LatLonShapeBoundingBoxQuery to use orient method for computing edge intersections 2018-07-19 13:29:05 -05:00
David Smiley eafc9ffc6f LUCENE-8407: Add SpanTermQuery.getTermStates getter 2018-07-18 09:09:31 -04:00
Adrien Grand 7d8fc543f0 LUCENE-8411: Remove fillFields from TopFieldCollector factory methods. 2018-07-18 12:55:05 +02:00
Mike McCandless a2f113c5c6 LUCENE-8400: make BytesRefHash.compact public 2018-07-18 05:53:59 -04:00
Adrien Grand 331ccf3910 LUCENE-8405: Remove TopDocs.maxScore. 2018-07-18 08:38:57 +02:00
Adrien Grand 8093c450c1 LUCENE-8263: Replace TieredMergePolicy's reclaimDeletesWeight with deletesPctAllowed. 2018-07-17 18:31:06 +02:00
Adrien Grand d730c8b214 LUCENE-8060: Remove usage of TopDocs#totalHits that should really be IndexSearcher#count.
Many tests were written before we introduced IndexSearcher#count and used
`searcher.search(query, 1).totalHits` to get the number of matches of a query
rather than `searcher.count(query)`.
2018-07-17 14:32:02 +02:00
Mike McCandless ae3929c3ed LUCENE-8487: add IndexSearcher.getSlices 2018-07-16 12:26:58 -04:00
Erick Erickson 8ce46b6c45 LUCENE-8398: TieredMergePolicy.getMaxMergedSegmentMB has rounding error 2018-07-16 08:12:35 -07:00
Jim Ferenczi 4b9e2c406e LUCENE-8402: Mute test 2018-07-16 14:35:39 +02:00
Uwe Schindler c97f27b06c Merge branch 'remove-constructor-wrapper-classes' of https://github.com/michaelbraun/lucene-solr:
LUCENE-8345, GitHub PR #392: Remove instantiation of redundant wrapper classes for primitives; add wrapper class constructors to forbiddenapis.
This closes #392
2018-07-16 12:24:45 +02:00
Adrien Grand b6d6f1e3b5 LUCENE-8399: Disable test. 2018-07-16 11:23:02 +02:00
Nicholas Knize f291f3eb6c isolate large vertex shape test from basic shape test 2018-07-15 16:12:06 -05:00
Nicholas Knize d387cb5241 update TestLatLonShape to handle large number of vertices 2018-07-15 09:36:18 -05:00
Nicholas Knize e56c81b452 Fix simple tessellator test errors 2018-07-14 23:45:43 -05:00
Erick Erickson db8db0d2b6 SOLR-12551: Upgrade to Tika 1.18 2018-07-14 15:45:33 -07:00
Nicholas Knize 3b1714e737 LUCENE-8396: silence random large poly test - for now 2018-07-14 12:48:28 -05:00
Michael Braun f0e1864ceb Merge remote-tracking branch 'source/master' into remove-constructor-wrapper-classes 2018-07-14 13:39:37 -04:00
Nicholas Knize b5ef13330f LUCENE-8396: Add Points Based Shape Indexing and Search that decomposes shapes into a triangular mesh and indexes individual triangles as a 6 dimension point 2018-07-14 11:28:37 -05:00
Mike McCandless 07de1dc011 LUCENE-8397: add DirectoryTaxonomyWriter.getCache 2018-07-13 10:20:03 -04:00
Alan Woodward 8997d41357 LUCENE-8395: WordDelimiterGraphFilter can incorrectly add holes 2018-07-12 13:13:04 +01:00
Adrien Grand b68829e656 Add 6.6.5 bwc indices. 2018-07-12 11:08:04 +02:00
Adrien Grand e01eefe965 Add version 6.6.5. 2018-07-12 11:02:21 +02:00
Adrien Grand 14e132b29f LUCENE-8382: Don't propagate calls to setMinCompetitiveScore in MultiCollector. 2018-07-10 09:17:34 +02:00
Adrien Grand b1bb11b79d LUCENE-8391: More tests for merge policies. 2018-07-10 09:17:34 +02:00
Adrien Grand a864ef8231 LUCENE-8394: Explicitly handle the case when segments are smaller than the floor size. 2018-07-10 09:17:34 +02:00
Adrien Grand 8e0d9849bd LUCENE-8393: TieredMergePolicy needs to take into account the maximum segment size when computing the allowed number of segments. 2018-07-10 09:17:34 +02:00
Adrien Grand 9433ab79e2 LUCENE-8392: Avoir corner cases when maxMergeAtOnce is greater than segmentsPerTier. 2018-07-10 09:17:34 +02:00
Adrien Grand ad01baedbf LUCENE-8383: Fix computation of mergingBytes in TieredMergePolicy. 2018-07-09 15:23:36 +02:00
Adrien Grand 41ddac5b44 LUCENE-8385: Fix computation of the allowed segment count in TieredMergePolicy. 2018-07-09 15:21:10 +02:00
Alan Woodward 963cceebff LUCENE-8390: Replace MatchesIteratorSupplier with IOSupplier 2018-07-09 12:35:12 +01:00
Alexandre Rafalovitch b7d14c50fb SOLR-11694: Remove outdated UIMA module 2018-07-07 09:58:57 -04:00
Alan Woodward 6d6e67140b LUCENE-8388: Remove PostingsEnum#attributes() 2018-07-06 18:16:09 +01:00
Mike McCandless fa3cd86de8 LUCENE-8379: add TermQuery.getTermStates 2018-07-05 10:16:55 -04:00
Mike McCandless 4dc2008dc1 LUCENE-8378: add DocIdSetIterator.range method 2018-07-05 10:01:53 -04:00
Nhat Nguyen 7e548ba860 LUCENE-8384: Fix missing advance DVGen in PendingSoftDeletes
Today we only advance the docValues update generation in
PendingSoftDeletes for the soft-deletes field. If we update a
soft-deletes DV field, then update a non-soft-deletes DV field, then
onNewReader will consider that we never update DV field although we did.

This commit makes sure that we always advance the docValues update
generation when handling docValues update in PendingSoftDeletes.

Co-authored-by: Simon Willnauer <simonw@apache.org>
2018-07-04 22:15:47 -04:00
Nhat Nguyen d96ef95e0f LUCENE-8381: Add change log entry 2018-07-04 20:19:43 -04:00
Nhat Nguyen 0ccd5d580d LUCENE-8381: Do not count hard-deletes as soft-deletes in merges
Today if a document is soft-deleted, then hard-deleted, IW, however,
considers that doc as soft-deleted when wrapping readers for merges.

This change makes sure that IW excludes the hard-deleted documents from
a merge reader, and does not count them as soft-deletes.

Co-authored-by: Simon Willnauer <simonw@apache.org>
2018-07-04 14:16:34 -04:00
Adrien Grand 799d2acd88 LUCENE-7976: Fix indentation. 2018-07-04 13:36:54 +02:00
Dawid Weiss 0f652627a0 LUCENE-8380: UTF8TaxonomyWriterCache page/ offset calculation bug 2018-07-04 09:06:33 +02:00
Alan Woodward f835d24997 LUCENE-8376, LUCENE-8371: ConditionalTokenFilter fixes 2018-07-02 15:36:12 +01:00
Alan Woodward ad727bac43 LUCENE-8373: Removed StandardAnalyzer.ENGLISH_STOP_WORDS_SET 2018-06-29 16:07:09 +01:00
Alan Woodward 6566b59f36 LUCENE-8373: Move ENGLISH_STOPWORDS_SET to EnglishAnalyzer 2018-06-29 16:07:08 +01:00
Erick Erickson c303c5f126 LUCENE-8370: Reproducing TestLucene{54,70}DocValuesFormat.testSortedSetVariableLengthBigVsStoredFields() failures 2018-06-28 18:28:37 -07:00
Mike McCandless 4c646dab3f Fix PriorityQueue constructor to throw IllegalArgumentException if you pass Integer.MAX_VALUE as maxSize (thanks rsaavedraf) 2018-06-28 12:11:18 -04:00
Christine Poerschke e1d2749b20 SOLR-12419: standardise solr/contrib (private) logger names 2018-06-28 14:47:33 +01:00
Mike McCandless e8d1057403 LUCENE-8367: make per-dimension drill down optional for each facet dimension 2018-06-27 15:57:21 -04:00
Alan Woodward 39fb4b8a18 LUCENE-8356: Remove StandardFilter and StandardFilterFactory 2018-06-27 12:05:23 +01:00
Alan Woodward 0fbe3d257e LUCENE-8356: Remove StandardFilter from Solr schemas 2018-06-27 12:05:23 +01:00
Alan Woodward fce841534a LUCENE-8356: Deprecate StandardFilter 2018-06-27 12:05:23 +01:00
Erick Erickson 1d85cd7838 SOLR-12513 Reproducing TestCodecSupport.testMixedCompressionMode failure 2018-06-25 15:17:40 -07:00
Shalin Shekhar Mangar ffd9944315 SOLR-12468: Upgrade Jetty to 9.4.11.v20180605 2018-06-25 19:02:06 +05:30
Adrien Grand 3b9d3a760a Add 7.4.0 bw indices. 2018-06-22 13:31:42 +02:00
Robert Muir 2ea416ee3d LUCENE-8366: Upgrade to ICU 62.1 2018-06-21 20:09:13 -04:00
Marc-Andre Morissette 008bc74beb LUCENE-8365: Fix ArrayIndexOutOfBoundsException in UnifiedHighlighter
This fixes a "off by one" error in the UnifiedHighlighter's code that
is only triggered when two nested SpanNearQueries contain the same term.

Signed-off-by: Simon Willnauer <simonw@apache.org>
Closes #408
2018-06-20 16:49:49 +02:00
Karl Wright dcfbaf31db LUCENE-8363: Interpolate should yield points on the ellipsoid. 2018-06-19 02:31:40 -04:00
Alan Woodward ab2fec1642 LUCENE-8237: Correct handling of position increments in sub-tokenstreams 2018-06-18 09:57:38 +01:00
Alan Woodward d1dc874d90 LUCENE-8360: NGram filters should set posIncAtt in end() 2018-06-18 09:57:38 +01:00
Erick 2519025fda LUCENE-7976: Make TieredMergePolicy respect maxSegmentSizeMB and allow singleton merges of very large segments 2018-06-15 12:33:02 -07:00
Mike McCandless e7aac9b0c9 fix minor javadoc typos 2018-06-15 13:57:24 -04:00
Simon Willnauer 772e171ac6 LUCENE-8358: Relax assertion in IW#writeSomeDocValuesUpdates
This assertion is too strict since we can see this situation if for instance
a ReadersAndUpdates instance gets written to disk concurrently and
readerpooling is off. This change also simplifies ReaderPool#getReadersByRam and
adds a test for it.
2018-06-15 12:01:29 +02:00
Erick Erickson a98fcda9c6 SOLR-12028: BadApple and AwaitsFix annotations usage 2018-06-14 13:16:39 -07:00
Alan Woodward 6f24be9457 LUCENE-8357: Fix function score explanations 2018-06-14 11:07:30 +01:00
David Smiley 228a84fd6d LUCENE-8344: TokenStreamToAutomaton doesn't ignore trailing posInc when preservePositionIncrements=false 2018-06-13 23:35:44 -04:00
Alan Woodward 5ae716c412 LUCENE-7444: StandardAnalyzer not longer uses english stopwords by default 2018-06-13 11:38:16 +01:00
Simon Willnauer 7eb74ac50f LUCENE-8164: IndexWriter silently accepts broken payload.
This has been fixed via LUCENE-8165 since we are now checking
for offset+length going out of bounds.

Co-authored-by: Nhat Nguyen <nhat.nguyen@elastic.co>
Co-authored-by: Robert Muir <rmuir@apache.org>
2018-06-13 10:16:33 +02:00
Simon Willnauer 61e68ec1e8 LUCENE-8355: Prevent IW from opening an already dropped segment while DV updates are written
This change fixes an isse where IW asks ReadersAndUpdates to write a DV updates for a
segment that has been dropped concurrently. The race only occurs if ram buffers are filled
up enough to trigger flushing DV to disk.

Co-authored-by: Nhat Nguyen <nhat.nguyen@elastic.co>
2018-06-13 10:10:01 +02:00
Steve Rowe 90e4eca9db LUCENE-8278: move CHANGES entry to 7.4 section 2018-06-12 09:34:53 -04:00
Steve Rowe ead05a10b1 LUCENE-8278: Some end-of-input no-scheme domain-only URL tokens are typed as <ALPHANUM> rather than <URL> 2018-06-11 17:09:30 -04:00
ivera 36b7cdde06 LUCENE-8350: Fix for time-out in RandomGeoPolygonTests 2018-06-08 12:47:26 +02:00
Alan Woodward a4fa168962 LUCENE-8273: Don't wrap ShingleFilter in conditions in testRandomChains 2018-06-07 12:54:10 +01:00
Adrien Grand a82c9cfcf4 Add a 7.5.0 version. 2018-06-07 10:33:52 +02:00
Nhat Nguyen 8a6f1bf5ad LUCENE-8165: Ban copyOf and copyOfRange.
These methods are lenient with out-of-bounds indices.

Signed-off-by: Adrien Grand <jpountz@gmail.com>
2018-06-07 10:08:21 +02:00
Andrzej Bialecki 3022bbce2e SOLR-12445: Upgrade Dropwizard Metrics to version 3.2.6. 2018-06-06 15:14:22 +02:00
Ignacio Vera af7dfb182e LUCENE-8299: Geo3D wrapper uses new polygon method factory that gives better support for polygons with many points (>100) 2018-06-06 11:39:39 +02:00
Jim Ferenczi 2b406a57c4 LUCENE-8346: Remove final modifier on QueryBuilder#createSpanQuery to allow override 2018-06-06 09:18:25 +02:00
Michael Braun 78079fc552 Merge remote-tracking branch 'source/master' into remove-constructor-wrapper-classes 2018-06-05 18:48:55 -04:00
Michael Braun 6d33beb92d Remove extra T 2018-06-05 18:29:46 -04:00
David Smiley f9f5e83745 LUCENE-8332: New ConcatenateGraphFilter (from CompletionTokenStream).
* Added a test for FingerprintFilter and clarified FF's end condition.
2018-06-04 23:07:31 -04:00
Robert Muir 5c6a49b13f LUCENE-7960: remove deprecations 2018-06-04 22:40:48 -04:00
Robert Muir 208d4a9c34 LUCENE-7960: Add preserveOriginal option to the NGram and EdgeNGram filters
(this is a correction of the issue number in both the CHANGES.txt and the commit message, sorry for the noise).
2018-06-04 21:32:53 -04:00
Robert Muir 2c1ab31b4e LUCENE-7690: Add preserveOriginal option to the NGram and EdgeNGram filters 2018-06-04 21:24:20 -04:00
Simon Willnauer 59087d148a [TEST] Ensure MDW.assertNoUnreferencedFilesOnClose is threadsafe 2018-06-04 17:33:18 +02:00
Simon Willnauer fe83838ec3 LUCENE-8341: Record soft deletes in SegmentCommitInfo
This change add the number of documents that are soft deletes but
not hard deleted to the segment commit info. This is the last step
towards making soft deletes as powerful as hard deltes since now the
number of document can be read from commit points without opening a
full blown reader. This also allows merge posliies to make decisions
without requiring an NRT reader to get the relevant statistics. This
change doesn't enforce any field to be used as soft deletes and the statistic
is maintained per segment.
2018-06-04 15:05:12 +02:00
Simon Willnauer e7a0a12926 LUCENE-8335: Enforce soft-deletes field up-front
Soft deletes field must be marked as such once it's introduced
and can't be changed after the fact.

Co-authored-by: Nhat Nguyen <nhat.nguyen@elastic.co>
2018-06-04 08:28:38 +02:00
Michael Braun fb6574100e LUCENE-8345 - add wrapper class constructors to forbiddenapis 2018-06-03 15:40:50 -04:00
Simon Willnauer 3dc4fa199c Revert "LUCENE-8335: Enforce soft-deletes field up-front."
This reverts commit a2d9276674.
2018-06-02 13:47:24 +02:00
Simon Willnauer a2d9276674 LUCENE-8335: Enforce soft-deletes field up-front.
Soft deletes field must be marked as such once it's introduced
and can't be changed after the fact.
2018-06-02 13:14:53 +02:00
Simon Willnauer 76263087b5 LUCENE-8338: Ensure number returned for PendingDeletes are well defined
Today a call to PendingDeletes#numPendingDeletes might return 0
if the deletes are written to disk. This doesn't mean these values are committed
or refreshed in the latest reader. Some places in IW use these numbers to make
decisions if there has been deletes added since last time checked (BufferedUpdateStream)
which can cause wrong (while not fatal) decision ie. to kick of new merges.

Now this API is made protected and not visible outside of PendingDeletes to prevent
any kind of confusion. The APIs now allow to get absolute numbers of getDelCount and numDocs
which have the same name and semantics as their relatives on IndexReader/Writer
and SegmentCommitInfo.
2018-05-30 20:48:51 +02:00
Alan Woodward e3d4c7e9b7 LUCENE-8300: Allow unordered intervals to exclude overlaps 2018-05-30 16:15:39 +01:00
Karl Wright ceb4f768bf LUCENE-8337: Fix problems with how travel planes too close to edge of world are disallowed, and increase the size of the disallowed window by an order of magnitude. 2018-05-29 21:03:03 -04:00
Karl Wright 7ce6dbda18 LUCENE-8337: Add disabled unit test for failure 2018-05-29 12:42:56 -04:00
Alan Woodward 4ea9d2ea8c LUCENE-8273: Adjust position increments when filtering stacked tokens 2018-05-29 15:59:36 +01:00
Simon Willnauer 34741a863a LUCENE-8330: Exclude MockRandomMP from basic tests 2018-05-29 16:58:03 +02:00
Andrzej Bialecki 6bbce38b77 SOLR-11779: Basic long-term collection of aggregated metrics. 2018-05-29 10:35:39 +02:00
Yuri Astrakhan d039730638 Fix incorrect BitUtil.deinterleave() description
Signed-off-by: Adrien Grand <jpountz@gmail.com>

Closes #367
2018-05-28 17:10:47 +02:00
Adrien Grand 1971ef3109 LUCENE-8186: LowerCaseTokenizerFactory now lowercases text in multi-term queries. 2018-05-28 16:20:49 +02:00
Adrien Grand 78ca82e63a Add 6.6.4 back compat test indexes. 2018-05-28 16:11:32 +02:00
Adrien Grand f8ae144054 LUCENE-8324: Make test pass with ExtraFS. 2018-05-28 15:41:17 +02:00
Adrien Grand b1613e4da6 TestLRUQueryCache#testBulkScorerLocking needs large IW buffers. 2018-05-28 15:22:21 +02:00
Simon Willnauer 0941cae532 LUCENE-8334: Ensure SR#getSementInfo() returns snapshot
The SegmentCommitInfo passed to the segment reader is mutated concurrently.
An instance obtained from SR#getSegmentInfo() might return wrong delete counts
or generation ids. This ensures that the SR will use a clone internally while stil
maintaining the original SI since it's needed inside IW for maintainance like
accessing pooled readers etc.
2018-05-28 14:28:36 +02:00
Dawid Weiss 7a5d9ca5e8 LUCENE-8333: Switch MoreLikeThis.setMaxDocFreqPct to use maxDoc instead of numDoc 2018-05-25 12:22:21 +02:00
Dawid Weiss 719fce8026 LUCENE-8221: MoreLikeThis.setMaxDocFreqPct can easily int-overflow on larger indexes. 2018-05-25 12:16:22 +02:00
Adrien Grand 0a1de2c4a5 LUCENE-8312: Leverage impacts to speed up SynonymQuery. 2018-05-25 09:30:10 +02:00
Adrien Grand 24d79de796 LUCENE-8144: Moved QueryCachingPolicy.ALWAYS_CACHE to the test framework. 2018-05-25 09:30:10 +02:00
Dawid Weiss 0e4e0096fd SOLR-12396: Upgrade Carrot2 to 3.16.0, HPPC to 0.8.1, morfologik to 2.1.5 2018-05-25 09:16:41 +02:00
Simon Willnauer c93f628317 LUCENE-8330: Detach IndexWriter from MergePolicy
This change introduces a new MergePolicy.MergeContext interface
that is easy to mock and cuts over all instances of IW to MergeContext.
Since IW now implements MergeContext the cut over is straight forward.
This reduces the exposed API available in MP dramatically and allows
efficient testing without relying on IW to improve the coverage and
testability of our MP implementations.
2018-05-25 07:37:09 +02:00
Steve Rowe 2f38342687 LUCENE-8273: Move test resources to where they belong 2018-05-24 18:13:35 -04:00
Jim Ferenczi 55858d7ba7 LUCENE-8325: Fixed the smartcn tokenizer to not split UTF-16 surrogate pairs. 2018-05-23 16:12:43 +02:00
Simon Willnauer 14a7cd1159 LUCENE-8324: Fix test to exclude the write.lock in expected files 2018-05-23 07:54:59 +02:00
Simon Willnauer b54e5946de LUCENE-8328: Ensure ReadersAndUpdates consistently executes under lock 2018-05-23 07:54:59 +02:00
Alan Woodward 24c186eff9 LUCENE-8273: Don't wrap MinHashFilter in a condition
MinHashFilter needs to consume the entire tokenstream, so wrapping it in a
randomized condition makes no sense, and breaks offsets.
2018-05-22 09:09:36 +01:00
Simon Willnauer 2ce53791d3 LUCENE-8324: Checkpoint after fully deletes segment is dropped on flush 2018-05-21 20:32:37 +02:00
Alan Woodward 0c0fce3e98 LUCENE-8273: TestRandomChains found some more end() handling problems 2018-05-21 15:12:32 +01:00
Steve Rowe d91273ddf0 LUCENE-8273: Rename TermExclusionFilter -> ProtectedTermFilter. Allow ProtectedTermFilterFactory to be used outside of CustomAnalyzer, including in Solr, by allowing wrapped filters and their parameters to be specified on construction. Add tests for ProtectedTermFilterFactory in lucene/common/analysis/ and in solr/core/. Add Solr ref guide documentation for ProtectedTermFilterFactory. Improve javadocs for CustomAnalyzer, ConditionalTokenFilter, and ProtectedTermFilter. 2018-05-20 19:52:07 -04:00
Simon Willnauer 85adac1c72 Disable WindowsFS dependent tests in TestSimpleFSDirectory on Windows 2018-05-18 19:38:11 +02:00
Simon Willnauer 70cfe46689 LUCENE-8320: Fix NPE in WindowsFS if target file exists but isn't open 2018-05-18 19:38:11 +02:00
Simon Willnauer 82ad857f1a LUCENE-8320: Disable test on windows
irony: currently we don't emulate windows well enough to work on windows!
2018-05-18 19:38:11 +02:00
Alan Woodward b1ee23c525 LUCENE-8273: Fix end() and posInc handling 2018-05-18 13:11:39 +01:00
Ishan Chattopadhyaya 6826c37669 Synchronize 6.6.4 CHANGES.txt 2018-05-18 15:29:39 +05:30
Simon Willnauer 42a79970d5 LUCENE-8320: Fix WindowsFS#rename with hardlinks 2018-05-18 09:33:50 +02:00
Simon Willnauer 88f8718f1b LUCENE-8317: Prevent concurrent deletes from being applied during full flush
Future deletes could potentially be exposed to flushes/commits/refreshes if the
amount of RAM used by deletes is greater than half of the IW RAM buffer.
2018-05-17 14:10:02 +02:00
Simon Willnauer 3fe612bed2 LUCENE-8318: Ensure pending delete is not brought back on a try delete attempt
When renaming a file, `FSDirectory#rename` tries to delete the dest file
if it's in the pending deletes list. If that delete fails, it adds the
dest to the pending deletes list again. This causes the dest file to be
deleted later by `deletePendingFiles`.
2018-05-17 11:02:35 +02:00
Jim Ferenczi 0159e4b974 LUCENE-8287: Ensure that empty regex completion queries always return no results 2018-05-17 10:29:49 +02:00
Simon Willnauer 0c3628920a LUCENE-8316: Allow DV updates for not existing fields
Today we prevent DV updates for non-existing fields except
of the soft deletes case. Yet, this can cause inconsitent field numbers
etc. since we don't go through the global field number map etc. This
change removes the limitation of updating DVs in docs even if the field
doesn't exists. This also has the benefit that the error messages if
the field type doesn't match is consistent with what DWPT throws.
2018-05-16 19:59:20 +02:00
Adrien Grand 35a815b955 LUCENE-8309: Live docs are no longer backed by mutable bits. 2018-05-16 17:54:19 +02:00
Adrien Grand 6d69824a6b LUCENE-8314: More checks on AssertingScorer. 2018-05-16 17:54:19 +02:00
Adrien Grand 9b9776a714 LUCENE-8313: Simplify SimScorer. 2018-05-16 17:53:56 +02:00
Adrien Grand bd20cb3c87 LUCENE-8315: Make FeatureField easier to use. 2018-05-16 17:29:46 +02:00
Simon Willnauer 0d8aacba4a [TEST] Fix TestIndexWriterExceptions to never remove fully deleted segments
This used to work in the past since we cleaned up fully deleted segments later.
Now that we clean them up on flush we need to make sure this test holds on to
it otherwise stats are off.
2018-05-16 15:39:19 +02:00
Simon Willnauer b3894d7f11 LUCENE-8310: Remove supporess WindowsFS
IW can now handle pending deletes.
2018-05-16 12:36:33 +02:00
Simon Willnauer 585952797c LUCENE-8310: Ensure IndexFileDeleter accounts for pending deletes
Today we fail creating the IndexWriter when the directory has a
pending delete. Yet, this is mainly done to prevent writing still
existing files more than once. IndexFileDeleter already accounts for
that for existing files which we can now use to also take pending
deletes into account which ensures that all file generations per segment
always go forward.
2018-05-16 11:17:43 +02:00
Uwe Schindler 3a73d4b2d6 LUCENE-8291: Remove untested/unmaintained demo webapp 2018-05-16 09:25:26 +02:00
Mikhail Khludnev 09a789f535 LUCENE-8291: Build Fix. Removing Demo Servlet. 2018-05-16 08:59:45 +03:00
Uwe Schindler 11c6a7ad88 LUCENE-8291: Remove QueryTemplateManager utility class from XML queryparser 2018-05-15 23:34:59 +02:00
Cao Manh Dat f959777995 Add 7.3.1 back compat test indexes 2018-05-15 10:16:50 +07:00
Cao Manh Dat 16cb4141df Synchronize 7.3.1 changes 2018-05-15 10:00:14 +07:00
Cao Manh Dat b3551721fd Add version 7.3.1 2018-05-15 09:52:07 +07:00
Adrien Grand 02849fb707 Fix TestPendingSoftDeletes. 2018-05-14 15:30:16 +02:00
Alan Woodward bad0e3f164 Mute TestRandomChains while I work on a fix 2018-05-11 22:47:42 +01:00
Alan Woodward 2225d0e464 LUCENE-8273: Fix end() propagation 2018-05-11 15:07:59 +01:00
Adrien Grand d764156f91 LUCENE-8303: Make the overflow test a Monster rather than Nightly. 2018-05-11 14:36:42 +02:00
Alan Woodward 1ce3ebadbd LUCENE-8273: Add ConditionalTokenFilter 2018-05-11 11:34:59 +01:00
Alan Woodward 7d9059ef13 LUCENE-8249: Implement Matches API for phrase queries 2018-05-10 09:35:19 +01:00
David Smiley e91d120999 LUCENE-8305: ComplexPhraseQuery.rewrite now handles an embedded MultiTermQuery
that rewrites to a MatchNoDocsQuery instead of throwing an exception.
Fixes #258
Fixes #327
2018-05-09 23:03:40 -04:00
Simon Willnauer 99d1ccefcd [TEST]: Account for docs that randomly never got added 2018-05-09 22:30:22 +02:00
Simon Willnauer 4177252a10 [TEST] Never oversize bitset 2018-05-09 19:11:13 +02:00