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 omu_negru <ti...@gmail.com> on 2013/08/09 12:05:28 UTC

Do docValues influence range faceting speed in solr?

    Hello,
>From my understanding doc.values work like a persistent field-cache, which
is awesome for when you have to do sorting on a field after matching a
certain query (assuming you have doc-values for that field enabled)

That being the case , Field faceting is indeed improved by having docValues
enabled on the field you want to facet on. My question is , does the same
apply to range faceting? After making a query on field "foo" (text field)
and doing range faceting on field "bar" which is a trie-int field , will the
same mechanism apply to the faceting ? solr starts hitting the field cache
(doc values) for all the documents matched by my query and collecting the
"bar" field values for the relevant facet results 



--
View this message in context: http://lucene.472066.n3.nabble.com/Do-docValues-influence-range-faceting-speed-in-solr-tp4083483.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Do docValues influence range faceting speed in solr?

Posted by Chris Hostetter <ho...@fucit.org>.
: I don't think so. I looked at sources - range and query facets are backed
: on SolrIndexSearcher.numDocs(Query, DocSet).

on fields that use docValues, range queries (regardless 
of wether they are come from q, fq, facet.query, facet.range) are 
sometimes implemented using the docValues via that FieldType's 
getRangeQuery().  

The specifics of when the docValues are used depend on other field 
type properties (ie: multiValued? , indexed? , numeric?) but the bottom 
line is if you do range faceting on a field, the same query will be used 
for filtering on thatfiled, so you should get a filterCache hit.


-Hoss

Re: Do docValues influence range faceting speed in solr?

Posted by Mikhail Khludnev <mk...@griddynamics.com>.
Hello,

I don't think so. I looked at sources - range and query facets are backed
on SolrIndexSearcher.numDocs(Query, DocSet).


On Fri, Aug 9, 2013 at 2:05 PM, omu_negru <ti...@gmail.com> wrote:

>     Hello,
> From my understanding doc.values work like a persistent field-cache, which
> is awesome for when you have to do sorting on a field after matching a
> certain query (assuming you have doc-values for that field enabled)
>
> That being the case , Field faceting is indeed improved by having docValues
> enabled on the field you want to facet on. My question is , does the same
> apply to range faceting? After making a query on field "foo" (text field)
> and doing range faceting on field "bar" which is a trie-int field , will
> the
> same mechanism apply to the faceting ? solr starts hitting the field cache
> (doc values) for all the documents matched by my query and collecting the
> "bar" field values for the relevant facet results
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Do-docValues-influence-range-faceting-speed-in-solr-tp4083483.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
 <mk...@griddynamics.com>