feat: Added public preview support for full-text search and geo search in Pipelines.#2346
feat: Added public preview support for full-text search and geo search in Pipelines.#2346MarkDuckworth wants to merge 17 commits intomainfrom
Conversation
google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/stages/Search.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/google/cloud/firestore/pipeline/expressions/BooleanFunctionExpression.java
Show resolved
Hide resolved
...estore/src/main/java/com/google/cloud/firestore/pipeline/expressions/FunctionExpression.java
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITPipelineSearchTest.java
Outdated
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITPipelineSearchTest.java
Outdated
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITPipelineSearchTest.java
Outdated
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITPipelineSearchTest.java
Outdated
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITPipelineSearchTest.java
Outdated
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITPipelineSearchTest.java
Outdated
Show resolved
Hide resolved
google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITPipelineSearchTest.java
Outdated
Show resolved
Hide resolved
…e this is untested for general cosumption
…estore into markduckworth/search
| * @param rquery Define the search query using the search domain-specific language (DSL). | ||
| * @return A new {@link Expression} representing the snippet operation. | ||
| */ | ||
| @BetaApi |
There was a problem hiding this comment.
I need to make this internal because it will not be supported at launch
| public static final QueryEnhancement REQUIRED = new QueryEnhancement("required"); | ||
|
|
||
| /** Search will use the un-enhanced, user provided query. */ | ||
| public static final QueryEnhancement DISABLED = new QueryEnhancement("disabled"); |
There was a problem hiding this comment.
can you let me know what is the reason for not using standard enum like this:
public enum QueryEnhancement {
PREFERRED("preferred"),
REQUIRED("required"),
DISABLED("disabled");
}
I checked the other place like ReplaceWith, and looks like they use standard enum
| // Disable priming as it uses Watch/Listen | ||
| } | ||
|
|
||
| @Before |
There was a problem hiding this comment.
Should we use @BeforeClass so that it only run once for the whole test suite?
| getFirestoreEdition().equals(FirestoreEdition.ENTERPRISE) | ||
| && "NIGHTLY".equalsIgnoreCase(getTargetBackend())); | ||
|
|
||
| restaurantsCollection = firestore.collection(COLLECTION_NAME); |
There was a problem hiding this comment.
Android has the step which deletes data, should we do the same in Java?
https://cs.opensource.google/firebase-sdk/firebase-android-sdk/+/main:firebase-firestore/src/androidTest/java/com/google/firebase/firestore/PipelineSearchTest.kt;l=134?q=PipelineSearchTest.kt&ss=firebase-sdk%2Ffirebase-android-sdk
search API - features not available at launch have been marked internal or commented out