Commit Graph

36 Commits

Author SHA1 Message Date
Alexander Dorokhine
0f7f36d29a Update framework from jetpack.
Included changes:
* d953a83b: Minor Migration update to apply API Review feedback
* b5b73db0: Expand Javadoc around Tokenization
* 45ac5ac2: Make GenericDocument.Builder reusable.
* 6d55d6d6: Logging stats for remove (2)

Bug: 187419874
Bug: 184174886
Bug: 184575874
Bug: 173532925
Test: Presubmit
Change-Id: Id6509e939e9038e5ec56bde610e4af902888b9d6
2021-05-20 14:24:50 -07:00
Anton Hansson
eaf26d5a41 Update API txt following a metalava fix
The txt was previously referencing VcnGatewayConnectionConfig.MIN_MTU_V6
which isn't part of the API. The API txt should be complete on its own,
so inline the value instead.

Similar case for appsearch annotations referencing non-API values.

Bug: 188527836
Test: m checkapi
Change-Id: Ideb34ab78c9a8fc4d589e58e810316b6f36b7a43
2021-05-20 11:14:05 +01:00
Alexander Dorokhine
a6d8d8e66c Update framework from jetpack
Included changes:
* b692f37: Rename `Int64` in annotation processor to `Long`.
* 05fe08c: Get QueryLength from Native
* 8f46606: Logging stats for remove (1)
* 237c134: Alter inheritance of LongProperty for backwards compatibility.

Bug: 187820569
Bug: 173532925
Bug: 173532925
Bug: 187820569
Test: Presubmit
Change-Id: Ia27e00250e7aa7c7a1acc974f24c63cc456739be
2021-05-17 15:13:40 -07:00
Alexander Dorokhine
7de178b090 Delete deprecated methods after dogfood transition.
Bug: 181887768
Test: Presubmit
Change-Id: I729f6cc0acb15cfc78b4c39be165d72443c26879
2021-05-10 23:20:10 -07:00
Alexander Dorokhine
45bb21c98d Update Framework from Jetpack.
Included changes:
* 4c1b251: Sync AppSearch with google3 update ag/14342999 (8f8b43)
* cdf1913: Add a GenericDocument#toBuilder API.
* 64f80f3: Improve snippeting and matching per API feedback.
* 23dd35c: Move AppSearchEmail out of the prod tree into the test utils.

Bug: 171882200
Bug: 186520196
Bug: 186717514
Test: Presubmit
Change-Id: I9d8e1fb87e6e74c57a38f3a27cdd04a1a3ccf90b
2021-04-29 18:00:32 -07:00
Alexander Dorokhine
ca083d96de Update framework from jetpack.
Included changes:
* b7122be: Update Builders to comply with API council requirements.
* 60b34cd: Changes to AppSearchSchema builders to comply with API requirements.
* c6f7eee: Support property paths in GenericDocument.
* cbee331: Update documentation to distinguish between AppSearchSession and GlobalSearchSession
* cbdd3b9: Rename ReportUsage#usageTimeMillis to #usageTimestampMillis.
* cc09d3a: Implement value indices in GenericDocument.
* e7faa03: Rename isIndexNestedProperties to shouldIndexNestedProperties.
* aaa6e81: Support @CurrentTimeMillisLong in export.
* 388c2b4: Rename GenericDocument's "uri" to "id" everywhere.

Bug: 184576792
Bug: 184576806
Bug: 184174844
Bug: 180481315
Bug: 179797058
Bug: 175146044
Bug: 184175636
Bug: 185492298
Test: Presubmit
Change-Id: I81e396c1d4770479654a3a69ea598e23de88ac9a
2021-04-21 11:23:09 -07:00
Alexander Dorokhine
65c4fd881e Remove deprecated methods from AppSearch APIs.
These methods were only available for dogfooder transition.
None of these methods shipped in a stable SDK.

Bug: 181887768
Bug: 183395357
Test: Build, presubmit
Change-Id: I74feebd2721208c97475df9b74f734a17a41d5e2
2021-03-24 22:14:38 -07:00
Alexander Dorokhine
ff9b4dfc5e Add another executor to setSchema() for running framework migrations.
The advice to add a second executor is based on API council guidance,
who do not recommend reusing the callback executor.

The executor is not yet used but will be used once schema migration is
implemented in framework.

