Skip to content

Commit 147705a

Browse files
committed
Added: primary in IndexSettings
Fix: #581
1 parent 6ff1210 commit 147705a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

algoliasearch-core/src/main/java/com/algolia/search/models/settings/IndexSettings.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class IndexSettings implements Serializable {
3333
private List<String> attributesToRetrieve;
3434
private List<String> camelCaseAttributes;
3535
private Map<String, List<String>> decompoundedAttributes;
36+
private String primary;
3637

3738
/* filtering-faceting */
3839
private Long maxValuesPerFacet;
@@ -234,6 +235,10 @@ public IndexSettings setDecompoundedAttributes(Map<String, List<String>> decompo
234235
return this;
235236
}
236237

238+
public String getPrimary() {
239+
return primary;
240+
}
241+
237242
public List<String> getAttributesToHighlight() {
238243
return attributesToHighlight;
239244
}

0 commit comments

Comments
 (0)