Skip to content

Commit cfe0f81

Browse files
authored
remove common.text annotation
1 parent 52ccc80 commit cfe0f81

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

guides/providing-services.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -426,22 +426,6 @@ Searches all elements of type `String` excluding the element `isbn`, which leave
426426
You can explicitly annotate calculated elements to make them searchable, even though they aren't searchable by default. The virtual elements won't be searchable even if they're explicitly annotated.
427427
:::
428428

429-
#### The `@Common.Text` Annotation
430-
431-
If an entity has an element annotated with the `@Common.Text` annotation, then the property that holds the display text is now by default added to the searchable elements. Example:
432-
433-
```cds
434-
entity Books : cuid {
435-
title : String;
436-
@Common.Text : author.name
437-
author : Association to Author;
438-
}
439-
```
440-
The default searchable elements of `Books` are `title` and `author.name`.
441-
::: warning
442-
Do not use both `@cds.search` and `@Common.Text` annotations on the same entity, unless `@cds.search` is used only to exclude fields. If both are present and `@cds.search` includes fields, the `@Common.Text` annotation will be ignored.
443-
:::
444-
445429
#### Fuzzy Search on SAP HANA Cloud <Beta /> {#fuzzy-search}
446430

447431
> Prerequisite: For CAP Java, you need to run in [`HEX` optimization mode](../java/cqn-services/persistence-services#sql-optimization-mode) on SAP HANA Cloud and enable <Config java keyOnly>cds.sql.hana.search.fuzzy = true</Config>

0 commit comments

Comments
 (0)