Bug: 183177268
Test: Builds
Change-Id: Ic6735e696bc868884adffddd1433a198a005cad6
2021-03-24 01:57:45 -07:00
Alexander Dorokhine
ffb44f506f Update framework from jetpack.
Changes included:
* 4d36ab: Rename AppSearchSession in test message to avoid export bug.
* 0b2126: Update AppSearch to be in sync google3 update ag/13878956.
* e79e74: Add getRankingSignal method to SearchResult.
* 2c2383: Add a getNamespaces() API.
* 712009: Add getStorageInfo API.
* 81e601: Add resut grouping flags and limits.
* f23105: Support usage reporting by the system in AppSearchImpl.
* 05b7d3: Change schema version from per AppSearchSchema to overall.
* effe02: Support schema migration to another type.
* a0db44: Some minor fix for GetSchemaResponse
* 66a1c3: Support AppSearchResult to convert a failure result to another type.

Bug: 177266929
Bug: 182620003
Bug: 183031844
Bug: 180429302
Bug: 182909475
Bug: 179160886
Bug: 183042276
Bug: 181179404
Test: Presubmit
Change-Id: I091b25a78093d0c8c193903a58122d09788e31ff
2021-03-23 22:06:59 -07:00
Alexander Dorokhine
bda2ada6da Update Framework from Jetpack.
Changes included:
* 517c1ee: Schema Migration API updates to match API council recommendations.
* 407144d: Refactor some migration helper methods to Utils class.
* 2297b3a: Add a test for migrate to a nonexistent schema.
* 16a38d0: Log the PutDocumentStats in AppSearchImpl

Bug: 178060626
Bug: 179804862
Bug: 173532925
Test: Presubmit
Change-Id: I8b879bc9a5f30f9be3ce08d07dc60f4b177fb11b
2021-03-16 23:57:49 -07:00
Alexander Dorokhine
61897f07b2 Merge "Update Framework from Jetpack." into sc-dev 2021-03-15 23:02:25 +00:00
Alexander Dorokhine
64bc77cfec Merge "Update platform from Jetpack." into sc-dev 2021-03-15 23:02:02 +00:00
Alexander Dorokhine
c153efec4f Update Framework from Jetpack.
Included changes:
* b7eb43a: Require a namespace across APIs.
* 4e92597: Require databaseName when creating session.

Bug: 180460765
Bug: 181364730
Test: Presubmit

Change-Id: I22a0f4a2bd38d9b2e4e70258184800d281e579f1
2021-03-14 10:00:06 +00:00
Cassie Wang
1c2fa255b6 Require database name when creating session.
Deprecates the old constructor and setDatabaseName.

Bug: 180460765
Test: presubmit
Change-Id: I927159e39006c8c6ee6b89aed43245d62252f651
2021-03-12 13:03:17 -08:00
Alexander Dorokhine
c02dcf75f4 Update platform from Jetpack.
Included changes:
* b2c0825: Unhide builders for AppSearch objects to facilitate testing.
* dde789a: Expose Builders for SearchResult and MatchInfo.

Bug: 180143983
Bug: 177954902
Test: Presubmit

Change-Id: I3307cb5fd52b99bcbd72216bb4afbc7b58dd8650
2021-03-12 20:14:46 +00:00
Alexander Dorokhine
73fb4da96d Update Framework from Jetpack.
Included changes:
* 509ebe: Rename getSchemasNotVisibleToSystemUi to setSchemaTypeDisplayedBySystem
* a532fe: Resolve merge conflicts from upstream sync.

Bug: 179143575
Bug: 175146044
Bug: 179160886
Bug: 175255572
Bug: 181887768
Test: Presubmit

Change-Id: I977baf47f6188e4c182a5cf96af4873d0e5284e0
2021-03-05 22:01:32 +00:00
Alexander Dorokhine
ad71d8301a Move Executor parameter into SearchResult#getNextPage.
Bug: 180460795
Test: AppSearchSessionCtsTest
Change-Id: Iaf8ef970222801bf097a6b83643909d48ad44844
2021-02-25 13:05:25 -08:00
Alexander Dorokhine
67ebdec552 API updates to match API council recommendations.
Bug: 175763859
Test: Presubmit
Change-Id: If51b4456520cca6c781eec6c8f9467f730edd110
2021-02-16 18:17:47 -08:00
Alexander Dorokhine
158ffacc06 Update framework from Jetpack.
Included changes:
* 0532abb: Rename DataClassFactory to DocumentClassFactory.
* c44176d: Update Get and Remove request objects with API council feedback.
* 1910709: Remove all remaining references to 'data class'.
* f8a5243: Fix a potential bug in BundleUtil.deepHashCode() if iteration order changes.
* 3b50162: Remove redundant logic for sorting keys.
* 2964d35: Revert "Remove redundant logic for sorting keys."

