30421 Commits

Author SHA1 Message Date
David Smiley
528e8bceac SOLR-10243: Apply @AwaitsFix on TestExtractionDateUtil.testParseDate to be fixed by SOLR-12593 2018-07-25 11:10:32 -04:00
Dawid Weiss
d25f62634b LUCENE-8415: test quirk follow up. MockDirectoryWriter uses AccessDeniedException (a subclass of IOException) to signal files still open for writing when read access is requested. 2018-07-25 11:34:31 +02:00
Adrien Grand
65f6e6c150 LUCENE-8427: Fix bug in BlockMaxConjunctionScorer.
In case a scorer would return information about a block that doesn't contain
any matches, BlockMaxConjunctionScorer could use invalid score bounds. This
would never occur when building a conjunction of term queries but possibly when
building a conjunction of phrase queries for instance.
2018-07-25 10:57:11 +02:00
Simon Willnauer
35fa0b4f55 LUCENE-8425: Expose hard live docs on SegmentReader level
Today if soft deletes are used we expose a union of hard and soft deletes
via LeafReader#getLiveDocs. Yet, if a users wants to take advantage of
searching also soft-deleted documents the only option today is to search
all documents even though some of them are hard deleted. The recommendation
is to not mix those but in exceptional cases ie. when a document hits a
non-aborting exception during indexing the document is marked as hard
deleted which is the correct action. In order to filter those out having
access to the hard live docs on the segment reader level allows to filter out
these documents.
2018-07-25 09:34:36 +02:00
Varun Thacker
a254e7d7bc SOLR-11598: Fix test failure due to ordering of sub-tests 2018-07-24 13:09:04 -07:00
Chris Hostetter
98d463ae48 SOLR-12567: JSON Facet "functions" now support an extended "type:func" syntax, similar to other types of facets
This also allows additional local params to be specified for if the aggregation function can take advantage of them.
2018-07-24 10:43:49 -07:00
Nhat Nguyen
d66c05ce4f LUCENE-8414: Make segmentInfos private in IndexWriter
Today IW#SegmentInfos is package-private and can be accessed directly.
Unlike the production code which accesses the SegmentInfo with IW lock,
tests can access it without holding IW lock. This causes these tests
sometimes fail because they are checking an inconsistent view of
SegmentInfos due to a concurrent modification.

This commit makes SegmentInfos private in IndexWriter and ensures that
we snapshot SegmentInfos in our tests.
2018-07-24 12:39:27 -04:00
Adrien Grand
d010cdd87e LUCENE-8412: Fix TestDistributedGrouping failure. 2018-07-24 12:10:25 +02:00
Dawid Weiss
8892c0d9af LUCENE-8415: Clean up Directory contracts (write-once, no reads-before-write-completed). Minor test improvements and cleanups. 2018-07-24 08:47:50 +02:00
Erick Erickson
9d7aef6e77 SOLR-12576: Update ref guide for additional information displayed in cloud view 2018-07-23 20:58:32 -07:00
Jason Gerlowski
6ed9607f74 SOLR-12555: Add add'l expectThrows() test helper 2018-07-23 20:37:04 -04:00
Jason Gerlowski
de16baaa2f Fix precommit: unused TestExportWriter imports 2018-07-23 20:14:58 -04:00
Varun Thacker
877bde7347 SOLR-11598: Fix test case + class name typo 2018-07-23 12:21:59 -07:00
Alan Woodward
028c86b1fa LUCENE-8306: Allow iteration over submatches
Also includes LUCENE-8404, adding match iteration to SpanQuery
2018-07-23 10:02:01 +01:00
koji
995a902d1a SOLR-12570: OpenNLPExtractNamedEntitiesUpdateProcessor cannot support multi fields because pattern replacement doesn't work correctly 2018-07-23 16:58:46 +09:00
Adrien Grand
55bfadbce1 LUCENE-8412: TopFieldCollector no longer takes a trackDocScores option. 2018-07-23 09:06:49 +02:00
koji
34686c00dd LUCENE-8420: Upgrade OpenNLP to 1.9.0 2018-07-23 13:55:22 +09:00
Cao Manh Dat
8c06dec16d SOLR-12305: When a replica is applying updates, some kind of updates can skip buffering for faster recovery 2018-07-23 09:33:28 +07:00
Alan Woodward
6e3f61f6f9 Revert "LUCENE-8306: Allow iteration over submatches"
Incorrect patch committed in error

