How to use the "eval" streaming expression?

2020-11-18 Thread ufuk yılmaz
Hey,

Can anyone give me an example on how can eval 
https://lucene.apache.org/solr/guide/8_4/stream-decorator-reference.html#eval 
be used?

Docs says it allows to run streaming expressions those created on the fly, but 
I can’t wrap my head on how an expression can be created on the fly, maybe 
unless it was stored in a field in Solr?

Best

Sent from Mail for Windows 10



RE: Solr8.7 How to increase JVM-Memory ?

2020-11-18 Thread Bruno Mannina
Yes ! It works !

I just set SOLR_HEAP="8g" and restart solr.

Thanks a lot !

-Message d'origine-
De : Jörn Franke [mailto:jornfra...@gmail.com]
Envoyé : mercredi 18 novembre 2020 18:50
À : solr-user@lucene.apache.org
Objet : Re: Solr8.7 How to increase JVM-Memory ?

I think it should be /etc/default/solr.in.sh And executable for the user 
executing Solr

> Am 18.11.2020 um 16:44 schrieb Bruno Mannina :
>
> Yes. It was executable.
>
> Must I to create solr.in.sh by copying from solr.in.sh.orig ? it's the right 
> way ?
>
> -Message d'origine-
> De : Jörn Franke [mailto:jornfra...@gmail.com] Envoyé : mercredi 18
> novembre 2020 16:41 À : solr-user@lucene.apache.org Objet : Re:
> Solr8.7 How to increase JVM-Memory ?
>
> Did you make solr.in.sh executable ? Eg chmod a+x solr.in.sh ?
>
>> Am 18.11.2020 um 16:33 schrieb Matheo Software :
>>
>> 
>> Hi All,
>>
>> Since several years I work with a old version of Solr on Ubuntu, version 5.4.
>> Today I test the 8.7 version.
>> But I’m not able to change the JVM-Memory like in my 5.4 version.
>>
>> Many answers on the web tell to modify the solr.in.sh file but in my case I 
>> have only /opt/solr/solr.in.sh.orig.
>> And if I change the SOLR_HEAP to a new value like “8g” Dashboard shows 
>> always 512MB.
>> I try also to change SOLR_JAVA_MEM without success.
>>
>> Of course, I restart solr each time. (service solr restart). No error in 
>> log. All work fine but no 8g of memory.
>>
>> I also try to copie solr.in.sh.orig to solr.in.sh, the result is always the 
>> same.
>>
>> Could you help me ?
>>
>> Cordialement, Best Regards
>> Bruno Mannina
>> www.matheo-software.com
>> www.patent-pulse.com
>> Tél. +33 0 970 738 743
>> Mob. +33 0 634 421 817
>>
>>
>>
>>Garanti sans virus. www.avast.com
>
>
> --
> L'absence de virus dans ce courrier électronique a été vérifiée par le 
> logiciel antivirus Avast.
> https://www.avast.com/antivirus
>


--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus



Re: Solr8.7 How to increase JVM-Memory ?

2020-11-18 Thread Jörn Franke
I think it should be /etc/default/solr.in.sh
And executable for the user executing Solr

> Am 18.11.2020 um 16:44 schrieb Bruno Mannina :
> 
> Yes. It was executable.
> 
> Must I to create solr.in.sh by copying from solr.in.sh.orig ? it's the right 
> way ?
> 
> -Message d'origine-
> De : Jörn Franke [mailto:jornfra...@gmail.com] 
> Envoyé : mercredi 18 novembre 2020 16:41
> À : solr-user@lucene.apache.org
> Objet : Re: Solr8.7 How to increase JVM-Memory ?
> 
> Did you make solr.in.sh executable ? Eg chmod a+x solr.in.sh ?
> 
>> Am 18.11.2020 um 16:33 schrieb Matheo Software :
>> 
>> 
>> Hi All,
>> 
>> Since several years I work with a old version of Solr on Ubuntu, version 5.4.
>> Today I test the 8.7 version.
>> But I’m not able to change the JVM-Memory like in my 5.4 version.
>> 
>> Many answers on the web tell to modify the solr.in.sh file but in my case I 
>> have only /opt/solr/solr.in.sh.orig.
>> And if I change the SOLR_HEAP to a new value like “8g” Dashboard shows 
>> always 512MB.
>> I try also to change SOLR_JAVA_MEM without success.
>> 
>> Of course, I restart solr each time. (service solr restart). No error in 
>> log. All work fine but no 8g of memory.
>> 
>> I also try to copie solr.in.sh.orig to solr.in.sh, the result is always the 
>> same.
>> 
>> Could you help me ?
>> 
>> Cordialement, Best Regards
>> Bruno Mannina
>> www.matheo-software.com
>> www.patent-pulse.com
>> Tél. +33 0 970 738 743
>> Mob. +33 0 634 421 817
>> 
>> 
>> 
>>Garanti sans virus. www.avast.com
> 
> 
> -- 
> L'absence de virus dans ce courrier électronique a été vérifiée par le 
> logiciel antivirus Avast.
> https://www.avast.com/antivirus
> 


RE: Solr8.7 How to increase JVM-Memory ?

2020-11-18 Thread Bruno Mannina
Yes. It was executable.

Must I to create solr.in.sh by copying from solr.in.sh.orig ? it's the right 
way ?

