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 Floyd Wu <fl...@gmail.com> on 2013/11/20 10:38:28 UTC

DocValues uasge and senarios?

Hi there,

I'm not fully understand what kind of usage example that DocValues can be
used?

When I set field docValues=true, do i need to change anyhting in xml that I
sent to solr for indexing?

Please point me.

Thanks

Floyd

PS: I've googled and read lots of DocValues discussion but confused.

Re: DocValues uasge and senarios?

Posted by Chris Hostetter <ho...@fucit.org>.

Perhaps this can help you make sense of the advantages...

https://cwiki.apache.org/confluence/display/solr/DocValues



: Date: Wed, 20 Nov 2013 18:45:04 +0800
: From: Floyd Wu <fl...@gmail.com>
: Reply-To: solr-user@lucene.apache.org
: To: solr-user@lucene.apache.org
: Subject: Re: DocValues uasge and senarios?
: 
: Thanks Yago,
: 
: I've read this article
: http://searchhub.org/2013/04/02/fun-with-docvalues-in-solr-4-2/
: But I don't understand well.
: I'll try to figure out the missing part. Thanks for helping.
: 
: Floyd
: 
: 
: 
: 
: 2013/11/20 Yago Riveiro <ya...@gmail.com>
: 
: > You should understand the DocValues as feature that allow you to do
: > sorting and faceting without blow the heap.
: >
: > They are not necessary faster than the traditional method, they are more
: > memory efficient and in huge indexes this is the main limitation.
: >
: > This post resumes the docvalues feature and the main goals
: > http://searchhub.org/2013/04/02/fun-with-docvalues-in-solr-4-2/
: >
: > --
: > Yago Riveiro
: > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
: >
: >
: > On Wednesday, November 20, 2013 at 10:15 AM, Floyd Wu wrote:
: >
: > > Hi Yago
: > >
: > > Thanks for you reply. I once thought that DocValues feature is one for me
: > > to store some extra values.
: > >
: > > May I summarized that DocValues is a feature that "speed up" sorting and
: > > faceting?
: > >
: > > Floyd
: > >
: > >
: > >
: > > 2013/11/20 Yago Riveiro <yago.riveiro@gmail.com (mailto:
: > yago.riveiro@gmail.com)>
: > >
: > > > Hi Floyd,
: > > >
: > > > DocValues are useful for sorting and faceting per example.
: > > >
: > > > You don't need to change nothing in your xml's, the only thing that you
: > > > need to do is set the docValues=true in your field definition in the
: > schema.
: > > >
: > > > If you don't want use the default implementation (all loaded in the
: > heap),
: > > > you need to add the tag <codecFactory
: > class="solr.SchemaCodecFactory"/> in
: > > > the solrconfig.xml and the docValuesFormat=true on the fieldType
: > definition.
: > > >
: > > > --
: > > > Yago Riveiro
: > > > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
: > > >
: > > >
: > > > On Wednesday, November 20, 2013 at 9:38 AM, Floyd Wu wrote:
: > > >
: > > > > Hi there,
: > > > >
: > > > > I'm not fully understand what kind of usage example that DocValues
: > can be
: > > > > used?
: > > > >
: > > > > When I set field docValues=true, do i need to change anyhting in xml
: > > > that I
: > > > > sent to solr for indexing?
: > > > >
: > > > > Please point me.
: > > > >
: > > > > Thanks
: > > > >
: > > > > Floyd
: > > > >
: > > > > PS: I've googled and read lots of DocValues discussion but confused.
: >
: >
: 

-Hoss

Re: DocValues uasge and senarios?

Posted by Floyd Wu <fl...@gmail.com>.
Thanks Yago,

I've read this article
http://searchhub.org/2013/04/02/fun-with-docvalues-in-solr-4-2/
But I don't understand well.
I'll try to figure out the missing part. Thanks for helping.

Floyd




2013/11/20 Yago Riveiro <ya...@gmail.com>

> You should understand the DocValues as feature that allow you to do
> sorting and faceting without blow the heap.
>
> They are not necessary faster than the traditional method, they are more
> memory efficient and in huge indexes this is the main limitation.
>
> This post resumes the docvalues feature and the main goals
> http://searchhub.org/2013/04/02/fun-with-docvalues-in-solr-4-2/
>
> --
> Yago Riveiro
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>
>
> On Wednesday, November 20, 2013 at 10:15 AM, Floyd Wu wrote:
>
> > Hi Yago
> >
> > Thanks for you reply. I once thought that DocValues feature is one for me
> > to store some extra values.
> >
> > May I summarized that DocValues is a feature that "speed up" sorting and
> > faceting?
> >
> > Floyd
> >
> >
> >
> > 2013/11/20 Yago Riveiro <yago.riveiro@gmail.com (mailto:
> yago.riveiro@gmail.com)>
> >
> > > Hi Floyd,
> > >
> > > DocValues are useful for sorting and faceting per example.
> > >
> > > You don't need to change nothing in your xml's, the only thing that you
> > > need to do is set the docValues=true in your field definition in the
> schema.
> > >
> > > If you don't want use the default implementation (all loaded in the
> heap),
> > > you need to add the tag <codecFactory
> class="solr.SchemaCodecFactory"/> in
> > > the solrconfig.xml and the docValuesFormat=true on the fieldType
> definition.
> > >
> > > --
> > > Yago Riveiro
> > > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> > >
> > >
> > > On Wednesday, November 20, 2013 at 9:38 AM, Floyd Wu wrote:
> > >
> > > > Hi there,
> > > >
> > > > I'm not fully understand what kind of usage example that DocValues
> can be
> > > > used?
> > > >
> > > > When I set field docValues=true, do i need to change anyhting in xml
> > > that I
> > > > sent to solr for indexing?
> > > >
> > > > Please point me.
> > > >
> > > > Thanks
> > > >
> > > > Floyd
> > > >
> > > > PS: I've googled and read lots of DocValues discussion but confused.
>
>

