summaryrefslogtreecommitdiffstats
path: root/searchlib
Commit message (Collapse)AuthorAgeFilesLines
* Creating the document metastore read guard is expensive and is not necessary ↵Henning Baldersheim2022-06-048-30/+46
| | | | | | | | to do for every imported attribute. We do it once per metastore and cache it in the ImportedAttributeContext. It would be even better if we could drop support for the default makeReadGuard(bool). Then we would also avoid copying the shared_ptr.
* Let ImportedAttributesRepo return a reference to a shared_ptr instead of a ↵Henning Baldersheim2022-06-032-6/+3
| | | | shared_ptr since that is all you need.
* Remove most use of vespalib::rmdir in searchlib.Tor Egge2022-06-0215-64/+59
|
* Use braces.Henning Baldersheim2022-06-021-2/+2
|
* - Optimize get_tensor_ref optimizing for no branches on happy path.Henning Baldersheim2022-06-014-35/+22
| | | | | - Also drop check for reference as that is done in the next called method. - Inline DirectTensorStore::get_tensor.
* Add an interface to getting an optional readonly singlevalue enumvector.Henning Baldersheim2022-06-018-44/+61
|
* Merge pull request #22842 from ↵Geir Storli2022-06-012-20/+1
|\ | | | | | | | | vespa-engine/toregge/drop-check-for-equiv-parent-in-disk-term-blueprint Drop check for equiv parent in disk term blueprint.
| * Drop check for equiv parent in disk term blueprint.Tor Egge2022-06-012-20/+1
| |
* | Don't calculate score or weights when unpacking for a term inTor Egge2022-06-0111-71/+245
|/ | | | a filter field or for a term not used by ranking.
* Avoid pulling in stringfmt.h in by moving code to .cpp file.Henning Baldersheim2022-05-311-0/+1
|
* Merge pull request #22809 from ↵Henning Baldersheim2022-05-318-10/+33
|\ | | | | | | | | vespa-engine/toregge/reduce-use-of-default-values-in-parameter-lists Reduce use of default values in parameter lists.
| * Reduce use of default values in parameter lists.Tor Egge2022-05-318-10/+33
| |
* | Fix forward declarations.Tor Egge2022-05-311-1/+1
|/
* Simplify AttributeVector by moving out ValueModifier, EnumModifier and BaseName.Henning Baldersheim2022-05-2724-165/+215
|
* GC unused includeHenning Baldersheim2022-05-271-1/+0
|
* Avoid using vespalib::Identifiable.Henning Baldersheim2022-05-2736-132/+72
|
* Inherit from vespalib::GrowStrategyHenning Baldersheim2022-05-2615-49/+27
|
* Use unique_ptr for Config in AttributeVectorHenning Baldersheim2022-05-2612-32/+58
|
* Include config in cpp file.Henning Baldersheim2022-05-262-4/+8
|
* Include searchcommon/attribut/config.h yourself and prepare for hiding large ↵Henning Baldersheim2022-05-2564-154/+290
| | | | | | implementation. Add setters to vespalib::GrowStrategy.
* Merge pull request #22729 from ↵Henning Baldersheim2022-05-257-12/+18
|\ | | | | | | | | vespa-engine/balder/introduce-concept-of-minimum-capacity - Introduce the concept of minimal capacity for rcu vectors.
| * - Introduce the concept of minimal capacity for rcu vectors.Henning Baldersheim2022-05-247-12/+18
| | | | | | | | | | - This is to prevent shrinking down past what has been configured in proton.documentdb[].allocation.initialnumdocs - shrinking down past the configured value is not supported as that would counter the preallocation done to prevent resizing.
* | try to avoid some int64 wrap-arounds (the simple ones)Håvard Pettersen2022-05-244-23/+26
|/ | | | also avoid nullptr deref
* Reduce inclusion of rcuvector.hppHenning Baldersheim2022-05-2312-18/+2
|
* - Stick to using GrowStragey everywhere.Henning Baldersheim2022-05-238-24/+9
| | | | - Store the full config in the rcu vector.
* Don't use brute force iterator if we have performed search in hnsw index.Tor Egge2022-05-231-1/+5
|
* Fold searchlib_uca into searchlibHenning Baldersheim2022-05-215-10/+5
|
* Fold fastlib into vespalib and gc some unused code.Henning Baldersheim2022-05-211-1/+0
| | | | Also move some code only used by juniper up into juniper test module.
* Merge pull request #22689 from vespa-engine/hakonhall/installjar-cmake-functionHåkon Hallingstad2022-05-201-1/+1
|\ | | | | install_jar CMake function
| * install_jar CMake functionHåkon Hallingstad2022-05-201-1/+1
| |
* | Fold searchcommon into searchlibHenning Baldersheim2022-05-2058-1/+4263
| |
* | Fold staging_vespalib into vespalibHenning Baldersheim2022-05-202-2/+1
| |
* | Avoid wraparound when calculating compacted size.Tor Egge2022-05-201-4/+6
| | | | | | | | | | Always flush active filechunk even when not compacting to it to ensure that lastSyncToken() >= sync token for any remove that affected the compaction.
* | Merge pull request #22669 from vespa-engine/havardpe/make-sample-count-atomicHåvard Pettersen2022-05-191-5/+7
|\ \ | |/ |/| make sample count atomic
| * make sample count atomicHåvard Pettersen2022-05-191-5/+7
| |
* | Hit collector array size should never be larger than doc id limit.Tor Egge2022-05-191-2/+2
|/
* Merge pull request #22640 from ↵Henning Baldersheim2022-05-181-1/+1
|\ | | | | | | | | vespa-engine/balder/move-from-staging-vespalib-too-vespalib Move state_server, metrivs and some all executors from staging_vespal…
| * Move state_server, metrivs and some all executors from staging_vespalib too ↵Henning Baldersheim2022-05-181-1/+1
| | | | | | | | vespalib.
* | Read committed doc id limit before getting reader bitvector fromTor Egge2022-05-181-2/+4
|/ | | | growable bitvector.
* Collapse persistencetypes into persistenceHenning Baldersheim2022-05-181-1/+0
|
* - Move persitence/spi/types.h under to persitence/spi/types.hHenning Baldersheim2022-05-182-7/+7
| | | | - Cut dependency to persistencetypes for searchlib.
* Check attribute vector posting list (btree vs bitvector).Tor Egge2022-05-161-18/+51
|
* Use gtest for posting list attribute unit test.Tor Egge2022-05-163-94/+136
|
* Use bitvector iterator if attribute term is not used by rankingTor Egge2022-05-132-19/+6
| | | | (i.e. unpack not needed).
* Merge pull request #22588 from ↵Henning Baldersheim2022-05-133-48/+120
|\ | | | | | | | | vespa-engine/havardpe/default-query-feature-tensor-value support default tensor values for query feature
| * support default tensor values for query featureHåvard Pettersen2022-05-133-48/+120
| |
* | Merge pull request #22593 from vespa-engine/havardpe/more-bitvector-atomic-usageHenning Baldersheim2022-05-133-31/+34
|\ \ | | | | | | use more atomic read/write for bitvectors
| * | use more atomic read/write for bitvectorsHåvard Pettersen2022-05-133-31/+34
| |/
* / use atomic minscore for wand heapHåvard Pettersen2022-05-131-3/+4
|/
* remove bitvector swap functionHåvard Pettersen2022-05-123-39/+0
| | | | | Also remove assignment operator for allocated bitvectors since it was not used.