Drupal을 통해 쿼리를 수행할 때 Apache Solr 결과가 다르게 나타나는 이유는 무엇입니까?
문제
다음에 대한 맞춤 검색 인터페이스를 만들려고 합니다. 아파치 솔르 사용하여 드루팔, 결과에 이상한 문제가 있습니다.
Solr의 내장 웹 인터페이스에서 실행할 때 8개의 조회수를 생성하고 Drupal을 통해 실행할 때 0개의 조회수를 생성하는 동일한 쿼리가 있습니다.누구든지 이유를 설명할 수 있나요?
Solr 로그에서 가져온 쿼리는 다음과 같습니다.
솔러 백엔드
INFO: [] webapp=/solr path=/select params={wt=standard&rows=10&start=0&explainOther=&hl.fl=&indent=on&q=ss_cck_field_goal:sell+AND+ss_cck_field_type:(own+OR+coop+OR+house+OR+commercial)+AND+is_price:[10000+TO+5560000]&fl=*,score&qt=standard&version=2.2} hits=8 status=0 QTime=2
Drupal ApacheSolr 모듈
09-Mar-2009 15:37:31 org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={wt=json&rows=10&json.nl=map&start=0&q=ss_cck_field_goal:sell+AND+ss_cck_field_type:(own+OR+coop+OR+house+OR+commercial)+AND+is_price:[10000+TO+5560000]&version=1.2} hits=0 status=0 QTime=9
내 눈에 딱 보이는 건 바로 version=1.2
매개변수를 제거해 보았으나 동작이 바뀌지 않습니다.
많은 조정 후에 Drupal 모듈에서 거의 동일한 매개변수를 전송했지만 여전히 결과가 0입니다.
09-Mar-2009 17:47:43 org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={wt=standard&rows=10&start=0&q=ss_cck_field_goal:sell+AND+ss_cck_field_type:(own+OR+coop+OR+house+OR+commercial)+AND+is_price:[10000+TO+5560000]} hits=0 status=0 QTime=13
누구든지 이것을 설명할 수 있나요?
해결책
그만큼 요청 핸들러 (qt 매개변수)는 다를 수 있습니다.정의되지 않은 경우(Drupal 쿼리는 이를 정의하지 않음) Solr는 기본 핸들러를 사용합니다.아마도 구성된 기본 핸들러가 표준 요청 핸들러가 아닐 수도 있습니다.solrconfig.xml을 확인하세요.
다른 팁
비어 있지 않은 것이 있어야 할 수 있습니까? fl
Drupal 쿼리의 (필드 목록) 매개변수는 무엇입니까?표시할 필드가 없습니다:결과가 없나요?