Re: DocValues uasge and senarios?

Posted by Yago Riveiro <ya...@gmail.com>.
You should understand the DocValues as feature that allow you to do sorting and faceting without blow the heap. 

They are not necessary faster than the traditional method, they are more memory efficient and in huge indexes this is the main limitation. 

This post resumes the docvalues feature and the main goals http://searchhub.org/2013/04/02/fun-with-docvalues-in-solr-4-2/

-- 
Yago Riveiro
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Wednesday, November 20, 2013 at 10:15 AM, Floyd Wu wrote:

> Hi Yago
> 
> Thanks for you reply. I once thought that DocValues feature is one for me
> to store some extra values.
> 
> May I summarized that DocValues is a feature that "speed up" sorting and
> faceting?
> 
> Floyd
> 
> 
> 
> 2013/11/20 Yago Riveiro <yago.riveiro@gmail.com (mailto:yago.riveiro@gmail.com)>
> 
> > Hi Floyd,
> > 
> > DocValues are useful for sorting and faceting per example.
> > 
> > You don't need to change nothing in your xml's, the only thing that you
> > need to do is set the docValues=true in your field definition in the schema.
> > 
> > If you don't want use the default implementation (all loaded in the heap),
> > you need to add the tag <codecFactory class="solr.SchemaCodecFactory"/> in
> > the solrconfig.xml and the docValuesFormat=true on the fieldType definition.
> > 
> > --
> > Yago Riveiro
> > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> > 
> > 
> > On Wednesday, November 20, 2013 at 9:38 AM, Floyd Wu wrote:
> > 
> > > Hi there,
> > > 
> > > I'm not fully understand what kind of usage example that DocValues can be
> > > used?
> > > 
> > > When I set field docValues=true, do i need to change anyhting in xml
> > that I
> > > sent to solr for indexing?
> > > 
> > > Please point me.
> > > 
> > > Thanks
> > > 
> > > Floyd
> > > 
> > > PS: I've googled and read lots of DocValues discussion but confused. 


Re: DocValues uasge and senarios?

Posted by Floyd Wu <fl...@gmail.com>.
Hi Yago

Thanks for you reply. I once thought that DocValues feature is one for me
to store some extra values.

May I summarized that DocValues is a feature that "speed up" sorting and
faceting?

Floyd



2013/11/20 Yago Riveiro <ya...@gmail.com>

> Hi Floyd,
>
> DocValues are useful for sorting and faceting per example.
>
> You don't need to change nothing in your xml's, the only thing that you
> need to do is set the docValues=true in your field definition in the schema.
>
> If you don't want use the default implementation (all loaded in the heap),
> you need to add the tag <codecFactory class="solr.SchemaCodecFactory"/> in
> the solrconfig.xml and the docValuesFormat=true on the fieldType definition.
>
> --
> Yago Riveiro
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>
>
> On Wednesday, November 20, 2013 at 9:38 AM, Floyd Wu wrote:
>
> > Hi there,
> >
> > I'm not fully understand what kind of usage example that DocValues can be
> > used?
> >
> > When I set field docValues=true, do i need to change anyhting in xml
> that I
> > sent to solr for indexing?
> >
> > Please point me.
> >
> > Thanks
> >
> > Floyd
> >
> > PS: I've googled and read lots of DocValues discussion but confused.
>
>

Re: DocValues uasge and senarios?

Posted by Yago Riveiro <ya...@gmail.com>.
Hi Floyd, 

DocValues are useful for sorting and faceting per example. 

You don't need to change nothing in your xml's, the only thing that you need to do is set the docValues=true in your field definition in the schema.

If you don't want use the default implementation (all loaded in the heap), you need to add the tag <codecFactory class="solr.SchemaCodecFactory"/> in the solrconfig.xml and the docValuesFormat=true on the fieldType definition.

-- 
Yago Riveiro
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Wednesday, November 20, 2013 at 9:38 AM, Floyd Wu wrote:

> Hi there,
> 
> I'm not fully understand what kind of usage example that DocValues can be
> used?
> 
> When I set field docValues=true, do i need to change anyhting in xml that I
> sent to solr for indexing?
> 
> Please point me.
> 
> Thanks
> 
> Floyd
> 
> PS: I've googled and read lots of DocValues discussion but confused.