이 명령은 기본 제품 설치 디렉토리에 설치됩니다.
오퍼레이션 모드로 -o Entity를 지정하는 경우 엔티티 파일이 생성됩니다. 이 파일에 데이터베이스에서 찾은 제출 가능 엔티티가 포함됩니다. 이들 엔티티에 대해서는 ClearQuest 스키마 개발자가 잘 알고 있으므로 엔티티 파일에 대한 추가 설명은 하지 않습니다.
ClearQuest 검색 특성 파일은 -o CQ가 오퍼레이션 모드로 지정된 경우 생성됩니다. 이 파일에는 검색 엔진, 데이터베이스 크롤러, 데이터베이스 및 엔티티 등 여러 섹션이 있습니다. ClearQuest 데이터베이스가 복제되는 경우 각 섹션의 인스턴스도 여러 개 만들어집니다. 각 인스턴스는 복제본에 상응하는 것으로 복제본에 맞는 구성이 필요합니다.
검색 엔진 섹션
<!- Solr Search Engine default parameters -–> <SearchEngine sitename="<local>" provider="Solr" version="1.2"> <searchrequest retries="3" url=http://localhost:14080/solr/select/?q=%s&start=%d&rows=%d /> <searchprop pagesize="25" cachesize="1000" /> </SearchEngine>
데이터베이스 크롤러 섹션
이 섹션에서는 CQ-db_name-dbset_name.xml 파일의 데이터베이스 크롤러 섹션에 있는 XML 태그에 대해 설명합니다. 다음은 이 섹션에 대한 예입니다.
<!- ClearQuest Database Crawler default parameters --> <CQDbCrawler sitename="<local>"> <batch size="250" delay="5" directory="./batch-output" url=http://localhost/solr/update/" /> <update size="250" delay="300" login_iteration="1" directory="./update-output" url=http://localhost/solr/update/" /> </CQDbCrawler>
복제된 데이터베이스의 경우 복제본 사이트를 지정하는 각 sitename 인스턴스와 함께 각 복제본에 대한 별도의 <CQDbCrawler> 태그가 있습니다. 복제된 데이터베이스의 경우, 레코드 추출기가 현재 실행되고 있는 사이트의 이름과 일치하는 sitename 값을 검색합니다. 값을 찾을 수 없는 경우 레코드 추출기가 시작되지 않습니다.
예제
login_iteration의 값이 10이고 delay의 값을 기본값 600초에서 60초로 변경한 경우 새 로그인 세션이 10분마다 작성되며 새 ClearQuest 레코드 또는 수정된 ClearQuest 레코드의 검사는 매분마다 발생합니다. 이는 전체 텍스트 검색 색인을 ClearQuest 데이터베이스와 보다 밀접하게 동기화할 수 있도록 합니다.
데이터베이스 섹션
이 섹션에서는 CQ-db_name-dbset_name.xml 파일의 데이터베이스 섹션에 있는 XML 태그에 대해 설명합니다. 다음은 이 섹션에 대한 예입니다.
<!-- ClearQuest database and CM Server parameters --> <CQDatabase sitename="<local>"> <cmserver>http://localhost/TeamWeb/services/Team/</cmserver> <repository dbset="TextSearch" dbname="SAMPL" <username="admin" password="" keyfile=""></repository> </CQDatabase>
복제된 데이터베이스의 경우 복제본 사이트를 지정하는 sitename과 함께 각 복제본에 대한 CQDatabase 인스턴스가 생성됩니다 레코드 추출기가 현재 실행되고 있는 사이트와 일치하는 sitename을 검색합니다. 값을 찾을 수 없는 경우 레코드 추출기가 시작되지 않습니다.
이 태그를 수정할 필요가 없습니다.
그렇지 않으면 레코드 추출기 cqdbtscrawler.pl을 일괄처리 또는 업데이트 모드에서 실행할 때 오류가 발생합니다.
엔티티 섹션
이 섹션에서는 CQ-db_name-dbset_name.xml 파일의 엔티티 섹션에 있는 XML 태그에 대해 설명합니다. 다음은 이 섹션에 대한 예입니다.
<!- ClearQuest entity parameters --> <CQEntity name="Customer" index="true"> <field name="schema_mastership" disp_order="0" index="true" /> <field name="customer_name" disp_order="1" index="true" /> <field name="phone" disp_order="0" index="true" /> <field name="company_name" disp_order="0" index="true" /> . . . </CQEntity>
오퍼레이션 모드로 -o Solr을 지정하는 경우 Solr 검색 스키마 파일이 생성됩니다. -o CQ의 경우와 마찬가지로 이 오퍼레이션 모드에서는 엔티티 모드(-o Entity)에서 이 명령을 실행하여 생성되는 엔티티 파일을 입력으로 채택합니다. Solr 검색 스키마 파일을 편집하지 마십시오. 대신 이 파일의 섹션을 Solr 스키마 파일 schema.xml에 복사하십시오. (schema.xml에 대한 정보는 Solr 문서를 참조하십시오.)
<Solr> <fields> <field name="Operator_Value" type="text" indexed="true" stored="false" required="false" multivalued="true"></field> <field name="misc_info" type="text" indexed="true" stored="false" required="false" multivalued="true"></field> ... <field name="Resolution" type="text" indexed="true" stored="false" required="false" multivalued="false"></field> ... <field name="comments" type="text" indexed="true" stored="false" required="false" multivalued="true"></field> ... <field name="RATL_CQ_UNIQUE_FIELD" type="string" indexed="true" stored="true" required="true" multivalued="false"></field> ... <field name="RATL_CQ_ALL_FIELDS" type="text" indexed="true" stored="false" required="false" multivalued="true"></field> </fields> </Solr> <uniqueKey>RATL_CQ_UNIQUE_FIELD</uniqueKey> <defaultSearchField>RATL_CQ_ALL_FIELDS</defaultSearchField> <copyField source="Operator_Value" dest="RATL_CQ_ALL_FIELDS"></copyField> <copyField source="misc_info" dest="RATL_CQ_ALL_FIELDS"></copyField> ... <copyField source="Resolution" dest="RATL_CQ_ALL_FIELDS"></copyField> ... <copyField source="Version" dest="RATL_CQ_ALL_FIELDS"></copyField> ... <copyField source="comments" dest="RATL_CQ_ALL_FIELDS"></copyField> ... <copyField source="Fax" dest="RATL_CQ_ALL_FIELDS"></copyField>
cqperl cqtssetup.pl -d SAMPL -s TextSearch -u admin -p "" -o Entity
이 명령은 Entity-SAMPL-TextSearch.txt 파일을 생성합니다. 파일의 컨텐츠는 다음 텍스트와 유사합니다.
Email_Rule=ratl_mastership,ratl_keysite,record_type,dbid,is_active,version,lock_version,locked_by,name,…,…,… Customer=ratl_mastership,ratl_keysite,dbid,is_active,version,lock_version,locked_by,record_type,Name,Phone,Fax,Email,CallTrackingID,…,…,… Project=ratl_mastership,ratl_keysite,dbid,is_active,version,lock_version,locked_by,…,…,… Defect=ratl_mastership,record_type,dbid,is_active,id,state,version,lock_version,locked_by,isduplicate,unduplicate_state,Headline,Description,Priority,Severity,Submitter,…,…,…
검색 가능한 레코드 유형과 필드를 지정하려면 파일을 편집하십시오. 예를 들어 Defect 유형의 레코드만 검색 가능한 경우 Defect=로 시작하는 행을 제외한 파일의 모든 행을 삭제하십시오. 이 레코드 유형으로 정의되는 필드 중 일부만이 검색 가능한 경우 이들 필드만 유지하고 나머지는 삭제하십시오. 예를 들어 헤드라인, 설명 및 심각도만 검색 가능한 경우 편집된 파일은 다음과 같습니다.
Defect=record_type,dbid,version,Headline,Description,Severity
단, record_type, dbid 및 version은 유지시켜야 합니다. 이는 이들 세 필드가 색인화되는 전체 텍스트 검색 구현의 요구사항입니다.
cqperl cqtssetup.pl -d SAMPL -s TextSearch -u admin -p "" -o CQ -f Entity_SAMPLE_TextSearch.txt
이 명령은 CQ-SAMPL-TextSearch.xml 파일을 생성하며 레코드 추출기(cqtsdbcrawler.pl) 및 검색 기능에서 이 파일을 사용합니다.
cqperl cqtssetup.pl -d SAMPL -s TextSearch -u admin -p "" -o Solr Entity-SAMPL-TextSearch.txt
이 명령은 Solr-SAMPL-TextSearch.xml 파일을 생성합니다. 이 파일은 편집하지 마십시오. 대신 이 파일의 섹션을 Solr 파일 schema.xml로 복사하십시오.