File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed
src/main/java/org/typesense/api Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,31 @@ public Document documents(String documentId) {
6666 return retVal ;
6767 }
6868
69+ /**
70+ * @deprecated This method is deprecated and will be removed in a future version.
71+ * Use {@link Client#synonymSets()} instead for the new synonym sets API.
72+ *
73+ * Note: The old synonyms API is only available on Typesense v29.0 and below.
74+ * For Typesense v30.0 and above, use the new synonym sets API.
75+ */
76+ @ Deprecated
6977 public Synonyms synonyms () {
78+ System .err .println ("DEPRECATED: Using deprecated synonyms API. This API is only available on Typesense v29.0 and below. " +
79+ "For Typesense v30.0 and above, use the new synonym sets API via Client.synonymSets()." );
7080 return this .synonyms ;
7181 }
7282
83+ /**
84+ * @deprecated This method is deprecated and will be removed in a future version.
85+ * Use {@link Client#synonymSet(String)} instead for the new synonym sets API.
86+ *
87+ * Note: The old synonyms API is only available on Typesense v29.0 and below.
88+ * For Typesense v30.0 and above, use the new synonym sets API.
89+ */
90+ @ Deprecated
7391 public Synonym synonyms (String synonymId ) {
92+ System .err .println ("DEPRECATED: Using deprecated synonyms API. This API is only available on Typesense v29.0 and below. " +
93+ "For Typesense v30.0 and above, use the new synonym sets API via Client.synonymSet(String)." );
7494 Synonym retVal ;
7595
7696 if (!this .individualSynonyms .containsKey (synonymId )) {
Original file line number Diff line number Diff line change 33import org .typesense .api .utils .URLEncoding ;
44import org .typesense .model .SearchSynonym ;
55
6+ /**
7+ * @deprecated This class is deprecated and will be removed in a future version.
8+ * Use {@link SynonymSet} instead for the new synonym sets API.
9+ *
10+ * Note: The old synonyms API is only available on Typesense v29.0 and below.
11+ * For Typesense v30.0 and above, use the new synonym sets API.
12+ */
13+ @ Deprecated
14+
615public class Synonym {
716
817 private String collectionName ;
Original file line number Diff line number Diff line change 55import org .typesense .model .SearchSynonymSchema ;
66import org .typesense .model .SearchSynonymsResponse ;
77
8+ /**
9+ * @deprecated This class is deprecated and will be removed in a future version.
10+ * Use {@link SynonymSets} instead for the new synonym sets API.
11+ *
12+ * Note: The old synonyms API is only available on Typesense v29.0 and below.
13+ * For Typesense v30.0 and above, use the new synonym sets API.
14+ */
15+ @ Deprecated
16+
817public class Synonyms {
918
1019 private String collectionName ;
You can’t perform that action at this time.
0 commit comments