summaryrefslogtreecommitdiffstats
path: root/searchlib
Commit message (Collapse)AuthorAgeFilesLines
* Forward isUndefined() for imported attributes to the target attribute vectorTor Brede Vekterli2020-01-313-0/+19
| | | | | Default implementation would always return false, which means that the undefined sentinel value would be returned to--and used by--the caller.
* Use vespalib::alloc::Allo instead. Will handle large documents smoother.Henning Baldersheim2020-01-301-4/+4
|
* Do not hold the lock when visiting documents inflight.Henning Baldersheim2020-01-302-2/+16
|
* Merge pull request #11998 from ↵Tor Brede Vekterli2020-01-309-8/+69
|\ | | | | | | | | vespa-engine/vekterli/add-readable-attribute-vector-accessor-to-iattribute-manager Add ReadableAttributeVector accessor to IAttributeManager
| * Add ReadableAttributeVector accessor to IAttributeManagerTor Brede Vekterli2020-01-299-8/+69
| | | | | | | | | | | | | | | | | | | | Provides a unified interface for fetching both regular as well as imported attributes. Exposing `ReadableAttributeVector` instead of raw `AttributeVector` instances enforces that all access is done via appropriate acquired read guards. Refactor document selection processing code to use the new interface in order to prepare for imported field support in selections.
* | Ensure that we never end up with a seemingly valid bit count of 0.Henning Baldersheim2020-01-292-9/+8
| |
* | Add testing of growing of bitvector when count is invalidHenning Baldersheim2020-01-291-7/+15
| |
* | Merge pull request #11986 from ↵Henning Baldersheim2020-01-284-37/+111
|\ \ | | | | | | | | | | | | vespa-engine/geirst/fix-search-for-false-in-imported-bool-attributes Geirst/fix search for false in imported bool attributes
| * | Make it more readable.Geir Storli2020-01-281-2/+2
| | |
| * | Correctly handle search for "false" in the underlying search context of ↵Geir Storli2020-01-283-36/+110
| | | | | | | | | | | | | | | | | | | | | | | | singleboolattribute. This code path is used when searching on an imported bool attribute (from a parent document), combined with other query terms (e.g. under an AND) such that the search iterator for the imported bool attributes is not strict. In this case the underlying search context is used, and search for "false" would previously return all "true" documents instead.
| * | Rename searchcontext.cpp -> searchcontext_test.cppGeir Storli2020-01-282-1/+1
| | |
* | | Allow room for bringing allocation along to reduce the need to copy.Henning Baldersheim2020-01-271-10/+4
|/ /
* | Add include statements needed by newer build environments.Tor Egge2020-01-263-0/+3
| |
* | Include stdexcept before using std::runtime_errorTor Egge2020-01-267-0/+7
| |
* | Fix assert errors in unit tests.Tor Egge2020-01-262-2/+2
| |
* | Count bits faster when hardware supports it.Henning Baldersheim2020-01-242-19/+1
| |
* | Faster atomic operations based on PR review.Henning Baldersheim2020-01-241-4/+5
| |
* | Count after invalidating.Henning Baldersheim2020-01-242-1/+2
| |
* | Unroll tight loop.Henning Baldersheim2020-01-241-1/+8
| |
* | Use atomic sematics for cached number of true bits to ensure visibility.Henning Baldersheim2020-01-241-9/+11
|/
* Merge pull request #11877 from ↵Henning Baldersheim2020-01-227-41/+23
|\ | | | | | | | | vespa-engine/balder/add-noexcept-to-move-constructors-and-operators Balder/add noexcept to move constructors and operators
| * Add noexcept to move constructors and operatorsHenning Baldersheim2020-01-217-41/+23
| |
* | Maintain the cached bitCount to avoid cost query time.Henning Baldersheim2020-01-229-75/+72
|/
* Merge pull request #11822 from vespa-engine/balder/reduce-bytebuffer-exposureHenning Baldersheim2020-01-2116-64/+58
|\ | | | | Balder/reduce bytebuffer exposure
| * c_str -> dataHenning Baldersheim2020-01-2115-41/+41
| |
| * Make it known that getting serialized size will always be expensive.Henning Baldersheim2020-01-201-14/+13
| |
| * GC a load of unused code. ByteBuffer towards read only.Henning Baldersheim2020-01-201-7/+2
| |
| * Simplify as functionality is abandoned.Henning Baldersheim2020-01-172-6/+6
| |
* | Add and propagate isBlockingWrite fieldJon Bratseth2020-01-201-0/+1
|/
* Fix format string.Tor Egge2020-01-141-1/+1
|
* Revert "Revert "Revert "Revert "Require equal sizes in join""""Jon Bratseth2020-01-131-5/+4
|
* General code health in the vicinity.Henning Baldersheim2020-01-135-20/+19
|
* Track how long bucketizer guard is held during compaction.Henning Baldersheim2020-01-132-4/+16
|
* Merge pull request #11749 from ↵Henning Baldersheim2020-01-113-9/+28
|\ | | | | | | | | vespa-engine/balder/compact-buffer-after-compression Balder/compact buffer after compression
| * Detect when size classes are changed instead.Henning Baldersheim2020-01-111-1/+1
| |
| * Add test for correctly reported capacity.Henning Baldersheim2020-01-112-0/+10
| |
| * Shrink the buffer if it is too big.Henning Baldersheim2020-01-111-9/+18
| |
* | Revert "Revert "Revert "Require equal sizes in join"""Henning Baldersheim2020-01-111-4/+5
|/
* Merge pull request #11741 from ↵Henning Baldersheim2020-01-106-28/+47
|\ | | | | | | | | vespa-engine/balder/bitvectorsearchcontext-must-implement-find-too Balder/bitvectorsearchcontext must implement find too
| * Only provide a filter iterator if that is all that is needed.Henning Baldersheim2020-01-103-3/+10
| |
| * BitVectorSearchContext must implement the find iterface too. Even if itself ↵Henning Baldersheim2020-01-103-25/+37
| | | | | | | | | | | | will only produce a BitVectorIterator when invoked directly, it has no control on how it is used when imported into a child.
* | Revert "Revert "Require equal sizes in join""Lester Solbakken2020-01-101-5/+4
|/ | | | This reverts commit d78f8b089753025421524539e86ca96b7bf3369c.
* Warn on missing query feature type declarationsJon Bratseth2020-01-092-3/+12
| | | | | | | Warn on missing query feature type declarations in rank profiles which use tensors. This may help users to remember to declare them to avoid running into confuson as tensors are interpreted as string which are hashed to scalars.
* Merge pull request #11700 from vespa-engine/balder/use-shared-ptrHenning Baldersheim2020-01-084-30/+32
|\ | | | | Balder/use shared ptr
| * Update tests expected sizesHenning Baldersheim2020-01-081-2/+2
| |
| * Remove interface to modify buffer.Henning Baldersheim2020-01-084-28/+30
| | | | | | | | Use shared_ptr to allow sharing instead of copy.
* | Include algorithm header file when needed.Tor Egge2020-01-083-0/+3
|/
* Merge pull request #11692 from ↵Henning Baldersheim2020-01-083-3/+3
|\ | | | | | | | | vespa-engine/toregge/system-time-and-steady-time-might-have-different-duration-types std::chrono::system_clock and std::chrono::steady_clock might have different duration types.
| * system_time and steady_time might have different duration types.Tor Egge2020-01-083-3/+3
| |
* | Merge pull request #11690 from vespa-engine/toregge/adjust-forward-referenceHenning Baldersheim2020-01-081-1/+1
|\ \ | | | | | | Adjust forward declaration.