This reverts commit a8839b7eab122037ed1c1674b2f909666718e331.
2018-07-22 22:36:46 +01:00
Alan Woodward
a8839b7eab LUCENE-8306: Allow iteration over submatches 2018-07-22 21:42:46 +01:00
Varun Thacker
2826a9550b SOLR-12489: remove unused imports 2018-07-21 13:55:37 -07:00
Varun Thacker
18c29b7303 SOLR-12489: Fix test failures 2018-07-21 13:05:07 -07:00
Erick Erickson
1bea1da5dc SOLR-12028: BadApple and AwaitsFix annotations usage 2018-07-20 13:37:05 -07:00
Varun Thacker
9d9c3a0cd8 SOLR-11598: Support more than 4 sort fields in the export writer 2018-07-20 11:38:07 -07:00
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
Cassandra Targett
c152caeb23 Ref Guide: fix URL example rendering in result-grouping.adoc so all characters appear properly 2018-07-20 07:40:24 -05:00
Jim Ferenczi
a19bc5ecb6 LUCENE-8402: Remove invalid identityHashCode assertions in TestPriorityQueue. 2018-07-20 10:13:19 +02:00
Alexandre Rafalovitch
f6e9d00b90 SOLR-12553: Check local params in SignificantTerms Query Parser 2018-07-19 22:12:22 -04:00
Nicholas Knize
9d3cc1e16f LUCENE-8399: Fix LatLonShapeBoundingBoxQuery to use orient method for computing edge intersections 2018-07-19 13:29:05 -05:00
Chris Hostetter
3a5d4a25df SOLR-12343: Fixed a bug in JSON Faceting that could cause incorrect counts/stats when using non default sort options
This also adds a new configurable "overrefine" option
2018-07-19 10:05:28 -07:00
Cassandra Targett
d443ed088d SOLR-11453: Ref Guide: add info on location of solr_slow_requests.log 2018-07-18 15:55:12 -05:00
Cassandra Targett
8242fc8368 Ref Guide: tiny edit to standardize usages of "tlog" for "transaction log" 2018-07-18 15:51:20 -05:00
Cassandra Targett
722f7dabd0 SOLR-11277: Ref Guide: add parameters for defining kilo/mega/gigabyte suffixes 2018-07-18 15:49:40 -05:00
Cassandra Targett
d6afe1d016 SOLR-12507: clean up italics in MODIFYCOLLECTION example 2018-07-18 15:48:29 -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
Steve Rowe
1ba5cff7b6 Don't run @BadApple tests when Yetus runs unit tests 2018-07-17 20:21:04 -04:00
Christine Poerschke
e9c6effd07 SOLR-12454: Tweak Overseer leadership transition related logging for easier troubleshooting. 2018-07-17 20:16:11 +01:00
Christine Poerschke
f7aed28760 SOLR-12464: Reduce Overseer.close() logging (for non-Overseer leaders) 2018-07-17 20:16:10 +01: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
Cao Manh Dat
705e6f76a4 SOLR-12412: Fix test failure 2018-07-17 18:42:29 +07:00
Noble Paul
be475bbc7e SOLR-12522: forbidden api 2018-07-17 16:37:36 +10:00
Noble Paul
49b1fe2b6d SOLR-12522: Support a runtime function #ALL for 'replica' in autoscaling policies 2018-07-17 15:40:22 +10:00
Mike McCandless
ae3929c3ed LUCENE-8487: add IndexSearcher.getSlices 2018-07-16 12:26:58 -04:00
Chris Hostetter
2b395dabb8 SOLR-12115: explain all the types of Domain changes available in JSON Faceting
this also restructures the order of the content a bit to introduce concepts in the order they will most likelye be useful to most users
2018-07-16 09:15:11 -07:00
Erick Erickson
8ce46b6c45 LUCENE-8398: TieredMergePolicy.getMaxMergedSegmentMB has rounding error 2018-07-16 08:12:35 -07:00