aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/select
Commit message (Collapse)AuthorAgeFilesLines
* Wire fuzzy prefix matching support through the query stackTor Brede Vekterli2024-04-191-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds `prefix:[true|false]` annotation support to the `fuzzy` query operator in the YQL and JSON query languages. Fuzzy prefix matching semantics are wired through to the matcher implementations for both indexed and streaming search. Example usage: {maxEditDistance:1,prefix:true}fuzzy("foo") Will match `foo`, `foobar`, `foxtrot`, `zookeeper` and so on. It can be combined with the existing prefix locking feature: {maxEditDistance:1,prefixLength:2,prefix:true}fuzzy("foo") Which will match `foo`, `foobar`, `foxtrot` etc, but _not_ `zookeeper` since the locked prefix (`fo`) does not match. Due to the complexities involved with extending the legacy binary query stack representation, signalling prefix matching for the fuzzy term is done by pragmatically adding a new, generic "prefix matching" term-level flag. This is currently ignored for everything except fuzzy query items. Modernizing the query stack format to make it more extensible (i.e. move encoding to Protobuf) is on the backlog...!
* Move Jackson util from vespajlib to container-core.Henning Baldersheim2023-11-241-1/+1
|
* jackson 2.16 changes some of its default settings so we consolidate our use ↵Henning Baldersheim2023-11-231-1/+2
| | | | | | of the ObjectMapper. Unless special options are used, use a common instance, or create via factory metod.
* Update copyrightJon Bratseth2023-10-091-1/+1
|
* Move to SchemaInfoJon Bratseth2023-06-121-3/+2
| | | | | | | Add the missing constructs to SchemaInfo to be able to use it in place of IndexFacts for validation, and rewrite QueryValidator to use it. The new validation (for prefix search on indexes) is disabled until this is verified, so this should be a no-op.
* Dealias nn fieldsJon Bratseth2023-01-271-1/+0
|
* Convert container-search to junit5Bjørn Christian Seime2022-07-281-106/+99
|
* Revert "Merge pull request #23040 from ↵Jon Bratseth2022-06-101-2/+2
| | | | | | | vespa-engine/revert-23039-bratseth/weakand-by-default-take-2" This reverts commit 4b3adbb89f52bb20f2f220fcf1480673cae0881d, reversing changes made to d204179b218af2fdf4b251ede3a465ffabbf6557.
* Revert "Bratseth/weakand by default take 2"Harald Musum2022-06-091-2/+2
|
* Revert "Merge pull request #23036 from ↵Jon Bratseth2022-06-091-2/+2
| | | | | | | vespa-engine/revert-23032-bratseth/weakand-by-default" This reverts commit 1b00635b293901abaef45aca022647c01e840b6b, reversing changes made to 0fd0ba6d04f642095e35ff828e6d7ee334a4bdb8.
* Revert "Change user query default from ALL to WEAKAND on Vespa 8"Håkon Hallingstad2022-06-091-2/+2
|
* Change user query default from ALL to WEAKAND on Vespa 8Jon Bratseth2022-06-091-2/+2
|
* Remove on Vespa 8Jon Bratseth2022-06-081-2/+1
|
* Addressing comments + fixing testAlexey Chernyshev2022-03-231-2/+6
|
* Introducing fuzzy searchAlexey Chernyshev2022-03-231-0/+6
|
* Allow unquoted annotationsJon Bratseth2021-12-201-1/+1
|
* Update 2018 copyright notices.gjoranv2021-10-071-1/+1
|
* Change WAND to WEAKAND in debug output formatJon Bratseth2021-04-141-3/+3
|
* Deprecate score-thresholdJon Bratseth2021-02-081-0/+1
|
* No functional changesJon Bratseth2021-02-031-0/+32
|
* Remove usage of org.jsonBjørn Christian Seime2021-02-021-97/+99
|
* Revert "Remove org.json usage [run-systemtest]"Bjørn Christian Seime2021-02-011-99/+97
|
* Remove usage of org.json:jsonBjørn Christian Seime2021-01-291-97/+99
| | | | | | | | Remove most usage of org.json:json Maven artifact. This library does not have a compatible license. Some usage is still left as it's part of our container-search public API. We'll need a major release to fix that. See https://github.com/vespa-engine/vespa/issues/14762 for more details.
* add distanceThreshold option for nearestNeighbor operatorArne Juul2021-01-081-3/+3
|
* Skip logging only for IllegalInputExceptionJon Bratseth2020-08-181-7/+10
| | | | | | | | | | | | | | - Add IllegalInputException to signal cases where we know the exception is caused by illegal input received from the requestor. - Only skip logging for IllegalInputException instead of the superclass IllegalArgumentException as that is also used to signal illegal arguments to methods due to bugs which are otherwise hard to debug. - Throw IllegalInputException rather than IllegalArgumentException where appropriate. - Deprecated QueryException as it was only used to be able to separate between query string and query parameter exceptions, and not doing that consistently, and is in a package we don't want more use of. - Clean up some cases where the wrong exception was thrown.
* refactor and require unit for distanceArne Juul2020-07-151-2/+2
|
* test geoLocation parsing and generationArne Juul2020-07-151-0/+12
|
* extend unit test and fix bug found by itArne Juul2020-06-191-0/+9
|
* update SelectParser and add targetHitsArne Juul2020-06-191-2/+2
| | | | | | | | | | * targetHits is now the preferred annotation replacing targetNumHits (for wand,weakand,nearestneighbor), the old name still works as an alias * note: targetNumHits is still produced when serializing to YQL * debugging/trace output will print the "targetHits" form * add nearestNeighborItem support to SelectParser * implement disclose() in nearestNeighborItem
* Copy the grouping expression stringJon Bratseth2020-04-011-0/+8
|
* Add a testJon Bratseth2020-01-271-0/+7
|
* Better select grouping parsingJon Bratseth2020-01-221-2/+7
|
* YQL parsing/serialization improvementsJon Bratseth2019-11-071-2/+2
| | | | | | - Serialize annotated range and weightedset with bracing - Parse Infinity in ranges - Better error messages in range parsing
* Parse boolean comparisonsJon Bratseth2019-04-011-0/+6
|
* Improve error messagesJon Bratseth2018-11-061-1/+1
|
* Revert "Merge pull request #6582 from ↵Jon Bratseth2018-08-151-42/+56
| | | | | | | vespa-engine/revert-6557-revert-6553-revert-6512-henrhoi/object-structured-grouping" This reverts commit 506ea9c1367748ddd4ff20203fc13211d635f5a6, reversing changes made to 4f6b34dcf9ad904f0ddb89eb506f5920360d5344.
* Revert "Revert "Revert "Added a object structure for GroupingRequest ↵Henning Baldersheim2018-08-151-56/+42
| | | | objects, accessable from…"""
* Fix Select and grouping bugsJon Bratseth2018-08-141-38/+54
| | | | | | | | | | - Deep copy the grouping structure on query copy. It is mutable but we have neglected doing this right until now. - Fix a bug in the previous commit where the last constructed Query.Model was shared between all instances. - Fix a bug in the previous commit where the query string instead of the query tree was reset when a new select expression is set. - Don't use deprecated method. - Clean up Javadoc and formatting.
* Revert "Revert "Added a object structure for GroupingRequest objects, ↵Jon Bratseth2018-08-131-4/+2
| | | | accessable from…""
* Revert "Added a object structure for GroupingRequest objects, accessable ↵Henning Baldersheim2018-08-101-2/+4
| | | | from…"
* Added a object structure for GroupingRequest objects, accessable from ↵Henrik2018-08-071-4/+2
| | | | query.getSelect().getGrouping()
* Changes from review.Henrik2018-08-071-0/+31
|
* Added parsing of multiple pipesHenrik2018-08-061-0/+10
|
* Added parsing of Grouping from JSON to String. Now parsing ↵Henrik2018-08-021-8/+23
| | | | grouping-parameter and setting the query's groupingrequest when parameter is present
* SelectParser now handles ''all'' testcases from YQLParserTestCase. Class may ↵Henrik2018-08-021-39/+358
| | | | need some cleaning and removal of unuses code
* Created new parameter SELECT with subparameters WHERE and GROUPING. Started ↵Henrik2018-08-021-0/+404
on a SelectParser which will parse the SELECT parameters to a QueryTree. Also added a new type for queryies 'SELECT', and will now use the SelectParser when getting the QueryTree. Started on testing the same testcases as in YQLParser, looks promising.