Skip to content

Commit

Permalink
Merge pull request #61 from Senzing/caceres.limit-searches
Browse files Browse the repository at this point in the history
Adds parameter to limit search results for Senzing version 2.4.1 or later.
  • Loading branch information
barrycaceres authored Mar 12, 2021
2 parents f912e6b + 6c2ceda commit ab0fdd5
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [2.4.0] - 2021-03-11

### Changed in 2.4.0

- Added `includeOnly` query parameter to `GET /entities` endpoint.
- Modified `SzBaseResponse` to include four new fields to be included in the
meta section of each response:
- `nativeApiVersion`
- `nativeApiBuildNumber`
- `nativeApiBuildDate`
- `configCompatibilityVersion`
- Fixed definition of `SzFlaggedRecord` so `dataSource` is defined as a string

## [2.3.0] - 2020-11-18

### Changed in 2.3.0
Expand Down
53 changes: 51 additions & 2 deletions senzing-rest-api.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
title: Senzing REST API
version: "2.3.0"
version: "2.4.0"
description: >-
This is the Senzing REST API. It describes the REST interface
to Senzing API functions available via REST. It leverages the
Expand Down Expand Up @@ -1547,6 +1547,35 @@ paths:
"WORK_ADDR_CITY:Pasadena",
"WORK_ADDR_STATE:CA"
]
- name: includeOnly
description: >-
Optional parameter that can be specified zero or more times to
indicate which `SzAttributeSearchResultType`'s should be included
in the search results. If not specified then all match types are
included. *NOTE*: This parameter is ignored unless the underlying
native Senzing API is version 2.4.1 or later.
in: query
required: false
schema:
type: array
items:
$ref: '#/components/schemas/SzAttributeSearchResultType'
examples:
notSpecifiedExample:
summary: Not specified - include all search results
value:
includeOnlyMatches:
summary: Only include matches
value: [ "MATCH" ]
includeOnlyMatchesAndPossibleMatches:
summary: Only include matches and possible matches.
value: [ "MATCH", "POSSIBLE_MATCH" ]
includeAllButNameOnlyMatches:
summary: Include all but name-only matches.
value: [ "MATCH", "POSSIBLE_MATCH", "POSSIBLE_RELATION" ]
includeOnlyNameOnlyMatches:
summary: Only include name-only matches.
value: [ "NAME_ONLY_MATCH" ]
- $ref: '#/components/parameters/featureModeQueryParam'
- $ref: '#/components/parameters/withFeatureStatsQueryParam'
- $ref: '#/components/parameters/withInternalFeaturesQueryParam'
Expand Down Expand Up @@ -3489,6 +3518,15 @@ components:
type: string
restApiVersion:
type: string
nativeApiVersion:
type: string
nativeApiBuildNumber:
type: string
nativeApiBuildDate:
type: string
format: date-time
configCompatibilityVersion:
type: string
timings:
description: >-
The timing measurements that were taken where the keys are
Expand Down Expand Up @@ -4239,6 +4277,7 @@ components:
dataSource:
description: >-
The data source code associated with the sample record.
type: string
type: string
recordId:
description: >-
Expand Down Expand Up @@ -4789,7 +4828,17 @@ components:
description: >-
Describes how the entity matching the search attributes would have
entity resolved against those attributes (either a match, possible
match, discovered relationship or name only match).
match, discovered relationship or name only match). The possible values
are:
* `MATCH` - The search criteria matches the entity and would resolve
against it.
* `POSSIBLE_MATCH` - The search criteria comes close to matching the
entity but not close enough that it would resolve against it.
* `POSSIBLE_RELATION` - The search criteria would not match against
the entity but some features are the same and relate them.
* `NAME_ONLY_MATCH` - The search criteria matches the entity in name
only which is not strong enough for a relationship, but provides
for a weak search match.
type: string
enum:
- MATCH
Expand Down

0 comments on commit ab0fdd5

Please sign in to comment.