You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by pcurila <pc...@eea.sk> on 2009/03/17 09:21:34 UTC
why is query so slow
hello,
I created index with 1.5m docs. When I am post query without facets it
returns in a moment.
When I post query with one facets it takes 14s.
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">14263</int>
−
<lst name="params">
<str name="facet">true</str>
<str name="indent">on</str>
<str name="facet.mincount">1</str>
<str name="start">0</str>
<str name="q">zamok
</str>
<str name="facet.limit">-1</str>
<str name="facet.field">wasCreatedBy_fct</str>
<str name="rows">10</str>
<str name="version">2.2</str>
</lst>
</lst>
<result name="response" numFound="16055" start="0">
when I add filter that returns only one docs it takes same time
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">13249</int>
−
<lst name="params">
<str name="facet">true</str>
<str name="indent">on</str>
<str name="facet.mincount">1</str>
<str name="start">0</str>
<str name="q">zamok
</str>
<str name="facet.limit">-1</str>
<str name="facet.field">wasCreatedBy_fct</str>
<str name="fq">wasCreatedBy_fct="Martin Benka"</str>
<str name="rows">10</str>
<str name="version">2.2</str>
</lst>
</lst>
−
<result name="response" numFound="1" start="0">
Why?
Can anybody explain me what am I doing wrong and how to speed up response
time.
Peter
--
View this message in context: http://www.nabble.com/why-is-query-so-slow-tp22554340p22554340.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: why is query so slow
Posted by Toby Cole <to...@semantico.com>.
Peter,
If possible try running a 1.4-snapshot of Solr, the faceting
improvements are quite remarkable.
However, if you can't run unreleased code, it might be an idea to try
reducing the number of unique terms (try indexing surnames only?).
Toby.
On 17 Mar 2009, at 10:01, pcurila wrote:
>
> I am using 1.3
>
>> How many terms are in the wasCreatedBy_fct field? How is that field
>> and its type configured?
> field contains author names and there are lots of them.
>
> here is type configuration:
>
> <fieldType name="facet" class="solr.TextField"
> positionIncrementGap="100">
> <analyzer>
> <tokenizer class="solr.KeywordTokenizerFactory"/>
> </analyzer>
> </fieldType>
>
> <field name="wasCreatedBy_fct" type="facet" indexed="true"
> stored="true"
> multiValued="true"/>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/why-is-query-so-slow-tp22554340p22555842.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
Toby Cole
Software Engineer
Semantico
E: toby.cole@semantico.com
W: www.semantico.com
Re: why is query so slow
Posted by pcurila <pc...@eea.sk>.
I am using 1.3
> How many terms are in the wasCreatedBy_fct field? How is that field
> and its type configured?
field contains author names and there are lots of them.
here is type configuration:
<fieldType name="facet" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/>
</analyzer>
</fieldType>
<field name="wasCreatedBy_fct" type="facet" indexed="true" stored="true"
multiValued="true"/>
--
View this message in context: http://www.nabble.com/why-is-query-so-slow-tp22554340p22555842.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: why is query so slow
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
How many terms are in the wasCreatedBy_fct field? How is that field
and its type configured?
Solr 1.3? Or trunk? Trunk contains massive faceting speed
improvements.
Erik
On Mar 17, 2009, at 4:21 AM, pcurila wrote:
>
> hello,
>
> I created index with 1.5m docs. When I am post query without facets it
> returns in a moment.
> When I post query with one facets it takes 14s.
>
> <lst name="responseHeader">
> <int name="status">0</int>
> <int name="QTime">14263</int>
> −
> <lst name="params">
> <str name="facet">true</str>
> <str name="indent">on</str>
> <str name="facet.mincount">1</str>
> <str name="start">0</str>
> <str name="q">zamok
> </str>
> <str name="facet.limit">-1</str>
> <str name="facet.field">wasCreatedBy_fct</str>
> <str name="rows">10</str>
> <str name="version">2.2</str>
> </lst>
> </lst>
> <result name="response" numFound="16055" start="0">
>
>
> when I add filter that returns only one docs it takes same time
>
>
> <lst name="responseHeader">
> <int name="status">0</int>
> <int name="QTime">13249</int>
> −
> <lst name="params">
> <str name="facet">true</str>
> <str name="indent">on</str>
> <str name="facet.mincount">1</str>
> <str name="start">0</str>
> <str name="q">zamok
> </str>
> <str name="facet.limit">-1</str>
> <str name="facet.field">wasCreatedBy_fct</str>
> <str name="fq">wasCreatedBy_fct="Martin Benka"</str>
> <str name="rows">10</str>
> <str name="version">2.2</str>
> </lst>
> </lst>
> −
> <result name="response" numFound="1" start="0">
>
> Why?
> Can anybody explain me what am I doing wrong and how to speed up
> response
> time.
>
> Peter
> --
> View this message in context: http://www.nabble.com/why-is-query-so-slow-tp22554340p22554340.html
> Sent from the Solr - User mailing list archive at Nabble.com.