Re: Add plugins to Solr docker container

2021-02-25 Thread Prabhatika Vij
Hey Anil,

If you want to execute anything before Solr starts, you can do the
following: -

mkdir initdb; echo "echo hi" > initdb/hi.sh
docker run -v $PWD/initdb:/docker-entrypoint-initdb.d solr
Using the above, you can have any script executed before Solr starts.

Source:
https://github.com/docker-solr/docker-solr/blob/master/8.8/scripts/run-initdb

Hope this helps. Please feel free to ask any further questions.

I am replying to this mailing list for the first time. If I am not
following any convention, please let me know.

Thank you,
Prabhatika

On Fri, Feb 26, 2021 at 11:32 AM anilkumar panditi <
anilkumar.pand...@gmail.com> wrote:

> Hi,
> I am first time user of the apache Solr, and i have brought up the Solr as
> docker container , and i am unable to install/enable someplugins
> (authentication,authorization etc)..
> Could you please help. how to add these plug ins to solr which is running
> as docker container.
>
> Thanks
> Anil
>


Add plugins to Solr docker container

2021-02-25 Thread anilkumar panditi
Hi,
I am first time user of the apache Solr, and i have brought up the Solr as
docker container , and i am unable to install/enable someplugins
(authentication,authorization etc)..
Could you please help. how to add these plug ins to solr which is running
as docker container.

Thanks
Anil


Rule Based Authorization

2021-02-25 Thread Subhajit Das
Hi There,

I am trying to create a rule based authorization for two types of user.

Role : Access
-
power-user : Everything except data change in collections/cores
ui-user : UI access to view all data. But no edit access except data change in 
collections/cores

How to implement this?

No predefined permissions for this. Tried by adding all read permissions to 
this ui-user. But dosent wok. One of failing APIs is “/admin/info/system”. Cant 
match this url, with custom permission also.

Please help.

Thanks in advance.



How can I enable scoring on a DocList rather than a DocSet

2021-02-25 Thread krishan goyal
Hi,

I want to match and score on a sorted DocList.

The use case is something like this

   - Cache sorted results (with scores) of certain queries in the
   queryCache (This is a DocList)
   - New queries are superset of these cached queries and have dynamic
   scoring clauses
   - At runtime, I want to lookup results in query Cache and run matching
   and scoring on this list
  - This enables me to have a more dynamic way (per query) of pre
  sorted data set where I can early terminate shorter and more effectively
  and reduce latencies even further
  - In some cases, I can use the cached score along with new score too
  and avoid recomputation here.

The problem is currently the Scorer interface requires a DocIdSetIterator
and can't work on top of a DocList.

So does that mean, enabling this kind of optimisation requires using a
different Scorer & Weight interfaces or is there something I can do using
the current interfaces itself ?


RE: Handling Locales in Solr

2021-02-25 Thread Krönert Florian
Hi Markus,

thank you a lot for your response, that helps us very much.

We will try out the approach of separating the cores by topic only.

Kind Regards,
Florian 

-Original Message-
From: Markus Jelsma  
Sent: Mittwoch, 24. Februar 2021 12:27
To: solr-user@lucene.apache.org
Subject: Re: Handling Locales in Solr

Hello,

We put all our customers in the same core/collection because of this, it is not 
practical to manage hundreds of cores, including their small overhead.
Although it can be advantageous when it comes to relevance tuning, no skewed 
statistics because of other customers.

In your case, an unused core is probably slow because it is not in cached 
memory anymore, and/or it has to load from a slow drive.

With regards to the locales, i would probably separate the cores by topic only, 
and have different languages share the same collection/core.

Regards,
Markus



Op wo 24 feb. 2021 om 12:09 schreef Krönert Florian <
florian.kroen...@orbis.de>:

> Hi everyone,
>
>
>
> First up thanks for this group, I appreciate it very much for 
> exchanging opinions on how to use Solr.
>
>
>
> We built a Solr instance for one of our customers which is used for 
> searching data on his website.
>
> We need to search different data (kb articles, products and external
> links) in different locales.
>
>
>
> For our logic it seemed best to separate solr Cores by topic and 
> locale, so we have cores like this:
>
> kbarticle_de-de
>
> kbarticle_en-us
>
> …
>
> products_de-de
>
> products_en-us
>
> …
>
> links_de-de
>
> links_en-us
>
>
>
> First we had only 3 locales, but it grew pretty fast to 16 locales, so 
> that we’re having 48 solr cores by now already.
>
> There would have been different approaches for realizing this of 
> course, so we’re wondering whether we are using Solr not in the optimal way?
>
>
>
> We found out that when a search on a locale that was not used for some 
> time is started, it takes >10 seconds in many cases to execute the search.
>
>
>
> We then find logs like this, where it seems as if Solr needs to start 
> a searcher first, which takes time:
>
> 2021-02-20 04:33:42.634 INFO  (Thread-20674) [   ]
> o.a.s.s.SolrIndexSearcher Opening [Searcher@775f8595[kbarticles_en-gb]
> main]
>
> 2021-02-20 04:33:42.643 INFO  (searcherExecutor-26-thread-1) [   ]
> o.a.s.c.QuerySenderListener QuerySenderListener sending requests to 
> Searcher@775f8595[kbarticles_en-gb]
>
> …
>
>
>
> Is that an issue? It would be good to know whether our localization 
> approach causes issues with Solr and whether we should restructure our 
> core design.
>
> Any help would be very much appreciated.
>
>
>
> Kind Regards,
>
>
>
> *Florian Krönert*
> Senior Software Developer
>
> 
>
> *ORBIS AG | *Planckstraße 10 | D-88677 Markdorf
>
> Phone: +49 7544 50398 21 | Mobile: +49 162 3065972 | E-Mail:
> florian.kroen...@orbis.de
> www.orbis.de
>
>
> 
>
> Registered Seat: Saarbrücken
> Commercial Register Court: Amtsgericht Saarbrücken, HRB 12022 Board of 
> Management: Thomas Gard (Chairman), Michael Jung, Stefan Mailänder, 
> Frank Schmelzer Chairman of the Supervisory Board: Ulrich Holzer
>
> 
> 
> 
> 
> 
>
>
>
>
>  ticle/inner-circle-award-orbis-zaehlt-erneut-zu-den-weltbesten-partner
> n-fuer-microsoft-business-application.html>
>
>
>
>
>  latform.html?wmc=Banner-Microsoft-Power-Platform>
>
>
>  by-ORBIS>
>