Closed TheBlindM closed 11 months ago
临时解决方案: 在项目下建立同级目录,把类粘过 增加@JsonIgnoreProperties(ignoreUnknown = true)修复
@TheBlindM Can you show the return content of 'describeIndex'? I couldn't find any information about it on the Pinecone API official website.
@TheBlindM I also add objectMapper.configure(FAIL_ON_UNKNOWN_PROPERTIES, false) for PineconeClient to ignore unknown fields by default.
public static ObjectMapper defaultObjectMapper() {
// Used for automatic discovery and registration of Jackson modules
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.findAndRegisterModules();
// Ignore unknown fields
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
return objectMapper;
}
该index 是从Collections中恢复的索引,返回的结构和普通新建的略微不同
{
"database": {
"name": "myindex",
"metric": "cosine",
"dimension": 1536,
"replicas": 1,
"shards": 1,
"pods": 1,
"source_collection": "myindex"
},
"status": {
"waiting": [],
"crashed": [],
"host": "myindex-6e66697.svc.us-west1-gcp-free.pinecone.io",
"port": 433,
"state": "Ready",
"ready": true
}
}
版本:pinecone-client:0.1.11