Bug: 171340471
Bug: 175763859
Bug: 178741022
Test: Presubmit
Change-Id: I5c2ec332d0f0e07913ffcec9e2dc1ef9634b33da
2021-02-03 11:19:59 -08:00
Alexander Dorokhine
dcbf7708d5 Update framework from Jetpack.
Changes included:
* 081c412: Remove spam logs from GenericDocumentToPlatformConverter.
* 69df01d: Fix an issue with nested documents after serialization.
* 0197939: Update Jetpack API usages to build against the latest SDK.
* 843f415: Rename @AppSearchDocument to @Document.
* 37adb0f: Update docs around database name.
* 19383f8: Apply naming changes to AppSearchSession and GlobalSearchSession.
* 8359c2b: Update SetSchemaRequest to comply with API council requirements.
* 4b04aba: Update PutDocumentsRequest APIs to align with API council guidance.
* 3c8ebfb: Update SearchSpec APIs to match API council recommendations.

Bug: 174614009
Bug: 178540467
Bug: 175763859
Bug: 171340471
Test: Presubmit
Change-Id: I4649ffe1d1c94b0c6125943772d33c6fb38d0006
2021-01-29 10:32:32 -08:00
Terry Wang
cb362c021f Sync AppSearch from framework.
Included changes:
* 9d1cf52: Supports schema migration in AppSearch
* 1c55f12: Change AppSearch setSchema() to return a SetSchemaRsponse.
* 9d94171: Unhide AppSearchMigrationHelper, Transformer and
           SetSchemaResponse.
* f07132f: add maybeFlush to AppSearchSession.

Bug: 169883602
Bug: 173742929
Test: Presubmit

Change-Id: I9e70ed04014ae3d134defb93c5cb02a5def0c71e
2021-01-21 21:16:04 -08:00
Alexander Dorokhine
17e406e2fd Sync AppSearch from framework.
Contains changes:
* 37a4e9: Split indexing configs into per-type configs.
* 69d6e3: Add projection to the Get api.

Bug: 175039682
Bug: 177572431
Bug: 171857731
Test: Presubmit

Change-Id: Ida457b2d617be6e85557023bfb4716ad78c8db6c
2021-01-20 15:41:25 -08:00
Alexander Dorokhine
3311711b82 Sync AppSearch from framework.
Contains changes:
* 91ce28: Properly check permissions for globalQuery.
* 5663cb: Add cts tests for projection wildcard.
* 0c3732: Add cts test for RELEVANCE_SCORE.
* 79beac: Implement the usage reporting API.
* 7d3c33:  Add Version number to AppSearchSchema

Bug: 169883602
Bug: 175039682
Bug: 174698212
Bug: 177278213
Bug: 177266929
Test: Presubmit
Change-Id: Ia9b59e9957e6022d9b6f4ef82b9d0198952afa30
2021-01-20 15:26:13 -08:00
Alexander Dorokhine
0310d7c128 Make GlobalSearchSession public.
This API is needed for 3p global query access.

Bug: 169883602
Test: N/A
Change-Id: Id5fc056caabab83127a594c0f43c77b6c63f28bf
2021-01-15 22:41:22 -08:00
Terry Wang
966057a8cc Sync Framework from Jetpack
Included changes:
* 01f349b: unhide AppSearchSession.close() by extends Closeable
* 7cb0c4e: Add Closeable to GlobalSearchSession.

Bug: 175637134, 176852483
Test: presubmit
Relnote: Added Closeable to AppSearchSession and GlobalSearchSession.
Change-Id: Ia0929f70942ba6d57712cfc97b332efb8628c416
2021-01-15 13:31:55 -08:00
Alexander Dorokhine
747a1e67c1 Update Framework from Jetpack.
Included changes:
* b5a5eb: Make Projection APIs functional.
* 7ce5da: Persist package accessible visibility settings.
* b69a9b: Add package name filters to SearchSpec.
* e723de: Unhide SearchResult.getPackageName.
* 67a584: More verbose AppSearchResult error messages.
* c1b9db: Update builder methods to accept subclasses
* 1c5ae0: Unhide package name filters on SearchSpec.
* 8aa2b8: Make PackageIdentifier bundle-based.

