lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chamnap Chhorn <chamnapchh...@gmail.com>
Subject How to improve this solr query?
Date Mon, 02 Jul 2012 16:35:05 GMT
Hi all,

I'm using solr 3.5 with nested query on the 4 core cpu server + 17 Gb. The
problem is that my query is so slow; the average response time is 12 secs
against 13 millions documents.

What I am doing is to send quoted string (q2) to string fields and
non-quoted string (q1) to other fields and combine the result together.

facet=true&sort=score+desc&q2=*"apartment"*&facet.mincount=1&q1=*apartment*
&tie=0.1&q.alt=*:*&wt=json&version=2.2&rows=20&fl=uuid&facet.query=has_map:+true&facet.query=has_image:+true&facet.query=has_website:+true&start=0&q=
*
_query_:+"{!dismax+qf='.....'+fq='......'+v=$q1}"+OR+_query_:+"{!dismax+qf='......'+fq='.......'+v=$q2}"
*
&facet.field={!ex%3Ddt}sub_category_uuids&facet.field={!ex%3Ddt}location_uuid

I have done solr optimize already, but it's still slow. Any idea how to
improve the speed? Am I done anything wrong?

-- 
Chhorn Chamnap
http://chamnap.github.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message