-Message d'origine-
De : Jörn Franke [mailto:jornfra...@gmail.com]
Envoyé : mercredi 18 novembre 2020 16:41
À : solr-user@lucene.apache.org
Objet : Re: Solr8.7 How to increase JVM-Memory ?

Did you make solr.in.sh executable ? Eg chmod a+x solr.in.sh ?

> Am 18.11.2020 um 16:33 schrieb Matheo Software :
>
> 
> Hi All,
>
> Since several years I work with a old version of Solr on Ubuntu, version 5.4.
> Today I test the 8.7 version.
> But I’m not able to change the JVM-Memory like in my 5.4 version.
>
> Many answers on the web tell to modify the solr.in.sh file but in my case I 
> have only /opt/solr/solr.in.sh.orig.
> And if I change the SOLR_HEAP to a new value like “8g” Dashboard shows always 
> 512MB.
> I try also to change SOLR_JAVA_MEM without success.
>
> Of course, I restart solr each time. (service solr restart). No error in log. 
> All work fine but no 8g of memory.
>
> I also try to copie solr.in.sh.orig to solr.in.sh, the result is always the 
> same.
>
> Could you help me ?
>
> Cordialement, Best Regards
> Bruno Mannina
> www.matheo-software.com
> www.patent-pulse.com
> Tél. +33 0 970 738 743
> Mob. +33 0 634 421 817
>
>
>
>   Garanti sans virus. www.avast.com


--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus



Re: Solr8.7 How to increase JVM-Memory ?

2020-11-18 Thread Jörn Franke
Did you make solr.in.sh executable ? Eg chmod a+x solr.in.sh ?

> Am 18.11.2020 um 16:33 schrieb Matheo Software :
> 
> 
> Hi All,
>  
> Since several years I work with a old version of Solr on Ubuntu, version 5.4.
> Today I test the 8.7 version.
> But I’m not able to change the JVM-Memory like in my 5.4 version.
>  
> Many answers on the web tell to modify the solr.in.sh file but in my case I 
> have only /opt/solr/solr.in.sh.orig.
> And if I change the SOLR_HEAP to a new value like “8g” Dashboard shows always 
> 512MB.
> I try also to change SOLR_JAVA_MEM without success.
>  
> Of course, I restart solr each time. (service solr restart). No error in log. 
> All work fine but no 8g of memory.
>  
> I also try to copie solr.in.sh.orig to solr.in.sh, the result is always the 
> same.
>  
> Could you help me ?
>  
> Cordialement, Best Regards
> Bruno Mannina
> www.matheo-software.com
> www.patent-pulse.com
> Tél. +33 0 970 738 743
> Mob. +33 0 634 421 817
> 
>  
> 
>   Garanti sans virus. www.avast.com


Solr8.7 How to increase JVM-Memory ?

2020-11-18 Thread Matheo Software
Hi All,



Since several years I work with a old version of Solr on Ubuntu, version
5.4.

Today I test the 8.7 version.

But I’m not able to change the JVM-Memory like in my 5.4 version.



Many answers on the web tell to modify the solr.in.sh file but in my case I
have only /opt/solr/solr.in.sh.orig.

And if I change the SOLR_HEAP to a new value like “8g” Dashboard shows
always 512MB.

I try also to change SOLR_JAVA_MEM without success.



Of course, I restart solr each time. (service solr restart). No error in
log. All work fine but no 8g of memory.



I also try to copie solr.in.sh.orig to solr.in.sh, the result is always the
same.



Could you help me ?



Cordialement, Best Regards

Bruno Mannina

  www.matheo-software.com

  www.patent-pulse.com

Tél. +33 0 970 738 743

Mob. +33 0 634 421 817

  facebook (1)
 1425551717
 1425551737
 1425551760





--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus


Re: _version_ taking too much memory

2020-11-18 Thread sanjay dutt
Thank you so much Shalin. Yes that would reduce the memory requirement at run 
time.But my next question, Is the "firstSearcher" doing this I mean due to 
which it tries to find the "Max value of version" and for that it it has to do 
the un-inversion. 
Thanks and Regards,Sanjay Dutt 

On Wednesday, November 18, 2020, 12:54:39 PM GMT+5:30, Shalin Shekhar 
Mangar  wrote:  
 
 You should change the _version_ field to be of type docValues and re-index
data. This way you don't have to pay the memory cost of un-inversion.

On Wed, Nov 18, 2020 at 9:51 AM sanjay dutt
 wrote:

> Solr Collection setup
> Shards :- 2Replication :- 4Documents :- 569 Million (I know it's too
> much)Heap Space :- 12GB
> So basically, above collection is having OutOfMemory issues. And upon
> inspection, I got to know
> that org.apache.lucene.uninverting.FieldCacheImpl$LongsFromArray for field
> "_version_" is taking around 50 - 60% memory(5GB).
> Now I am trying to understand How "_version_" internally using the field
> cache?
> Around the same time, In Splunk logs I can see "Found MAX value from Terms
> for _version_ in index". and also few "firstSearcher" queries. Now I think
> upon core initialization "firstSearcher" triggered which then try to find
> the Max value for version using Field Cache but because of too many records
> it occupy lot of memory to carry out the task.
> Can someone please validate Is what I am talking in above para is the
> problem or problem lies in somewhere else?
>
> Best Regards,Sanjay
>


-- 
Regards,
Shalin Shekhar Mangar.