Bug: 175039682
Bug: 169883602
Bug: 175747439
Bug: 174876269
Bug: 171914169
Bug: 175794710
Test: Presubmit
Change-Id: Ia54d51156774e09ed1f0694bd61bc8c25fb63810
2021-01-11 21:00:00 -08:00
Alexander Dorokhine
98abb2ec3a Unhide APIs in Framework that were already unhidden in Jetpack.
Bug: 169883602
Test: GlobalSearchSessionCtsTest
Change-Id: Ib004de00c078e066d8a9acd2355bcb5fe2859b62
2021-01-07 21:23:53 -08:00
Alexander Dorokhine
7749895904 Unhide AppSearchManager APIs.
Bug: 172180369
CTS-Coverage-Bug: 175661706
Test: AppSearchCtsTests
Change-Id: I3a17ec73708226ef7894ab894a8327ee2a6973d3
2020-12-14 23:43:41 -08:00
Alexander Dorokhine
fbe21fe661 Unhide GlobalSearchSession API.
Bug: 172180369
CTS-Coverage-Bug: 175661706
Test: AppSearchManagerTest
Change-Id: Ie460dbbb226fd50cbbeb89c7d41e45cdf1bd66ca
2020-12-14 23:43:15 -08:00
Alexander Dorokhine
b0bb379e10 Unhide AppSearchSession APIs.
Bug: 172180369
CTS-Coverage-Bug: 175661706
Test: AppSearchCtsTests
Change-Id: Ia00206ec4bbe78cc0c970fb2f0c708740a3078af
2020-12-14 23:42:48 -08:00
Alexander Dorokhine
ff92588fd4 Unhide AppSearchResult and AppSearchBatchResult objects.
Bug: 172180369
CTS-Coverage-Bug: 152547059
Test: AppSearchManagerTest
Change-Id: Ifcbae5934d5403cd81b546202fed3c0d951321c8
2020-12-02 17:24:49 -08:00
Alexander Dorokhine
db8173e4c8 Unhide Request objects.
Bug: 172180369
CTS-Coverage-Bug: 152547059
Test: AppSearchManagerTest
Change-Id: I54b0b5d3159c5d0b66b7762200f830e74f0fc08c
2020-12-02 17:24:24 -08:00
Alexander Dorokhine
d6dcb74f74 Unhide SearchResult and SearchSpec APIs.
Bug: 157082794
CTS-Coverage-Bug: 152547059
Test: AppSearchManagerTest
Change-Id: I34d83b4f5f893838ee9c24a710a6485d318e8492
2020-11-20 22:18:20 -08:00
Alexander Dorokhine
f13a62ae2e Unhide GenericDocument API.
Bug: 157082794
CTS-Coverage-Bug: 152547059
Test: AppSearchManagerTest
Change-Id: I761cfb63acf61ca8de1873d5ff1b8aec2f7df19b
2020-11-20 22:03:29 -08:00
Alexander Dorokhine
183bac1a30 Unhide the AppSearchSchema API.
Bug: 172180369
CTS-Coverage-Bug: 152547059
Test: Presubmit
Change-Id: I782dd3174f553faa62e88f5583ff7b2f39ecd815
2020-11-20 22:03:20 -08:00
Anton Hansson
25a0a2baa7 Convert appsearch to java_sdk_library
AppSearch build file only defined a subset of the stubs and api
tracking, which prevents making progress on creating a correct "merged"
current.txt. Convert it to the standard build setup modules should use.

Implementation wise, this is a little bit special in that it's somewhere
between a module and not. The implementation library requires platform
internals to compile. The stubs do not, and we rely on this to make
the build work at all -- via impl_only_libs we compile the stubs
*without* framework-minus-apex, which allows framework-minus-apex to
depend on the stubs.

Bug: 169304493
Test: m checkapi
Change-Id: I10a331bb6df56072cb9e9ada99ae47c5446869fd
2020-10-08 15:33:17 +01:00