
SolrDocument::key는 문서의 고유 식별자로, 문서를 식별하는 데 사용됩니다.
SolrDocument::key를 사용하는 방법은 다음과 같습니다.
1. SolrDocument 객체를 생성할 때, key를 지정할 수 있습니다. 예를 들어, `$document = new SolrDocument(['key' => 'document-1']);`
2. key를 사용하여 문서를 찾을 수 있습니다. 예를 들어, `$document = SolrDocument::load('document-1');`
3. key를 사용하여 문서를 삭제할 수 있습니다. 예를 들어, `SolrDocument::delete('document-1');`
이러한 방법으로 SolrDocument::key를 사용하여 문서를 식별하고 관리할 수 있습니다.
2025-06-05 15:54