-
Hello, i have a problem. I have error : org.dizitart.no2.exceptions.IndexingException: NO2.5017: can not index on non comparable field homes Myfield home is an array of custom object. My class : @Indices({@Index(value = "playerName", type = IndexType.Unique), @Index(value = "uuid", type = IndexType.Unique),
@Index(value = "god", type = IndexType.NonUnique), @Index(value = "balance", type = IndexType.NonUnique),
@Index(value = "nextAvailableRepair", type = IndexType.NonUnique), @Index(value = "nextAvailableRepairAll", type = IndexType.NonUnique),
@Index(value = "homes", type = IndexType.NonUnique)})
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class PlayerProfile implements Serializable {
private String playerName;
private String uuid;
private boolean god;
private double balance;
public long nextAvailableRepair;
public long nextAvailableRepairAll;
public LiteLocation[] homes; I don't understand how to fix this error :/ |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 3 replies
-
Nitrite 3.x does not support compound index. As Having said it, nitrite 4.x will come with compound index support, stay tuned. |
Beta Was this translation helpful? Give feedback.
Nitrite 3.x does not support compound index. As
LiteLocation
is a custom object containing multiple fields, creating index on it means creating a compound index on multiple fields. As nitrite 3.x does not support compound index, you are getting this error.Having said it, nitrite 4.x will come with compound index support, stay tuned.