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 Rahul Bhooteshwar <ra...@hotwaxsystems.com> on 2015/02/23 13:04:36 UTC

Atomic Update while having fields with attribute stored="true" in schema

Hi,
I have around 50 fields in my schema and having 20 fields are stored=”true”
and rest of them stored=”false”
In case partial update (atomic update), it is  mentioned at many places
that the fields in schema should have stored=”true”. I have also tried
atomic update on documents having fields with stored="false" and
indexed="true", and it didn't work (My whole document vanished from solr or
I am unable to search it now, whatever.). Although I didn't change the
existing value for the fields having stored="false".

Which means I have to change all my fields to stored=”true” if I want to
use atomic update.Right?
Will it affect the performance of the Solr? if yes, then what is the best
practice to reduce performance degradation as much as possible?Thanks in
advance.

Thanks and Regards,
Rahul Bhooteshwar
Enterprise Software Engineer
HotWax Systems <http://www.hotwaxsystems.com> - The global leader in
innovative enterprise commerce solutions powered by Apache OFBiz.
ApacheCon US 2014 Silver Sponsor

Re: Atomic Update while having fields with attribute stored="true" in schema

Posted by Yago Riveiro <ya...@gmail.com>.
Field with store=true has the downside of disk space. Your index will grow in space requirements.


Maybe update the whole document can be an option ...









—
/Yago Riveiro

On Mon, Feb 23, 2015 at 1:02 PM, Rahul Bhooteshwar
<ra...@hotwaxsystems.com> wrote:

> Hi Yago Riveiro,
> Thanks for your quick reply. I am using Solr for faceted search using *Solr**j.
> *I am using facet queries and filter queries. I am new to Solr so I would
> like to know what is the best practice to handle such scenarios.
> Thanks and Regards,
> Rahul Bhooteshwar
> Enterprise Software Engineer
> HotWax Systems <http://www.hotwaxsystems.com> - The global leader in
> innovative enterprise commerce solutions powered by Apache OFBiz.
> ApacheCon US 2014 Silver Sponsor
> On Mon, Feb 23, 2015 at 5:42 PM, Yago Riveiro <ya...@gmail.com>
> wrote:
>> "Which means I have to change all my fields to stored=”true” if I want to
>>
>> use atomic update.Right?”
>>
>>
>>
>>
>> Yes, and re-index all your data.
>>
>>
>>
>>
>> "Will it affect the performance of the Solr?”
>>
>>
>>
>>
>> What type of queries are you doing now?
>>
>>
>> —
>> /Yago Riveiro
>>
>> On Mon, Feb 23, 2015 at 12:05 PM, Rahul Bhooteshwar
>> <ra...@hotwaxsystems.com> wrote:
>>
>> > Hi,
>> > I have around 50 fields in my schema and having 20 fields are
>> stored=”true”
>> > and rest of them stored=”false”
>> > In case partial update (atomic update), it is  mentioned at many places
>> > that the fields in schema should have stored=”true”. I have also tried
>> > atomic update on documents having fields with stored="false" and
>> > indexed="true", and it didn't work (My whole document vanished from solr
>> or
>> > I am unable to search it now, whatever.). Although I didn't change the
>> > existing value for the fields having stored="false".
>> > Which means I have to change all my fields to stored=”true” if I want to
>> > use atomic update.Right?
>> > Will it affect the performance of the Solr? if yes, then what is the best
>> > practice to reduce performance degradation as much as possible?Thanks in
>> > advance.
>> > Thanks and Regards,
>> > Rahul Bhooteshwar
>> > Enterprise Software Engineer
>> > HotWax Systems <http://www.hotwaxsystems.com> - The global leader in
>> > innovative enterprise commerce solutions powered by Apache OFBiz.
>> > ApacheCon US 2014 Silver Sponsor
>>

Re: Atomic Update while having fields with attribute stored="true" in schema

Posted by Rahul Bhooteshwar <ra...@hotwaxsystems.com>.
Hi Yago Riveiro,
Thanks for your quick reply. I am using Solr for faceted search using *Solr**j.
*I am using facet queries and filter queries. I am new to Solr so I would
like to know what is the best practice to handle such scenarios.

Thanks and Regards,
Rahul Bhooteshwar
Enterprise Software Engineer
HotWax Systems <http://www.hotwaxsystems.com> - The global leader in
innovative enterprise commerce solutions powered by Apache OFBiz.
ApacheCon US 2014 Silver Sponsor

On Mon, Feb 23, 2015 at 5:42 PM, Yago Riveiro <ya...@gmail.com>
wrote:

> "Which means I have to change all my fields to stored=”true” if I want to
>
> use atomic update.Right?”
>
>
>
>
> Yes, and re-index all your data.
>
>
>
>
> "Will it affect the performance of the Solr?”
>
>
>
>
> What type of queries are you doing now?
>
>
> —
> /Yago Riveiro
>
> On Mon, Feb 23, 2015 at 12:05 PM, Rahul Bhooteshwar
> <ra...@hotwaxsystems.com> wrote:
>
> > Hi,
> > I have around 50 fields in my schema and having 20 fields are
> stored=”true”
> > and rest of them stored=”false”
> > In case partial update (atomic update), it is  mentioned at many places
> > that the fields in schema should have stored=”true”. I have also tried
> > atomic update on documents having fields with stored="false" and
> > indexed="true", and it didn't work (My whole document vanished from solr
> or
> > I am unable to search it now, whatever.). Although I didn't change the
> > existing value for the fields having stored="false".
> > Which means I have to change all my fields to stored=”true” if I want to
> > use atomic update.Right?
> > Will it affect the performance of the Solr? if yes, then what is the best
> > practice to reduce performance degradation as much as possible?Thanks in
> > advance.
> > Thanks and Regards,
> > Rahul Bhooteshwar
> > Enterprise Software Engineer
> > HotWax Systems <http://www.hotwaxsystems.com> - The global leader in
> > innovative enterprise commerce solutions powered by Apache OFBiz.
> > ApacheCon US 2014 Silver Sponsor
>

Re: Atomic Update while having fields with attribute stored="true" in schema

Posted by Yago Riveiro <ya...@gmail.com>.
"Which means I have to change all my fields to stored=”true” if I want to

use atomic update.Right?”




Yes, and re-index all your data.




"Will it affect the performance of the Solr?”




What type of queries are you doing now?


—
/Yago Riveiro

On Mon, Feb 23, 2015 at 12:05 PM, Rahul Bhooteshwar
<ra...@hotwaxsystems.com> wrote:

> Hi,
> I have around 50 fields in my schema and having 20 fields are stored=”true”
> and rest of them stored=”false”
> In case partial update (atomic update), it is  mentioned at many places
> that the fields in schema should have stored=”true”. I have also tried
> atomic update on documents having fields with stored="false" and
> indexed="true", and it didn't work (My whole document vanished from solr or
> I am unable to search it now, whatever.). Although I didn't change the
> existing value for the fields having stored="false".
> Which means I have to change all my fields to stored=”true” if I want to
> use atomic update.Right?
> Will it affect the performance of the Solr? if yes, then what is the best
> practice to reduce performance degradation as much as possible?Thanks in
> advance.
> Thanks and Regards,
> Rahul Bhooteshwar
> Enterprise Software Engineer
> HotWax Systems <http://www.hotwaxsystems.com> - The global leader in
> innovative enterprise commerce solutions powered by Apache OFBiz.
> ApacheCon US 2014 Silver Sponsor