summaryrefslogtreecommitdiffstats
path: root/searchlib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #12118 from vespa-engine/arnej/add-remove-to-hnsw-indexGeir Storli2020-02-074-2/+68
|\ | | | | implement remove_document
| * implement remove_documentArne Juul2020-02-074-2/+68
| |
* | std::move and = default.Henning Baldersheim2020-02-072-7/+4
| |
* | Use std::make_shared and std::moveHenning Baldersheim2020-02-077-84/+73
|/
* Merge pull request #12097 from ↵Geir Storli2020-02-073-19/+17
|\ | | | | | | | | vespa-engine/geirst/atomic-entry-ref-in-hnsw-index Implement wrapper for std::atomic of type EntryRef and use it in hnsw…
| * Implement wrapper for std::atomic of type EntryRef and use it in hnsw index ↵Geir Storli2020-02-063-19/+17
| | | | | | | | to get snapshotting of level arrays.
* | Handle lookup in singlevalue byte attributes efficiently too.Henning Baldersheim2020-02-061-0/+1
|/
* Store entry level as an int to simplify add_document() function.Geir Storli2020-02-063-4/+4
|
* Add support for adding a new document in multiple levels in the graph.Geir Storli2020-02-066-38/+118
|
* Add interface used to randomly draw the max level a new hnsw node should ↵Geir Storli2020-02-057-9/+43
| | | | exist in.
* Add function to array store that returns a writeable reference to an array.Geir Storli2020-02-052-6/+6
|
* Implement a select neighbor function that uses a heuristic the accounts for ↵Geir Storli2020-02-055-16/+154
| | | | distances between candidates.
* Merge pull request #12063 from vespa-engine/geirst/hnsw-index-skeletonArne H Juul2020-02-0412-0/+614
|\ | | | | Implement skeleton of a HNSW index on top of data stores.
| * Implement skeleton of a HNSW index on top of data stores.Geir Storli2020-02-0412-0/+614
| | | | | | | | Currently only supports adding documents to layer 0 with simple strategy for selecting neighbors.
* | 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
| |