Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Single binary for proton common tests. | Henning Baldersheim | 3 days | 1 | -7/+2 |
| | |||||
* | remove TEST_APPHOOK, TEST_INIT, TEST_DONE and TestApp | Håvard Pettersen | 4 days | 1 | -1/+1 |
| | |||||
* | Use attributes when evaluating selection expression on full documents | Tor Brede Vekterli | 2024-03-12 | 1 | -67/+106 |
| | | | | | | | | | | | | | | | | | | | | | | | | | This addresses an unintended shortcoming in our handling of imported fields, as these are exposed _only_ through attributes. Document selection evaluation is automatically optimized in the backend by pre-filtering documents that can be fully evaluated by exclusively looking at attribute values (this goes for both selection matching and mismatching). This is done by cloning the selection AST and replacing all applicable field value nodes with corresponding attribute references. However, if a document _cannot_ be evaluated from attributes alone, we fall back to reading it fully from the doc store, after which the original selection is evaluated on it. This is the crux of the problem, and prior to this commit an expression using both an imported field and a non-attribute field would fail to be evaluated since the full document evaluation would not have any knowledge of the attribute. This commit makes it so that also the full document evaluation will use a "patched" AST with all possible field references replaced with attribute lookups. Since we reuse an existing patched AST that was not otherwise used in this code path, there is no added overhead with this approach. | ||||
* | Update copyright | Jon Bratseth | 2023-10-09 | 1 | -1/+1 |
| | |||||
* | Modernize C++ code. | Geir Storli | 2023-08-29 | 1 | -1/+1 |
| | |||||
* | Use explicit instantiations of SingleValueNumericPostingAttribute | Tor Egge | 2023-03-24 | 1 | -1/+0 |
| | | | | and SingleValueStringPostingAttributeT. | ||||
* | Reduce creation of Document instances without DocumentTypeRepo. | Geir Storli | 2023-03-13 | 1 | -2/+2 |
| | |||||
* | Change from typedef to using in searchcore. | Geir Storli | 2022-12-21 | 1 | -4/+4 |
| | |||||
* | Remove 'attribute: huge' from config def file and C++ code. | Geir Storli | 2022-06-08 | 1 | -1/+1 |
| | |||||
* | Remove unneeded include statements in searchlib. | Tor Egge | 2022-04-07 | 1 | -2/+0 |
| | |||||
* | Remove inlining warnings (searchcore). | Tor Egge | 2022-02-26 | 1 | -0/+2 |
| | |||||
* | more descriptive name for header file | Arne H Juul | 2021-12-02 | 1 | -1/+1 |
| | |||||
* | track namespace move in documenttypes.def | Arne H Juul | 2021-12-02 | 1 | -0/+1 |
| | | | | | | | * For C++ code this introduces a "document::config" namespace, which will sometimes conflict with the global "config" namespace. * Move all forward-declarations of the types DocumenttypesConfig and DocumenttypesConfigBuilder to a common header file. | ||||
* | Update 2017 copyright notices. | gjoranv | 2021-10-07 | 1 | -1/+1 |
| | |||||
* | Explicitly instantiate common attribute update member functions. | Tor Egge | 2020-10-05 | 1 | -1/+1 |
| | |||||
* | Revert "Revert "Balder/remove steadytimestamp 2"" | Henning Baldersheim | 2019-12-16 | 1 | -3/+3 |
| | |||||
* | Revert "Balder/remove steadytimestamp 2" | Henning Baldersheim | 2019-12-16 | 1 | -3/+3 |
| | |||||
* | Use std::chrono. | Henning Baldersheim | 2019-12-09 | 1 | -3/+3 |
| | |||||
* | Address comment by specifying timeunit in the type. | Henning Baldersheim | 2019-11-20 | 1 | -6/+3 |
| | |||||
* | Add typesafe SteadyTimeStamp. | Henning Baldersheim | 2019-11-15 | 1 | -1/+0 |
| | |||||
* | Use a steady_clock for the stop watch. | Henning Baldersheim | 2019-11-15 | 1 | -1/+1 |
| | |||||
* | doc: -> id: | Henning Baldersheim | 2019-08-16 | 1 | -11/+11 |
| | |||||
* | Make tests less verbose when verifying stats. | Geir Storli | 2018-05-15 | 1 | -110/+16 |
| | |||||
* | Add pre-document selection than can disqualify a document without retrieving ↵ | Geir Storli | 2018-05-15 | 1 | -38/+134 |
| | | | | | | | it from the document store. This selection can be used when expression references at least one single value attribute field and we can disqualify the document if the selection evaluates to false. | ||||
* | Make member variables in CachedSelect private. | Geir Storli | 2018-05-11 | 1 | -133/+133 |
| | |||||
* | Change AttributeContext to use makeReadGuard method on attribute vectors. | Tor Egge | 2018-04-20 | 1 | -1/+0 |
| | |||||
* | Remove DocumentTypeRepo::UP typedef. | Tor Egge | 2018-04-05 | 1 | -4/+4 |
| | | | | Remove unneeded includes. | ||||
* | Update copyright headers | Jon Bratseth | 2017-06-14 | 1 | -1/+1 |
| | |||||
* | Revert "Update copyright headers" | Jon Bratseth | 2017-06-14 | 1 | -1/+1 |
| | |||||
* | Update copyright headers | Jon Bratseth | 2017-06-14 | 1 | -1/+1 |
| | |||||
* | Revert "Copyright header" | Jon Bratseth | 2017-06-13 | 1 | -1/+1 |
| | |||||
* | Copyright header | Jon Bratseth | 2017-06-13 | 1 | -1/+1 |
| | |||||
* | Forward declare DocumentType. | Henning Baldersheim | 2017-06-06 | 1 | -0/+1 |
| | |||||
* | C++ style fix: Use foo() instead of foo(void) | Tor Egge | 2017-05-24 | 1 | -6/+6 |
| | |||||
* | Merge pull request #2177 from yahoo/toregge/add-index-aspect-inspector | Geir Storli | 2017-04-19 | 1 | -24/+11 |
|\ | | | | | Toregge/add index aspect inspector | ||||
| * | Stop passing schema to CachedSelect, passing attribute manager is sufficient. | Tor Egge | 2017-04-18 | 1 | -24/+11 |
| | | |||||
* | | add override in searchcore module | Arne H Juul | 2017-04-12 | 1 | -1/+1 |
|/ | |||||
* | Change schema::DataType and schema::CollectionType to enum class. | Geir Storli | 2017-04-05 | 1 | -25/+26 |
| | |||||
* | Make ComponentGuard::get() return a pointer, not a reference | Tor Brede Vekterli | 2017-02-27 | 1 | -1/+1 |
| | | | | With this change, ComponentGuard behaves like other smart handles | ||||
* | Add mock implementation of attribute manager. | Geir Storli | 2017-02-20 | 1 | -61/+13 |
| | |||||
* | Decouple includes. | Henning Baldersheim | 2016-12-16 | 1 | -3/+3 |
| | |||||
* | Use schema::DataType | Henning Baldersheim | 2016-12-12 | 1 | -8/+6 |
| | |||||
* | Publish | Jon Bratseth | 2016-06-15 | 1 | -0/+710 |